[OSM-talk] Mapnik v2.2.0 Released

2013-06-05 Thread Dane Springmeyer
I'm pleased to announce that Mapnik 2.2.0 is ready.

Download at the source, as well as binaries for iOS, OS X, Windows, and Ubuntu 
at http://mapnik.org/download/

The is the first Mapnik release to support 64 bit feature ids enabling 
filtering on id and and rendering grids [1] of OSM data.

This is also the first Mapnik release to provide an API for vector tiles, which 
is available in a standalone repo [2].

This release also includes many performance improvements and bug fixes. See the 
release summary [3] and changelog [4] for full details.

Dane

[1] https://github.com/mapnik/mapnik/wiki/MapnikRenderers#grid_renderer
[2] https://github.com/mapbox/mapnik-vector-tile.
[3] https://github.com/mapnik/mapnik/wiki/MapnikReleases#220
[4] https://github.com/mapnik/mapnik/wiki/Release2.2.0


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] [HOT] Fw: Disaster Preparedness Project

2011-06-06 Thread Dane Springmeyer
Samuel,

It seems to me like rendering the actual pages would be easier (than actually 
rendering a large image, then chopping). This should also give better results 
because the scales of things like text and lines would look better.

So, the way I would approach this would be to determine the size and extents of 
each map for each page (ideally automatically). Then render each one with 
Mapnik. So, your ingredients would be a width and height in pixels, and 
bounding box for each page. Then write a python script to loop over every page 
and render a map using an OSM stylesheet.

If you don't have python scripts skills then we can think of alternatives, but 
that would be my first recommendation. Mike Migurski, also author of safety 
maps, has done this with Mapnik for printed bike maps of SF, so he could likely 
advise.

On Jun 6, 2011, at 3:03 PM, Mikel Maron wrote:

 Folks, what did we have in place to produce map books?
 

Making mapbooks easier to script, via python, with Mapnik has long been a goal 
of mine. 

But I've not really gotten past proof of concept. One usecase is making a map 
of every feature in a dataset that meets some criteria. I wrote a script a 
while ago that demonstrates how to do that with mapnik by querying all 
countries over a given population and them rendering a map for each, while 
painting a special outline over their border. Code is here: 
http://mapnik-utils.googlecode.com/svn/example_code/map_sequences/ and an 
animated gif to demonstrate what is done is here:

http://dbsgeo.com/tmp/mapnik_animated.gif

 Can Mapsomatic easily be modified for different formats/scales?

It can be done but I've found that hacking around in MapOsMatic requires a lot 
of patience and pretty high python/cairo skill level.

 
 http://www.safety-maps.org/ was a recent project to do something similar. I 
 know the developers would be interested to hear more ideas how to make it 
 useful.

safety-maps are awesome.

  
 == Mikel Maron ==
 +14152835207 @mikel s:mikelmaron
 
 
 - Forwarded Message 
 From: Richard Weait rich...@weait.com
 To: Samuel Mandell shmand...@gmail.com
 Cc: talk@openstreetmap.org
 Sent: Mon, June 6, 2011 4:16:08 PM
 Subject: Re: [OSM-talk] Disaster Preparedness Project
 
 On Fri, Jun 3, 2011 at 8:12 PM, Samuel Mandell shmand...@gmail.com wrote:
  I'm designing a project whose goal is to prepare folks in my community for
  disasters. An essential part of any disaster kit are maps of the local area
  so that when electricity has gone out people can still navigate to specific
  areas of the city (for instance to get supplies or medical help).
  OpenStreetMap has comprehensive map data for my area (the San Francisco Bay
  Area) and I'd like to use the mapping data to create maps for the various
  cities to hand-out to residents. Since I'd need detailed (1:4800) of an
  entire city I haven't been able to use the export tool since it seems to
  have some built in limits to how large of an image it will generate (which
  makes sense). For Mountain View, CA the image size we'd want to generate is
  around 9409 x 11310 with a 1:4800 scale, in other words, very large. We
  would then cut this into smaller squares and print it out in a booklet with
  attribution to OpenStreetMap for the data and visuals.
  What's the best way for us to generate these detailed maps of the various
  cities?
 
 Well that sounds awesome.
 
 You might try downloading an extract of OSM data for that area.  You
 should be able to find an extract that deals with California, or the
 US West.  That way you don't have to deal with an entire planet full
 of data.  Then use Mapnik or one of the other rendering tools to
 generate your map.  You'll likely want to adjust the style sheet to
 make it just right for emergency awareness.
 
 There is a company in SF area experienced in printing high resolution
 maps from OSM data. Perhaps they'll do it for you for free since it is
 such a worthy project?
 
 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk
 ___
 HOT mailing list
 h...@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/hot

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] [HOT] Fw: Disaster Preparedness Project

2011-06-06 Thread Dane Springmeyer

On Jun 6, 2011, at 3:58 PM, Samuel Mandell wrote:

 Tim,
 
 I'd appreciate any additional information regarding the maps generated for 
 Christchurch. I'll also check out www.safety-maps.org. 
 
 -Samuel

First pass was dumping out maps just based on custom size and bounding boxes 
at: http://maps.eq.org.nz/print/. This simply used a live updating osm database 
(minutely mapnik), the mapnik rendering library, and shell script run on a 
cron job that called nik2img with different parameters.

Then Rob Coup (cc'ed) started gearing up for customizing MapOSMatic to enable 
the user to choose their bounding box and what they wanted on their map. I 
think he ended up coming up with a custom solution rather than using a modified 
MapOSMatic, and this turned out very nicely and can be see here: 
http://maps.eq.org.nz/print/custom/


 
 On Mon, Jun 6, 2011 at 3:47 PM, Tim McNamara paperl...@timmcnamara.co.nz 
 wrote:
 Hi all,
 
 Lots of time was spent in late Feburary  early March in NZ to produce 
 printable maps from OSM/Ushahidi for Christchurch residents without power. It 
 would be great to recycle this energy.
 
 Tim McNamara
 Professional \\  paperlessprojects.com
 Personal \\  @timClicks  |  timmcnamara.co.nz
 
 
 
 On 7 June 2011 10:03, Mikel Maron mikel_ma...@yahoo.com wrote:
 Folks, what did we have in place to produce map books?
 
 Can Mapsomatic easily be modified for different formats/scales?
 
 http://www.safety-maps.org/ was a recent project to do something similar. I 
 know the developers would be interested to hear more ideas how to make it 
 useful.
  
 == Mikel Maron ==
 +14152835207 @mikel s:mikelmaron
 
 
 - Forwarded Message 
 From: Richard Weait rich...@weait.com
 To: Samuel Mandell shmand...@gmail.com
 Cc: talk@openstreetmap.org
 Sent: Mon, June 6, 2011 4:16:08 PM
 Subject: Re: [OSM-talk] Disaster Preparedness Project
 
 On Fri, Jun 3, 2011 at 8:12 PM, Samuel Mandell shmand...@gmail.com wrote:
  I'm designing a project whose goal is to prepare folks in my community for
  disasters. An essential part of any disaster kit are maps of the local area
  so that when electricity has gone out people can still navigate to specific
  areas of the city (for instance to get supplies or medical help).
  OpenStreetMap has comprehensive map data for my area (the San Francisco Bay
  Area) and I'd like to use the mapping data to create maps for the various
  cities to hand-out to residents. Since I'd need detailed (1:4800) of an
  entire city I haven't been able to use the export tool since it seems to
  have some built in limits to how large of an image it will generate (which
  makes sense). For Mountain View, CA the image size we'd want to generate is
  around 9409 x 11310 with a 1:4800 scale, in other words, very large. We
  would then cut this into smaller squares and print it out in a booklet with
  attribution to OpenStreetMap for the data and visuals.
  What's the best way for us to generate these detailed maps of the various
  cities?
 
 Well that sounds awesome.
 
 You might try downloading an extract of OSM data for that area.  You
 should be able to find an extract that deals with California, or the
 US West.  That way you don't have to deal with an entire planet full
 of data.  Then use Mapnik or one of the other rendering tools to
 generate your map.  You'll likely want to adjust the style sheet to
 make it just right for emergency awareness.
 
 There is a company in SF area experienced in printing high resolution
 maps from OSM data. Perhaps they'll do it for you for free since it is
 such a worthy project?
 
 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk
 
 ___
 HOT mailing list
 h...@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/hot
 
 
 
 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] OSM book in English published

2010-09-16 Thread Dane Springmeyer

On Sep 15, 2010, at 8:39 PM, Steve Chilton wrote:

 OpenStreetMap: Using, and Contributing to, the Free World Map (Paperback, 
 in English) by Ramm/Topf/Chilton will be available in 5 days. Pre-order at 
 discount http://www.bookdepository.co.uk/book/9781906860110/
 
 OpenGeoData post about it: 
 http://opengeodata.org/osm-book-available-in-english
 
 Also available via amazon.com and shortly via amazon.co.uk
 
 Cheers
 STEVE
 

Thanks for this awesome contribution!

Dane



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Exceeded API bandwidth limit, now what?

2010-09-14 Thread Dane Springmeyer

On Sep 14, 2010, at 9:06 AM, Frederik Ramm wrote:

 bzcat england.osm.bz2 | time osmosis --rx - --bb left=-.6 bottom=51.3 
 right=.4 top=51.7 --wx london.osm
 
 (or whatever London is for you).
 
 The whole process takes less than 10 minutes - probably faster than piecemeal 
 downloading from the API, and with no ill effects on the database.

I was frequently in a situation in Haiti where I needed to quickly clip out big 
area and was in a rush when doing it (before loosing internet) and on a windows 
machine without osmosis installed.

So, I wrote a QGIS plugin that bundles osmosis and wraps it in a GUI (to allow 
for using the QGIS interface and some existing data to position the bbox 
correctly). This way I could simply download a geofabrik extract and the QGIS 
plugin and then finish all my clipping and other data prep offline (esp without 
having to look up the osmosis command line options which I can never 
remember!). 

Maybe might help someone else someday: http://qgis.dbsgeo.com/. To install just 
load this URL as a custom QGIS plugin repository.


Dane
 
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [Talk-us] Fwd: Re: [OSM-talk] Mapquest launches site based on OSM!

2010-07-10 Thread Dane Springmeyer

On Jul 10, 2010, at 2:21 AM, Toby Murray wrote:

 Well I took a look at the blog post with the technical details. They
 are using a vanilla osm2pgsql/mapnik setup, just custom styles from
 Cartifact. They mention enhancing mapnik. Have these changes already
 made it back upstream or will that happen in the future?

Yes, they are in trunk (aka Mapnik2).

 In particular
 I'm guessing the multistyle rendering based on polygonal regions is
 of interest for the highway/interstate rendering. I see they don't
 (yet?) have state highway shields, just interstates and US highways.
 
 Overall I think it looks pretty nice though.
 
 
 On Fri, Jul 9, 2010 at 6:10 PM, Richard Welty rwe...@averillpark.net wrote:
 On 7/9/10 5:57 PM, Jeffrey Ollie wrote:
 
 On Fri, Jul 9, 2010 at 4:19 PM, Toby Murraytoby.mur...@gmail.com  wrote:
 
 
 Also, I see they are rendering highway shields. Didn't I see a big
 discussion about that here recently? :)
 
 Wonder if they are using the route relations to render them...
 
 
 Not sure what they are doing, because I-80 near Des Moines has
 shields, but I-35 doesn't.  I was going to take a look later to see if
 I could figure out what was different between the two cases.
 
 
 
 here's a sample in my neighborhood; some NY 43 shields have the NY, some
 don't:
 
 http://open.mapquest.co.uk/mq/4-Vc4rtBI4PAQu
 
 
 
 ___
 Talk-us mailing list
 Talk-us@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk-us
 
 
 ___
 Talk-us mailing list
 Talk-us@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk-us


___
Talk-us mailing list
Talk-us@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-us


Re: [OSM-talk] Rendering street names across several ways

2010-07-01 Thread Dane Springmeyer

On Jul 1, 2010, at 2:10 AM, Igor Brejc wrote:

 
 
 On Thu, Jul 1, 2010 at 10:56 AM, Maarten Deen md...@xs4all.nl wrote:
 The problem is that if you go to a rule one road, name displayed once,
 you will have to search for the name of the road if the road is very long.
 
 The actual rule is: treat it as a single OSM way and then decide how often to 
 repeat the name for longer ways. 
  
 This might not be a problem with residential roads on lower zoom levels,
 but it will with e.g. motorways on higher zoom levels.
 
 Look example [1]. There is no name on the motorway (I've got my browser
 about 1100 pix wide).
 I have deliberately cut a local stream up to make the name render in more
 places.
 
 
 It's up to the renderer to decide how often to repeat the name.

In the case of Mapnik, labels are repeated along lines by default, but its up 
to the stylesheet author to specify the spacing between them.

So, it is the rendering rules in question really, not the renderer.

 Cutting up ways just to make it look better for a certain renderer (Mapnik) 
 isn't really a good practice.

And it not needed at all if Mapnik is the renderer.

 And anyway, this depends on the zoom level: once you zoom into enough, you 
 will still get ways that will be long and with one label only. And if you 
 zoom out, you won't get _any_ labels, since the split ways will be too short 
 to show anything.
 
 Igor
 
 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Custom rendering of a small map

2010-06-09 Thread Dane Springmeyer

On Jun 9, 2010, at 12:44 AM, Gervase Markham wrote:

 On 05/06/10 10:09, Gervase Markham wrote:
 My first effort involved an SVG export of the Mapnik image from the main
 website. This is pretty good; the only problem is that the roads are
 unnecessarily narrow and so the road names are small and hard to read.
 
 In the end, I went with this. I would have been willing to spare 30 
 minutes to get a tool working to improve this, but I've already spent a 
 lot more than that. Thanks to everyone for their suggestions :-)
 
 Gerv
 
 

Gerv, The Mapnik project currently leverages Cairo to output this SVG. There 
are a variety of limitations to this SVG output that make post-processing 
difficult, as you've noticed.

We have preliminary plans to write a custom SVG rendering backend for Mapnik in 
the future that will address things such as embedded fonts, selectable layers, 
etc. 

But things such as the road widths and font sizes are always going to be 
controlled by the styles used to render. User configurability of styles sent to 
Mapnik (by non-programmers) is something that a current Google Summer of Code 
project is looking into. See: 

http://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2010/AcceptedProjects/EasyPrintableMaps

Dane

 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [Talk-us] On-the-fly Rendering Library? (Was: Re: Whole world files)

2010-05-31 Thread Dane Springmeyer

On May 28, 2010, at 12:13 PM, Ian Dees wrote:

 It seems that for situations like this it would be nice to have a simple 
 on-the-fly rendering system that consumed the OSM data and then rendered your 
 viewbox on the fly rather than creating raster tiles.

Just use Mapnik and don't catch the tiles.


___
Talk-us mailing list
Talk-us@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-us


Re: [Talk-cl] Tile Map Service

2010-03-05 Thread Dane Springmeyer

Hola Julio!

On Mar 5, 2010, at 4:14 AM, Julio Costa Zambelli wrote:


Hello Dane,

I wanted to ask you if you have the technical skills to implement a  
Tile server (Mapnik) with a fast update cycle.


Yes.

The thing is that the people managing the Ushahidi Chile website are  
willing to go back to OpenStreetMap as their default map layer, but  
ask me for a more appealing render.


Okay, would be really good to know more about what that means.

For haiti then went from tile.osm.org to -- haiti.openstreetmap.nl -- 
 mapbox tiles as overlay on tile.osm.org


What worked, didn't, might, could, etc... is important. Perhaps I  
should get in contact with ushihidi lead directly?


I also know the mapbox folks. I don't think they do not have fast  
update cycle, but do have great styles.


I thought of CloudMades Custom Style renders, but the problem is  
that I want to preserve the OSMF render ability to update the tiles  
in a very fast cycle (lets say ten minutes) using the diffs. We are  
working in the earthquake affected area and I want to show that as  
soon as possible in the render, not 10 days later.


Sure, How much custom tags and data is being used so far?



I am notoriously unskilled in this kind of technologies, so I can  
provide the requirements, and maybe intervene on simple tasks like  
the configuration of the XML file that controls the style of the  
render, but in everything else I totally depend on more experienced  
people.




Sure, you bet!

- Dane



Thanks for your help.

Best Regards,

Julio Costa
OpenStreetMap Chile
http://www.openstreetmap.cl/

-- Forwarded message --
From: nicolas chavent nicolas.chav...@gmail.com
Date: Thu, Mar 4, 2010 at 5:58 PM
Subject: WMS featuring OSM images background tiles in support of  
Chile Quake Response based on Dane's Haiti WMS
To: Julio Costa Zambelli juliocos...@gmail.com, Dane Springmeyer bl...@hailmail.net 

Cc: Andrew Turner ajtur...@gmail.com, Kate Chapman k8chap...@gmail.com 
, Mikel Maron mikel_ma...@yahoo.com



Dane, Julio and all-

If introductions are not already done, Dane (who put up a now stable  
WMS featuring OSM images background tiles ) meet Julio (who is doing  
a hell of coordination work within the OSM Chile Community)


I am just introducing you on the deployment of such a service to  
support relief work in Chile we had been briefly alluded to Dane and  
I while Dane was working on enhancing the quality of its WMS to make  
it robust enough to meet UNOCHA map production needs in Haiti. I  
heard from Severin (Haiti UNOCHA) that you are almost there Dane  
(nice and neat). If replicable by you or somebody else in OSM, this  
is a service that must come together with the already OSM shp and  
garmin extracts from cloudmade and geofabrik.


I leave this in your hands
Best to both of you and all
N


-- Forwarded message --
From: Dane Springmeyer bl...@hailmail.net
Date: Wed, Mar 3, 2010 at 2:23 AM
Subject: Re: Haiti Quake support: field-reported ill-functioning  
ESRI WMS featuring OSM images background tiles

To: OCHA HAITI MAPPING ocha.haiti.mapp...@gmail.com
Cc: Mikel Maron mikel_ma...@yahoo.com, Kate Chapman k8chap...@gmail.com 
, Andrew Turner ajtur...@gmail.com, nicolas chavent nicolas.chav...@gmail.com 




Hello Severin,

I'll comment below inline...

On Mar 2, 2010, at 4:33 PM, OCHA HAITI MAPPING wrote:


Hi Dane,

I tested these two WMS in ArcGIS as GIS serversin ArcCatalog,  
then put into ArcMap as background


Okay. Which version of ArcGIS are you running?


:
- http://data1.vizure.net/server/services/osm.xml?, wich views the  
details shown currently on openstreetmap.org, but almost impossible  
to prnt or export in a numeric map on ArcGIS.


Okay, I do not know much about this service, other than it is low  
quality jpeg.


What do you mean by numeric map?

I tried to make a map on Leogane area from 300 to 96 dpi and each  
time, as print edition as much as a PDF, it failed, with only a  
little part on the upper left corner of the image


Okay.

- http://tile2.dbsgeo.com/?request=GetCapabilitiesservice=WMSversion=1.1.1 
 which apparently shows only boundaries



This is the service I run. It should show more than boundaries, but  
yes the data show does change by zoom level.


I think what is likely happening in ArcMap is that you need to  
EXPAND the layer checkbox, and make sure that ALL the sub-layers of  
the WMS are turned on.


So, here is an example request:

http://tile2.dbsgeo.com/?layers=__all__bbox=18.497972,-72.479639,18.572645,-72.247381height=400width=600service=WMSrequest=GetMapversion=1.3.0srs=EPSG:4326format=image/pngstyles=crs=EPSG:4326

Does this look different from what you are getting?

Dane





--
Nicolas Chavent
Humanitarian OpenStreetMap Team
http://wiki.openstreetmap.org/wiki/WikiProject_Haiti
Mobile (FRA): +33 6 75 14 29 70
Email: nicolas.chav...@gmail.com
Skype: c_nicolas




___
Talk-cl mailing list
Talk

Re: [OSM-talk] [OSM-dev] GSoC'10

2010-02-06 Thread Dane Springmeyer

I'm interested in helping as well.

I've started getting organized to have the Mapnik project participate  
for the first time:


http://trac.mapnik.org/wiki/GSOC2010

But to the extent there is cross-over or it is more useful for me to  
help with a project from the OpenStreetMap side, I'm interested in  
that as well.


Dane

On Feb 6, 2010, at 6:38 AM, Graham Jones wrote:


Ian, Rajan,
I am happy to help coordinate things too.

Maybe we should see how many volunteers we get, then have an off- 
line discussion to agree who will do what?


Regards


Graham.

On 6 February 2010 14:30, Rajan Vaish vaish.ra...@gmail.com wrote:
I can help Ian, in whatever way I can. Thanks.


On Sat, Feb 6, 2010 at 7:22 PM, Ian Dees ian.d...@gmail.com wrote:
I would be happy to start setting this up, but I haven't had a lot  
of time in the last few months to give on following through with the  
GSoC 2009 year. If someone else is interested, let me know.


On Sat, Feb 6, 2010 at 5:58 AM, Rajan Vaish vaish.ra...@gmail.com  
wrote:

Hi all,

With GSoC'10 not very far, quite a number of students are emailing  
me to know about OSM's participation in GSoC'10 and what they can  
expect.
I haven't noticed any discussion or page regarding the same (sorry  
if I missed one?) . Looking forward to know/hear more about it, and  
ways I can contribute.


Thanks,
Rajan
GSoC'09 - OSM developer.

--
Rajan Vaish
ASE at Accenture Technology Labs (RD)
http://LinkedIn.com/in/RajanVaish

___
dev mailing list
d...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev





--
Rajan Vaish
ASE at Accenture Technology Labs (RD)
http://LinkedIn.com/in/RajanVaish

___
dev mailing list
d...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev




--
Dr. Graham Jones
Hartlepool, UK
email: grahamjones...@gmail.com
___
dev mailing list
d...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Haiti coastline, [ was] coastline error checker stalled

2010-01-22 Thread Dane Springmeyer

On Jan 22, 2010, at 3:00 PM, Jon Burgess wrote:

 On Wed, 2010-01-20 at 00:10 +, David Groom wrote:
 Great,

 will these shapefiles be used for the coast outline on the mapnik
 layer of
 www.openstreetmap.org?


 The coastline shapefiles on the main Mapnik layer have been updated to
 the 2010-01-20 data. The main Mapnik site use worldwide shapefiles  
 which
 take about 8 hours to generate so it is not really practical to update
 them every day. They are typically updated about once per month from  
 the
 data released in the weekly planet dumps.

Huge thanks for this update Jon!

Dane

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Mapnik 0.7.0

2010-01-21 Thread Dane Springmeyer
The Mapnik team has a new release ready: 0.7.0.

See the news item: http://mapnik.org/news/2010/jan/19/release_0_7_0/

And a mapnik-users roundup: 
https://lists.berlios.de/pipermail/mapnik-users/2010-January/002856.html

Specifically of interest to OpenStreetMap users depending on the  
osm.xml or sharing styles:

The PostGIS plugin used extensively in the osm.xml styles now has  
significantly better error reporting. So, if filters change and you've  
not updated your osm2pgsql style Mapnik will now let you know rather  
than giving you a blank map.

The Map element now has a new optional attribute called  
'minimum_version' which allows you to gently enforce the Mapnik  
version the style depends on. Mapnik development is moving quickly  
adding useful features, so this should be handy.

Unifont, which is used as the fallback font to support CJK fonts in  
osm.xml, is now installed by default in Mapnik's font cache.

For more details see the release notes: http://trac.mapnik.org/wiki/Release0.7.0

Enjoy,

Dane



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] how to apply OSM styles to maps using Quantum GIS

2010-01-18 Thread Dane Springmeyer

On Jan 18, 2010, at 3:15 PM, Felipe Carrillo wrote:

 Hi Jukka:
 Thanks for the reply again, I actually downloaded quantumnik a few  
 days ago but my experience with the command line is very limited. I  
 was trying to apply the style of the second map from this website:
 http://bitbucket.org/springmeyer/quantumnik/wiki/Home to my maps  
 without success. Do you know how to go about applying this kind of  
 style to qgis maps? Thanks


Felipe,

That is the Mapnik stylesheet that OSM uses on the main slippymap  
page, opened in QGIS through the Quantumnik plugin. Quantumnik does  
allow you to author styles from scratch through the QGIS graphical  
interface, but also allows you to open existing styles (READ ONLY).  
So, that style is not authored by QGIS, but rather by hand by the  
brilliance and hard work of many OpenStreetMap contributors.

Again, all Quantumnik is doing is allowing you to browse the maps  
rendered by that style inside QGIS and that requires you also have OSM  
data inside of PostGIS running locally.

For more details see:

http://svn.openstreetmap.org/applications/rendering/mapnik/README

Overall the steps would be:

1) Install postgres/postgis/mapnik
2) install osm2pgsql
3) download osm data
4) import into postgis using osm2pgsql
5) edit the 'osm.xml' style to fit your database configuration
6) test rendering the osm.xml with 'generate_image.py' or 'nik2img,py'

if it works then you have a Mapnik/OSM rendering setup running locally  
and you can open that style in QGIS.

Dane



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] MXD for OSM data?

2010-01-17 Thread Dane Springmeyer

On Jan 17, 2010, at 3:27 PM, Martijn van Exel wrote:

 On Jan 18, 2010, at 12:24 AM, Iván Sánchez Ortega wrote:

 El Lunes, 18 de Enero de 2010, Martijn van Exel escribió:
 Someone asked me for an ESRI MXD file for OSM data. Does such a  
 thing
 exist?

 Short answer: no.

If they need a way to view live OSM data for Haiti (wild guess) in  
ArcMap (the program that uses MXD's as the project file), then these  
are your best bets:

1) If running ArcMap = 9.3, they can load into OSM Haiti tiles in  
ArcMap compatible format from:

http://geocache.opensgi.net/haiti/arcgis/services

2) Most ArcMap versions can consume WMS services and I've set up a  
Mapnik renderer  (again for Haiti OSM data) to serve WMS  here:
http://tile2.dbsgeo.com?

And example request might be: 
http://tile2.dbsgeo.com/?layers=__all__bbox=18.497972,-72.479639,18.572645,-72.247381height=400width=600service=WMSrequest=GetMapversion=1.3.0srs=EPSG:4326format=image/pngstyles=crs=EPSG:4326

Dane


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Potlatch 2

2009-11-30 Thread Dane Springmeyer

On Nov 30, 2009, at 2:55 AM, Richard Mann wrote:

 Dare I ask whether Halcyon can do offset lines (so we can start to  
 do one-way, bike lanes  bus lanes with different casings)?

 Richard



We're close on this with Mapnik, feedback welcome:

http://trac.mapnik.org/ticket/180

Dane


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] loading geotiff to osm editors

2009-10-20 Thread Dane Springmeyer
On Oct 20, 2009, at 9:48 AM, Andy Allan wrote:

 On Tue, Oct 20, 2009 at 5:35 PM, maning sambale
 emmanuel.samb...@gmail.com wrote:
 Any advice on loading georectfied imagery (very large geotiff) to
 josm/merkaartor/potlatch?

 * Create a mapnik style that has one layer (the geotiff) and one
 rastersymbolizer
 * Run generate_tiles.py to make google-projection tiles
 * Put them on a webserver. They are already in the right folder
 structure so any webserver will do
 * You're good to go!

 You can supply extra parameters in the Potlatch url if you want to
 direct people to the imagery without having to paste in anything into
 the custom url box. For a working example, see

 http://www.openstreetmap.org/edit?lat=52.191248lon=-1.701483zoom=18tileurl=http://andy.sandbox.cloudmade.com/tiles/stratford/!/!/!.png

 I'd avoid WMS for this stuff. If you can't get it working I can
 process it and host the tiles for you.

 Cheers,
 Andy


Nice Andy.

If I can help let me know as well. In Mapnik trunk I've been working  
on adding support for GDAL overviews, so using gdaladdo on that large  
Geotiff and then reading it with the 'gdal' datasource could be really  
useful if the geotiff is  1GB. Also, reprojecting the geotiff into  
EPSG:900913 will be required, before rendering with Mapnik.

Cheers,

Dane


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Cyclelane on left/right

2009-08-16 Thread Dane Springmeyer

On Aug 15, 2009, at 5:14 PM, Lennard wrote:

 Richard Mann wrote:

 The rendering can apparently be done using Mapnik's
 LinePatternSymbolizer (which does at least now have some  
 documentation
 on the Mapnik site), but knowing that much and achieving the result  
 are
 two different things. I'm hoping it's months rather than years.

 Very good progress has been made recently on offset rendering for the
 LineSymbolizer. I'm indeed hoping we can use this something this year.

 http://trac.mapnik.org/ticket/180


Yes, thanks Lenndard.

Anyone interested in line offsets, please post your ideas to that  
ticket. I'm going to be working on the patch one last time next week.


Dane


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] rendering some large maps, e.g. whole world

2009-05-21 Thread Dane Springmeyer
Holger,

Great script for modifying mapnik symbology for higher/print  
resolution, and awesome to hear that you are using Cascadenik.

Just a note that I've started to work in Mapnik core for supporting  
scaling based on variable resolution output:

http://trac.mapnik.org/ticket/343

- Dane


On Apr 18, 2009, at 3:18 AM, Holger Schöner wrote:

 Hello,

 2009/4/18 Torsten Mohr tm...@s.netic.de
 I'd like to print a map of Germany as a poster.  My understanding is
 that osm.xml is configured to create maps that look fine on a  
 screen.
 But the Pixels per Inch on a computer monitor are different  
 compared to
 the PPI on a printed poster.
 So e.g. text size, symbol size and others may not look optimal when
 printed.

 That is correct. I wrote a small script (in Ruby, BSD license) to  
 modify an
 existing mapnik style by scaling all text sizes, line widths,
 min/maxscaledenominators etc. It worked quite well for me (using the
 standard openstreetmap mapnik style) when I tried it some months ago.

 Link to script: http://www.ancalime.de/images/scalestyle.rb

 One caveat, though: As the icons are included as pixel graphics, and  
 I do
 not know of any possiblity to scale them using style file syntax,  
 they are
 not modified. Thus they will appear much too small on a printed map.  
 If you
 have better icons, you might be able to adapt the script such that it
 exchanges yours for the standard ones ...

 For an own map (which also uses cascadenic style preprocessor to  
 produce the
 mapnik styles), I created a set of icons in different pixel sizes  
 (converted
 by inkscape from SVG templates mainly from the OSM SVN), where the  
 size is
 included as suffix in the filename. With another script (much more  
 complex,
 so I cannot publish it right away; but if you are interested, I  
 might be
 able to produce an excerpt of the relevant parts in about two or three
 weeks) I can parse these filenames, and look for appropriately sized  
 icons
 in their directory.

 Hope this helps ... Yours,
 -- 
 Holger Schoener   nume...@ancalime.de


 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk