[Tile-serving] [openstreetmap/osm2pgsql] Set up of a local server with detailed Gis Map Data of a particular area (#623)

Marcos Dione mdione at grulic.org.ar
Thu Sep 29 10:03:08 UTC 2016


On Thu, Sep 29, 2016 at 02:23:26AM -0700, Shree1100 wrote:
> 1)I want to create a local server which would store all the detailed information of the particular area of the map.

    That can be achieved with osm2pgsql --hstore and many other tools.
The fact is, osm2pgsql is tightly related to the rendering stack, so the
databases it generates are mostly aimed at that task.

> 2)I want to use this data or the map for further development with the SharpMap

    What do you mean, 'further development'?

> 3)I tried all the procedure of Postgis,Mapnik,Tilemill,osm2pgsql and
> came to the conclusion that Mapnik and Tilemill export map data in the
> form of png or xml format which i dont want as i need to achieve various
> zoom levels and need to perform some operations on various layers on the
> map with all the information displayed as it is in normal Google Map.

    Yes, one possibility is to render the png raster tiles usually used
by online maps. Another option is to export vector tiles, which means
that the vector information is delivered to the (web) client and it uses
a rendering stack, like tangram, to draw a map. This is what most modern
maps are doing, including gmaps.

    A third option is to have a basic raster style, with not much info,
and then serve the particular data as geojson or any other format and
render that on top. This can be achieved with leaflet on the client (the
same you would be using for the raster map anyways) and some other thing
in the server. For instance, upoi.org uses OSM's tileset and
overpass-turbo.eu for the poi data.


> 4)I will be provided with the map data which i want to store in the
> local database in case of no internet connectivity and then want to use
> the same data with the help of SharpMap for further development.

    That depends a lot on the client application. If it is you who's
developing it, then it's up to you to cache locally data and use that in
offline mode. You could also take a look at the different comercial
offers on top of OSM data, which have SDKs for developing such apps and
data already prepared for you.

-- 
(Not so) Random fortune:
Terrorism isn't a crime against people or property. It's a crime against
our minds, using the death of innocents and destruction of property to
make us fearful.
	    -- Bruce Schneier



More information about the Tile-serving mailing list