Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OGR input plugin's file check precludes OGDI driver use #336

Closed
artemp opened this issue Oct 11, 2011 · 6 comments
Closed

OGR input plugin's file check precludes OGDI driver use #336

artemp opened this issue Oct 11, 2011 · 6 comments

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

When importing data such as VPF/VRF using OGR's OGDI driver, the Mapnik OGR plugin's file existence check isn't formulated to accept the OGDI driver's file string format (gltp://).

Everything seemes to work except the file existence check. Commenting out the check at line 71 of ogr_datasource.cpp:

if (!boost::filesystem::exists(dataset_name_))... 

seems to provide a preliminary fix.

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] Ryan,

Thanks for the report. I've got a patch ready removes this and fixes up a few other things that I'll try to find a moment to commit tomorrow.

  • Dane

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] As noted in #337 and #126, we should be relying on GDAL/OGR error reporting to handle whether files/datasets exist. So, the attached patch starts that in motion by switching from the boost filesystem check to using 'CPLGetLastErrorMsg()' after a problem is encountered using 'OGROpen()'.

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] see also patch for gdal at #337

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] reassigning to kunitoki, so he can take a look and apply...

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] we'll need to make sure to rollback most of this: http://trac.mapnik.org/changeset/1042/trunk/plugins/input/ogr

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[kunitoki] Closed with r1130 applying patch

@artemp artemp closed this as completed Oct 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant