Tag Info

Hot answers tagged

8

Mapnik in general works fine with both 32bit and 64bit python versions 2.4 -> 3.2 (on linux and mac osx). On Windows, however the most recent binaries available are for Mapnik 0.7.1, and those binaries only provide the python bindings compiled against 2.5 and 2.6. So, 2.7, whether 32 or 64bit will not work for those binaries. We plan to provide new windows ...


8

As based on my experience, I would recommend GeoServer, however i agree that it not 100% satisfy all the listed requirements as others too. * fast It much faster and accepted in many production high traffic solutions. In my production GIS site heavly used and still no issues found on response time/performance on GeoServer. * easy scalability ...


7

As the documentation say you may need more than 256gb of ram to do that. I don't know much about EC2, but you can try the slim (--slim) mode or try Osmosis. There is an interesting post: http://weait.com/content/build-your-own-openstreetmap-server It says, 'you must use slim mode'.


7

One note: I recommend mod_wsgi over mod_python. And it is important to either use Apache prefork with mod_python or (ideally) mod_wsgi in daemon mode with threads=1 and processes=N (where N is best matched to number of logical processors). mod_wsgi in daemon mode can be used with either Apache prefork or worker. The reason for this is that TileCache caches ...


7

I don't think mapnik or proj4 are able to render that kind of projection. According to that excellent post, Openlayers with protovis library would be able to render not exactly the Waterman projection but the Fuller projection (also called Dymaxion). You even have an online example here.


6

You should try TileMill. It uses gdal to access the geo-data, an editor of Carto (a css like language) to stylize your maps, and mapnick to renderize it.


6

Few pointers to get you started. You've already done some research, so you know the right places to look for more info: Don't use a Markers layer. Do use a Vector layer. Vector layer can be styled. Each of your points can have attributes e.g. "color:blue" or "severity:moderate" and based on those attributes you can Style the points with different icons ...


5

(Cross-posting from GitHub for the benefit of StackExchangers..) Both filters must be connected to a layer selector. There are two options that require only specifying the style once: #tor_centreline [FCODE=201200], #tor_centreline [FCODE=201201] { line-width: 0.5; line-color: lightgray; } or #tor_centreline { [FCODE=201200], [FCODE=201201] { ...


5

That will work as Mapnik can be configured as a WMS (http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide) but I think you are supposed to just build out all the tiles in the world and serve them directly to openlayers (assuming that you have enough disk space). See http://openlayers.org/dev/examples/tilecache.html for an example.


5

Use the same method as you have above but use the undocumented 'TextSymbolizer' Rotation (orientation) http://trac.mapnik.org/changeset/1783 Here is another technique (Map Rotated see North Arrow - Text remains horizontal) http://ancalime.de/rotated.html


5

I would put the db (and mapnik) on one server and the cache on another. The work of the database and mapnik is a tough job but you can do it anytime. You can have the database and mapnik on a quite weak server. After you have seeded your tiles you just have to reseed when you have done someediting or there have been changes. I haven't played with ...


4

The attribute 'River' does not exist in that shapefile as far as I can tell. Your post helped remind me that Mapnik should be throwing an error in this case, so it is easier to catch common typo's like this (http://trac.mapnik.org/ticket/604). A trick to get the attribute names is to open the Shapefile in QuantumGIS (and even use the Quantumnik Plugin if ...


4

Due to the memory constraints I didn't even try to use osm2pgsql to load the planet.osm's routing data. Instead I used osm2po: http://osm2po.de/ Most of the documentation is in German but with a bit of experimentation I managed to get it to work. Takes a few days on a dedicated Core 2 Quad (but it is only using one thread).


4

In regards to TileMill, you export a map as MBTiles and then can either turn it into flat image files with mbutil that you can put on a web server or S3, or you can use TileStream to serve the MBTiles file dynamically. Like any tile server, you then use OpenLayers (or Modest Maps, Polymaps, Google Maps) for a Javascript API.


4

Why don't you try the OSGEO Live DVD, check this website for more information and download.


4

There are a couple of options that might help you get the result you're after: You could do this with the Python Imaging Libary (PIL) using the getcolors method on a image. For example: from PIL import Image im = Image.open(tile_path) max_colors = 2 #if max colors is exceded in getcolors it returns None if not im.getcolors(max_colors): #mark solid ...


4

How big is your area of interest? For small regions (like a city, metropolitan area, or district), you can download data by BBOX using OSM Overpass API. For bigger areas - up to 24000000 sq km - BBike extract service will provide what you want. Anything bigger requires downloading continental extract/whole database dump, and clipping to BBOX using software ...


3

I needed my TileCache configuration to look like this: [osm] type=Mapnik mapfile=/var/maps/bin/mapnik/osm.xml spherical_mercator=true I also needed to use a TMS layer type in OpenLayers. Everything is better now!


3

Slippy maps typically use the EPSG 3857 projection (another name for 900913, Google Web Mercator). In your stylesheet, change all occurrences of +proj=latlong +datum=WGS84 to +init=epsg:3857 to use the Spherical Mercator projection.


3

switch2osm will give you some directions to go as far as serving OSM tiles. Two caveats: Only 0.01% of people actually should do this. Think about using OSM's tiles, or MapQuest Open, or MapBox. Hosting your own tiles will take at least a week's work. Using Windows for this will be a losing battle. Don't.


3

The default OSM preview page's URL is ip_address:port_number/osm/preview.html#10/37.8000/-122.2600 which indicate the zoom level is 10, so I guess you did not export mbtiles file up to that zoom level that's why TileStache generates empty page then you could manually change the zoom level and lat/lon value to force TileStache to work out preview page. I ...


3

This question was answered here: http://support.mapbox.com/discussions/tilemill/1773-tilemill-shows-black-lines-around-raster-layers-2. Solution: use VRT files to reference multiple rasters.


3

There is a brandnew Qtile plugin, but only available for the latest Qgis Master version 1.9.0: Qtiles Announcement


3

In Mapnik the im.painted() method is meant to be used alongside an im.is_solid() method and im.get_pixel() method. However, it looks like I forgot to expose this in the Mapnik python bindings. It has been added to the javascript bindings: https://github.com/mapnik/node-mapnik/blob/6a63a5c2d09acab5db29a67c9490ec4af292c670/src/mapnik_image_view.cpp#L200-L222. ...


3

Most probably you have a coastline in your download which is not closed. So the software can not decide on which side of the coastline is water, and on which side is land. I don't know exatly how TileMill deals with it, but Mapnik renderer uses a separate shapefile with coastlines to avoide that mess. Maybe you get lucky if you download the data with the ...


3

It's clear that it's not necessary to shift the projection, but the data. Using GDAL >= 1.10.0 compiled with SQLite and SpatiaLite: ogr2ogr russia_shifted.shp world.shp -dialect sqlite -sql "SELECT ShiftCoords(geometry,360,0) FROM world WHERE CNTRY_NAME='Russia'" where shiftX = 360 (degrees) and shiftY = 0. UPDATE: here's the whole workflow... Clip ...


3

Just edit the renderd.conf and add a section for your second style (make sure the "URI" entry points to a different path than that of your default style). For example, my renderd.conf contains the sections [default] XML=/etc/mapnik-osm-carto-data/osm.xml URI=/osm/ DESCRIPTION=This is the standard osm mapnik style HOST=host.my CORS=* MINZOOM=0 MAXZOOM=20 ...


2

Did you get a solution for your issue, other than using old pre-generated package? I seem to have very similar issue in EC2 instance. I'm using pbf planet from http://download.bbbike.org/osm/ time ./osm2pgsql -S default.style --slim -d gis -C 7000 --hstore /mnt/planet/planet-latest.osm.pbf osm2pgsql SVN version 0.70.5 ...(creating db tables) Reading in ...



Only top voted, non community-wiki answers of a minimum length are eligible