[mapserver-users] Can't get mapcache/mapserver to properly display a map.
Rahkonen Jukka (Tike)
jukka.rahkonen at mmmtike.fi
Mon Jun 30 09:37:46 PDT 2014
Hi,
Totally normal. That is how WMS is planned to work. Clien asks first "Hi there, server! Show me what you can!" and server answers. You will find plenty of good reading about WMS from the web including Mapserver documentation http://mapserver.org/ogc/wms_server.html. First hit for WMS + GetCapabilities for me was http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_connector/get_capabilities.htm which was very informative as well.
-Jukka Rahkonen-
________________________________________
TrolliPolli wrote:
> I have installed mapcache and mapserver. I can navigate to the demo at
> localhost/mapcache/demo, but when I'm having difficulties doing much else.
> First question, when I navigate to
http://localhost:9282/mapcache/?MAP=/gisDirectory/htdocs/mapserver/mymap.map&SERVICE=WMS&REQUEST=GetCapabilities
> I simply see the following xml file tree:
<WMT_MS_Capabilities version="1.1.1">
<Service>
<Name>OGC:WMS</Name>
<Title>no title set, add some in metadata</Title>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost:9282/mapcache/?"/>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>application/vnd.ogc.wms_xml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost:9282/mapcache/?"/>
</Get>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost:9282/mapcache/?"/>
</Get>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost:9282/mapcache/?"/>
</Get>
</HTTP>
</DCPType>
</GetFeatureInfo>
</Request>
<Exceptions>
<Format>text/plain</Format>
</Exceptions>
<VendorSpecificCapabilities>
<TileSet>
<SRS>EPSG:900913</SRS>
<BoundingBox SRS="EPSG:900913" minx="-20037508.342789"
miny="-20037508.342789" maxx="20037508.342789" maxy="20037508.342789"/>
<Resolutions>
156543.03392804099712520838 78271.51696402048401068896
39135.75848201022745342925 19567.87924100512100267224
9783.93962050256050133612 4891.96981025128025066806
2445.98490512564012533403 1222.99245256282006266702 611.49622628141003133351
305.74811314070478829308 152.87405657035250783338 76.43702828517623970583
38.21851414258812695834 19.10925707129405992646 9.55462853564703173959
4.77731426782351586979 2.38865713391175793490 1.19432856695587897633
0.59716428347793950593
</Resolutions>
<Width>256</Width>
<Height>256</Height>
<Format>image/png</Format>
<Layers>osm</Layers>
<Styles/>
</TileSet>
</VendorSpecificCapabilities>
<Layer>
<Title>no title set, add some in metadata</Title>
<SRS>EPSG:900913</SRS>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:3857</SRS>
<Layer cascaded="1" queryable="0">
<Name>osm</Name>
<Title>OSM MapServer served map</Title>
<Abstract>
see
http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu
</Abstract>
<LatLonBoundingBox minx="-180.000000" miny="-90.000000"
maxx="180.000000" maxy="90.000000"/>
<BoundingBox SRS="EPSG:900913" minx="-20037508.342789"
miny="-20037508.342789" maxx="20037508.342789" maxy="20037508.342789"/>
<SRS>EPSG:900913</SRS>
<SRS>EPSG:3857</SRS>
<BoundingBox SRS="EPSG:4326" minx="-180.000000"
miny="-90.000000" maxx="180.000000" maxy="90.000000"/>
<SRS>EPSG:4326</SRS>
</Layer>
</Layer>
</Capability>
Is this normal? Or should I be actually seeing something more with a
GetCapabilities request?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-get-mapcache-mapserver-to-properly-display-a-map-tp5148847.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list