[mapserver-users] Re: mapserver as a tiling client for an untiled WMS

deduikertjes DeDuikertjes at xs4all.nl
Wed Apr 21 10:30:52 PDT 2010


So I've tried for real.

First I created a WMS to act as the untiled WMS which I wanted to access.
Then I created a mapfile which consumes this WMS, and a client to view the
results. Everything OK. The client shows the map as it should be.

The layer defintion to consume the WMS:
LAYER
  NAME "my_untiled_WMS"
  TYPE RASTER
  STATUS off
  
  CONNECTIONTYPE WMS
  CONNECTION "http://my_untiled_WMS_url"

  METADATA    
    "wms_srs"             "EPSG:28992"
    "wms_name"            "my_root_layer"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/png"
    "wms_exceptions_format"  "application/vnd.ogc.se_xml"

  END
  DEBUG 5
END

Then I replaced this LAYER definition by things like:
LAYER
	  NAME "my_untiled_WMS"
	  DEBUG 5
	  PROJECTION
		   "init=epsg:28992"
	  END
	  
	  TYPE RASTER
	  STATUS off
	  
	  
	  DATA "/var/www/html/tmp/test.xml"
	  EXTENT 102790.553 430082.85 182959.978 487853.15
	  OFFSITE 0 0 0
	METADATA
	   "wms_title"     "my_root_layer"
	   "wms_extent"    "102790.553 430082.85 182959.978 487853.15"
	   "wms_srs"             "EPSG:28992"
	   "wms_server_version"  "1.1.1"
	   "wms_format"          "image/png"
	   "wms_exceptions_format"  "application/vnd.ogc.se_xml"
	END
	PROCESSING "CLOSE_CONNECTION=DEFER"
END 	

Test XML being things like:
<GDAL_WMS>
   <Service name="WMS">
       <Version>1.1.1</Version>
      <ServerUrl>http://my_untiled_WMS_url</ServerUrl>
         <SRS>EPSG:28992</SRS>
         <Layers>my_root_layer</Layers>
         <Styles>default</Styles>
         <ImageFormat>image/png</ImageFormat>
     </Service>
     <DataWindow>
         <UpperLeftX>10528</UpperLeftX>        <!--minx from the
capabilities of my_untiled_wms  -->
         <UpperLeftY>621876</UpperLeftY>      <!--maxy from the capabilities
of my_untiled_wms  -->
         <LowerRightX>278026</LowerRightX>   <!--maxx from the capabilities
of my_untiled_wms  -->
         <LowerRightY>306839</LowerRightY>   <!--miny from the capabilities
of my_untiled_wms  -->
             <SizeX>1000</SizeX>                        <!-- This is the
size limit of my_untiled_wms  -->
             <SizeY>1000</SizeY>                        <!-- This is the
size limit of my_untiled_wms  -->
     </DataWindow>
     <Projection>EPSG:28992</Projection>
     <BlockSizeX>1000</BlockSizeX>              <!-- not sure, need not set,
or set to 1000? -->
     <BlockSizeY>1000</BlockSizeY>              <!-- not sure, need not set,
or set to 1000? -->
     <BandsCount>3</BandsCount>
   <AdviseRead>true</AdviseRead>
   <VerifyAdviseRead>true</VerifyAdviseRead>
</GDAL_WMS>


I tweaked a lot of the parameters but whatever I do I only get pink tiles
(no images). So I checked the error logs (debug 5). No errors at all. The
error log of the untiled WMS (http://my_untiled_WMS_url) shows that this WMS
never gets accessed.

So I wonder, is this minidriver working at all? Is it testable or
debug-able? How should I proceed. I'm really at loss.

Any help greatly appreciated.
-- 
View this message in context: http://n2.nabble.com/mapserver-as-a-tiling-client-for-an-untiled-WMS-tp4917136p4938381.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list