[mapserver-users] WMS For Open Street Maps for MapServer?
Tamas Szekeres
szekerest at gmail.com
Fri Mar 19 15:00:22 PDT 2010
You might want to try to use the GDAL WMS/TMS
driver<http://www.gdal.org/frmt_wms.html>,
as something like:
LAYER
DATA "frmt_wms_openstreetmap_tms.xml"
NAME "frmt_wms_openstreetmap_tms"
PROJECTION
"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"
END
STATUS ON
TYPE RASTER
UNITS METERS
END
Along with the following xml file:
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>http://tile.openstreetmap.org/${z}/${x}/${y}.png
</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>18</TileLevel>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:900913</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<Cache />
</GDAL_WMS>
Best regards,
Tamas
2010/3/19 Bill Thoen <bthoen at gisnet.com>
> Can anyone tell me if there is a WMS server out there (that's working)
> that serves Open Street Maps data? I've searched and found some old sites
> that don't seem to be working now, and I found some information that talks
> about a MapServer solution that involves downloading several "helper" files
> and running things through PostGIS, but is it that complicated? Isn't there
> just a simple WMS server out there I could use to load US streets into a
> MapServer map or is this not the best way to go about it?
>
> I also tried http://services.giub.uni-bonn.de/wms?, with no luck. I
> couldn't even get capabilities from it.
>
> Here's one of the ones I tried. I'll post the code so if anyone sees a
> problem with it, please let me know? That would be helpful. But as it is,
> this server also doesn't appear to be working. Both of these were mentioned
> in search googlits, but there's not a heck of a lot out there about this.
> LAYER
> NAME osm
> GROUP "Roads"
> TYPE RASTER
> METADATA
> "wms_title" "Open Street Map"
> "wms_group_title" "Roads & Highways"
> "wms_format" "image/jpeg"
> "wms_srs" "EPSG:4326"
> "wms_name" "osm"
> "wms_server_version" "1.1.1"
> "wms_transparent" "true"
> END
> STATUS ON
> CONNECTIONTYPE WMS
> CONNECTION
> "http://data1.vizure.net/server/services/request.php?jname=/wms"<http://data1.vizure.net/server/services/request.php?jname=/wms>
> PROJECTION
> "init=epsg:4326"
> END
> END
>
> TIA,
> - Bill Thoen
>
> --
> GISnet - www.gisnet.com
> 1401 Walnut St., Suite C
> Boulder, CO 80302
> 303-786-9961 tel
> 303-443-4856 fax
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100319/6c449dcc/attachment.htm>
More information about the MapServer-users
mailing list