-
Notifications
You must be signed in to change notification settings - Fork 124
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
CoordinateTransformation error #39
Comments
Interesting... It seems like creating the coordinate transformation silently failed. It should be (but it's not yet) throwing an error in the CoordinateTransformation constructor if that happens. https://github.com/naturalatlas/node-gdal/blob/master/src/gdal_coordinate_transformation.cpp#L60 I think the
|
This has got to be the issue... @brianreavis is looking into statically linking the proj4 library now. |
I gave it a try by adding |
Weird. Hold off a bit on that... we should be building proj.4 into node-gdal so that you shouldn't have to go out and install it. |
That proj.4 error is showing up in travis here: With the latest commits it will be a properly thrown error. I was also able to reproduce the error by removing |
@brandonreavis nice work - my sense is the same - that you'll need to both statically link libproj.a and define |
Woot! Error averted in Travis with the new commit. |
Noice! @springmeyer I haven't set |
Try setting PROJ_LIB to something bogus and they should fail. I presume they are passing for you because the default PROJ_LIB path is burned into the binaries when you build and nothing has moved. Another test would be to move your working directory to some different path and then run the tests again. If things still pass is may be because the proj files are actually getting picked up from /usr/local/share/proj/epsg of something. |
I just did some investigating on the PROJ_LIB situation. The weird thing is: no matter what I try, I can't get the test to break (awesome, but not awesome). What I've tried:
Am I missing something here? Is there something off about the |
Closing this. We can re-open if we manage to repro it, but for now I'm going to assume it's a non-issue. |
Are you familiar with the following error?
CoordinateTransformation parameter already destroyed
Error is triggered by this line: https://github.com/mapbox/mapnik-omnivore/blob/raster/lib/datasourceProcessor.js#L332
It's an odd error because it works fine within my application, but throws in Travis when tests are running.
I can't find much on it in GDAL documentation or basic web search. I found it commented out in node-gdal here: https://github.com/naturalatlas/node-gdal/blob/master/src/gdal_common.hpp
Interested if you've run into this before or have any thoughts on what could be throwing it. Thanks!
The text was updated successfully, but these errors were encountered: