-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
How to add postgis driver? #36
Comments
Yes, this driver can be easily installed, as it not requires a lot of dependencies. gdal.netcore/shared/GdalCore.opt Line 26 in 6c20ad5
I suggest you to use the latest commit in master branch to build all properly. If the package build failed with any error try to pull the latest version of vcpkg or look for the issue to the problem exists with that library. Step 2 - Install gdal.netcore/shared/GdalCore.opt Line 32 in 6c20ad5
If you already build vcpkg's packages, then you should rebuild them - nmake -f vcpkg-makefile.vc install_requirements
Step 3 - Define the package path: gdal.netcore/win/gdal-nmake.opt Lines 628 to 630 in 6c20ad5
Step 4 - Building GDAL: Step 5 - Testing |
One more comment on this. |
Thank you very much ,I had compiled the MaxRev.Gdal.WindowsRuntime.Minimal.3.2.0.254.nupkg! But how to build MaxRev.Gdal.Core.nupkg? error CS0103 “OSGeo” gdalcore.loader (net5.0), gdalcore.loader (netcoreapp2.1), gdalcore.loader (netcoreapp3.1), gdalcore.loader (netstandard2.0), gdalcore.loader (netstandard2.1) C:\gdal\compile\GdalConfigureAll.cs 77 I used ILSpy to decompile the Gdal.Core.dll on nuget.org which you push. I found OSGeo.GDAL/OSGeo.ORG/OSGeo.OSR folder exist lots of files. where the files come from? |
As I wrote previously, those bindings currently available for build only from linux. |
Hi,I had successfully compiled the project on Ubuntu 16.04/18.04. I found both of MaxRev.Gdal.Core.nupkg and MaxRev.Gdal.WindowsRuntime.Minimal.nupkg generated! Then I try to add driver postgis to project. First I edit the shared/GdalCore.opt file as you said. Then I Edit the unix/gdal-makefile file --- "--with-pg ". But it didn't success! Can you tell how to add postgis driver on linux? thanks! |
@qjw2bqn Did you specified a package path with |
@MaxRev-Dev yes,i edit the gdal-makefile as below: then,excute : But didn't add pg driver success! |
@MaxRev-Dev I had test on CentOS 7. ./.libs/libproj.so: undefined reference to How can I do? |
@qjw2bqn Sorry for delay, this month was busy. I've added support for separate build on windows. If you will have any issues with compiling drivers, you can try to cleanup your environment. |
@MaxRev-Dev thanks, next I will test. |
I have successfully compiled the project on windows OS.
Then I want to add the postgis driver,how should i start?
Can you help me?
The text was updated successfully, but these errors were encountered: