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

Make mapnik work with gdal and python #2211

Closed
apachemaven opened this issue Apr 11, 2014 · 7 comments
Closed

Make mapnik work with gdal and python #2211

apachemaven opened this issue Apr 11, 2014 · 7 comments

Comments

@apachemaven
Copy link

Hi:

I am try to use mapnik to create our map, but we need the ogr plugin, so we tried to install gdal.

Since we work on windows 8.1 of 64 bit, and we found that mapnik just support pytyon of 32 bit:

First ensure you have 32 bit python 27 installed
https://gist.github.com/springmeyer/5651701

Then I remove my pre-installed python of 64 bit, and re-install 32 bit python, and finally we make mapnik work(we can run the python demo and get image created).

However when we tried to install gdal, we meet some problem, which version of gdal can we use? We get gdal binary package here:http://www.gisinternals.com/sdk/.

Both 32 bit and 64 bit are supported, so I am confused which is the right way?

BTW, IMO, the issue is caused by the python binding, I wonder if I have other choice? In fact, I am not familiar with python at all, I used to use java only, but it seems that the mapnik-jni project:
https://github.com/SpatialInteractive/mapnik-jni
is not activated more, since the latest update is almost 3 years ago.

@springmeyer
Copy link
Member

Mapnik bundles it own internal gdal in the windows binary packages so any externally installed gdal will be ignored.

On Apr 11, 2014, at 2:29 AM, apachemaven notifications@github.com wrote:

Hi:

I am try to use mapnik to create our map, but we need the ogr plugin, so we tried to install gdal.

Since we work on windows 8.1 of 64 bit, and we found that mapnik just support pytyon of 32 bit:

First ensure you have 32 bit python 27 installed
https://gist.github.com/springmeyer/5651701

Then I remove my pre-installed python of 64 bit, and re-install 32 bit python, and finally we make mapnik work(we can run the python demo and get image created).

However when we tried to install gdal, we meet some problem, which version of gdal can we use? We get gdal binary package here:http://www.gisinternals.com/sdk/.

Both 32 bit and 64 bit are supported, so I am confused which is the right way?

BTW, IMO, the issue is caused by the python binding, I wonder if I have other choice? In fact, I am not familiar with python at all, I used to use java only, but it seems that the mapnik-jni project:
https://github.com/SpatialInteractive/mapnik-jni
is not activated more, since the latest update is almost 3 years ago.


Reply to this email directly or view it on GitHub.

@apachemaven
Copy link
Author

And the ogr2ogr also bundled to mapnik internally?

In fact, we need the filegdb plugin, I am afraid mapnik bundle this too... :(

@springmeyer
Copy link
Member

And the ogr2ogr also bundled to mapnik internally?

No, not the command line tool. Only libgdal is bundled.

In fact, we need the filegdb plugin, I am afraid mapnik bundle this too... :(

The Mapnik v2.2.0 SDK does not bundle a GDAL recent enough for OpenFileGDB. But the next version due out soon: Mapnik v.2.3.x SDK will support http://erouault.blogspot.com/2014/01/ogr-openfilegdb-driver.html

@apachemaven
Copy link
Author

I am sorry but I am a little confused.

At the wiki page:

https://github.com/mapnik/mapnik/wiki/PluginArchitecture

It seems that mapnik support ogr plugin though it is not bundled by default, since ogr is a part of gdal, and you have mentioned that :

externally installed gdal will be ignored.

So I wonder what should I do if I want to use ogr plugin?

@springmeyer
Copy link
Member

the "mapnik ogr plugin" is a separate plugin, but it depends on the same dependency: libgdal.

@springmeyer
Copy link
Member

did you get this worked out?

@apachemaven
Copy link
Author

Not yet, but we try to give it up. Use shapefile instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants