[Talk-in] shops on our server

Kenneth Gonsalves lawgon at au-kbc.org
Sun Nov 29 13:20:17 GMT 2009


On Sunday 29 Nov 2009 5:47:02 pm Kenneth Gonsalves wrote:
> hi,
> 
> mapnik as of now does not render the shop tag, although osmarender does.
>  The  osmarender symbols are here:
> 
> http://svn.openstreetmap.org/applications/share/map-icons/svg/shopping/
> 
> they are in svg format - mapnik requires png. Could someone convert them
>  to  png and upload them to the repo? If you have linux, convert will do
>  the job. If you do not have convert on your system, install Imagemagick -
>  convert will also get installed.
> 

here is the code for the layer:
<Layer name="shops" status="on" srs="+proj=merc +a=6378137 +b=6378137 
+lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null 
+no_defs +over">
    <StyleName>chai</StyleName>
    <StyleName>dhaba</StyleName>
    <StyleName>barber</StyleName>
    
    <Datasource>
      <Parameter name="type">postgis</Parameter>
      <Parameter name="host">%DBHOST%</Parameter>
      <Parameter name="port">%DBPORT%</Parameter>
      <Parameter name="user">%DBUSER%</Parameter>
      <Parameter name="password">%DBPASS%</Parameter>
      <Parameter name="dbname">%DBNAME%</Parameter>
      <Parameter name="table">(select way,amenity,shop from planet_osm_point 
where shop is not null) as shops</Parameter>
      <Parameter name="estimate_extent">false</Parameter>
      <Parameter 
name="extent">-20037508,-19929239,20037508,19929239</Parameter>
    </Datasource>
</Layer>

-- 
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/




More information about the Talk-in mailing list