Hi Frederick,

> There is a rather large gap between your ambitions and your current 
knowledge ;-)

Yes...I would agree 100% with that assessment!  I am completely new to the 
world of mapping and I am just in a "discovery" phase simply trying to gather 
enough information so as to get a feel for what tools are available, what is 
feasible and cost effective for mapping using OpenStreetMap data.  I would also 
consider something like Microsoft MapPoint as it has local map data and is 
reasonably priced, but from what I understand, it doesn't have any of Asia 
street data and lacks in other ways.  If there are other reasonably priced 
commercial mapping packages that would provide me with local map data for 
street maps of the world, then I would consider those as well. 

> Can you not simply download tiles from a web service? That would solve a hell 
> of a lot of problems for you.

Agreed.  It would make life SIGNIFICANTLY easier for me, no question.  However, 
that's something that I need to determine based on what customers will use this 
application.  I have been at a new job for only two weeks now, and some 
customers of this application, which need the mapping scenario I have been 
discussing, might not agree to allow their users Internet access due to 
security reasons.  That's something I need to as yet determine as well.

I appreciate your time answering my newbie questions.  For now, I'll have to 
spend some time pondering all of this information.

Thanks,
Gerard 


-----Original Message-----
From: Frederik Ramm [mailto:[email protected]] 
Sent: Friday, March 26, 2010 7:44 AM
To: Walschlager, Gerard
Cc: Peter Körner; [email protected]
Subject: Re: [osmosis-dev] Osmosis use case

Hi,

Walschlager, Gerard wrote:
> The bottom line for my investigation of mapping tools is that I need
> to have a local database of the world to perform lookups and
> rendering of maps on a "standard" Windows based desktop computer in a
> reasonably quick fashion (i.e. pan/zoom operations complete in 1 to 5
> seconds).
> 
> Performance wise, for my scenario, I'm not sure which would be
> better: rendering as tiled images or rendering as SVG.

> My application will be using WPF which can render XAML based graphic
> paths, which can be derived from SVG.  There is a utility called
> Osmarender that I've heard of and I understand it can render to SVG.

There is a rather large gap between your ambitions and your current 
knowledge ;-)

Mapnik can be made to render any section of the planet to an image in 5 
seconds but you will need to tweak the style sheet somehow. Rendering to 
XML is possible but the XML that Mapnik produces is highly complex and 
it is not unlikely that you'll stretch the capabilites of your library 
with it (go to www.openstreetmap.org and use the export tab to generate 
SVG, and try that out).

Osmarender is too slow for your purpose.

There's no reason why you must use tiled images. You can also make 
Mapnik render exactly the section you need.

> I think
> Osmarender would work with a MySQL database.

No, Osmarender does not use databases at all.

> Would you guess if
> rendering as SVG and then converting to XAML be faster than working
> with images rendered on-the-fly?

My guess is: slower by a factor of 5.

> If I go with rendering as tiled images, then I have to consider
> rendering on-the-fly or pre-rendering in advance.

It is probably a bit painful to get Mapnik + Postgres running properly 
on a Windows machine, *especially* if that machine is somewhere at your 
user's site and not fully controlled by you. Tiles are, in contrast, 
dead-easy. They only have one drawback: There are a lot of them.

> If I pre-rendered
> in advance, then I suppose I would run Mapnik over the entire
> osm2pgsql generated database and that would in turn generate yet
> another database of tiled images?

No, it generates individual files, not a database. If you want to cover 
the whole planet at zoom level 18 you will need to produce about 100 
billion tiles and they will together use about 100 Terabytes of storage. 
  This means you will have to think more about what you really need.

> Any thoughts on size of a database
> of 256x256 PNG images for entire "planet.osm" contents?  Or, is
> rendering on-the-fly going to allow me to perform my rendering of
> user requests in a few seconds?

Probably, if nobody else uses the machine.

Can you not simply download tiles from a web service? That would solve a 
hell of a lot of problems for you.

Bye
Frederik

_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to