[Mapserver-users] WMS test mapfile and Test server would be appreciated

Nicolas Boretos nicolas at maich.gr
Fri Apr 30 05:35:19 EDT 2004


Arnulf Christl wrote:

> Hi,
> get the WMS GetCapabilities URL here:
> http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&request=capabilities&wmtver=1.0.0 
>
>
Thank you Arnulf and Norbert,

With your help, I've managed to get somewhere...

Problems I noted were

1. I needed to set an environment variable PROJ_LIB since thet defaults 
for windows e.g. C:\PROJ etc
did not work for me since msys paths are weird....This allowe my epsg 
file to be found

2. I had to find another epsg file that contained your code..

3. As you suggested, I needed to set IMAGEPATH, URL to point to my machine??

I did not see the problem with the PNG lib, I used the PNG lib distro, 
and I am using ms4.01 on WinXP...

Now to move on to WFS stuff

I,ve attached my mapfile incase it might help other...

thanx again, and regards,

nicolas boretos



------------------------------------------------------------------------
MAP
  NAME "test_cascading_WMS"
  STATUS ON
    EXTENT 4426500 5466000 4448000 5490200
    PROJECTION
            "init=epsg:31494"
  END
  SIZE 650 420
  IMAGECOLOR 255 255 255
  TRANSPARENT ON
  UNITS meters     #Units mapcoordinates; fu"r scale/scalebar Berechnungen
  RESOLUTION 72                     #Pixel/inch fu"r Output 
(scalecomputation; def 72), vorher 300
  INTERLACE OFF
  IMAGETYPE PNG                            #output imagetype
  WEB
    FOOTER "cascade_wms.html"
    HEADER "cascade_wms.html"
    IMAGEURL "/cascade_wms/tmp/"
    IMAGEPATH "c:/web/maich.gr/cascade_wms/tmp/"
    TEMPLATE "cascade_wms.html"
    MINSCALE 0
    MAXSCALE 2000000
    LOG "cascade_wms.log"
    #IMAGEPATH "/data/umn/umn-www/sessions/"
    #IMAGEURL "http://wms1.ccgis.de/umn/sessions/"
    METADATA
      "WMS_TITLE"    "test_cascading_wms"
      "WMS_ABSTRACT"    "Test cascading WMS"
      "WMS_ACCESSCONSTRAINTS"   "none"
      "WMS_SRS"   "epsg:31494"
      ###THIS GETS WMS CAPABILITIES 
http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&request=capabilities&wmtver=1.0.0 

      ###This gets my WMS Capabilities for this map 
http://193.218.36.78/cgi-bin/ms401_static/mapserv.exe?map=c:/web/maich.gr/cascade_wms/cascade_wms.map&request=capabilities&wmtver=1.0.0
      ###"WMS_ONLINERESOURCE"   
"http://192.168.2.71/cgi-bin/mapserv?map=/data/umn/test_cascading_wms.map"
      "WMS_ONLINERESOURCE"   
"http://193.218.36.78/cgi-bin/ms401_static/mapserv?map=c:/web/maich.gr/cascade_wms/cascade_wms.map"
      "WMS_FEATURE_INFO_MIME_TYPE"    "text/html"
    END
  END

   LAYER
      NAME "cascaded_WMS"
      TYPE RASTER
            STATUS ON
             CONNECTION 
"http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&wmtver=1.0.0" 

             CONNECTIONTYPE WMS
             METADATA
           "wms_srs"    "epsg:31494"
                 "wms_title"  "cascaded WMS"
        END
             PROJECTION
           "init=epsg:31494"
             END
   END

END
#-----------------------------------------------------------------------------------------





More information about the mapserver-users mailing list