[mapserver-users] GetCapabilities error

GeoLady mvischranka at gmail.com
Tue May 30 04:58:44 PDT 2017


Hi,

I have problem with GetCapabilities in WMS in MapServer. I try it in our
intranet for now, so 192.168.0.127 is not accesible from internet.

I try this url in QGIS or in my browser:
http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
But what I get is just the mapserv.exe which gets downloaded every time. And
there is this error:

GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_BAG.dll using
GDALRegister_BAG.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_FITS.dll using
GDALRegister_FITS.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GEOR.dll using
GDALRegister_GEOR.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_GMT.dll using
GDALRegister_GMT.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4.dll using
GDALRegister_HDF4.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF4Image.dll
using GDALRegister_HDF4Image.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5.dll using
GDALRegister_HDF5.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_HDF5Image.dll
using GDALRegister_HDF5Image.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_KEA.dll using
GDALRegister_KEA.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MG4Lidar.dll
using GDALRegister_MG4Lidar.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_MrSID.dll
using GDALRegister_MrSID.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\gdal_netCDF.dll
using GDALRegister_netCDF.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_AmigoCloud.dll
using RegisterOGRAmigoCloud.
GDAL: Auto register \\?\D:\MapServer\scripts\gdalplugins\ogr_OCI.dll using
RegisterOGROCI.
GNM: GNMRegisterAllInternal
GNM: RegisterGNMFile
GNM: RegisterGNMdatabase
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  

<WMT_MS_Capabilities version="1.1.1">



<Service>
  <Name>OGC:WMS</Name>
  <Title>Test WMS MVi</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/>
  <ContactInformation>
  </ContactInformation>
</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://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/png; mode=8bit</Format>
      <Format>application/x-pdf</Format>
      <Format>image/svg+xml</Format>
      <Format>image/tiff</Format>
      <Format>application/vnd.google-earth.kml+xml</Format>
      <Format>application/vnd.google-earth.kmz</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>
      <Format>text/plain</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
    <DescribeLayer>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </DescribeLayer>
    <GetLegendGraphic>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/png; mode=8bit</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </GetLegendGraphic>
    <GetStyles>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"/></Post>
        </HTTP>
      </DCPType>
    </GetStyles>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
    <Format>application/vnd.ogc.se_inimage</Format>
    <Format>application/vnd.ogc.se_blank</Format>
  </Exception>
  <VendorSpecificCapabilities />
  <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1"
RemoteWFS="0"/>
  <Layer>
    <Name>MS</Name>
    <Title>Test WMS MVi</Title>
    <Abstract>MS</Abstract>
    <SRS>EPSG:2065</SRS>
    <LatLonBoundingBox minx="19.0997" miny="48.5713" maxx="19.1463"
maxy="48.583" />
    <BoundingBox SRS="EPSG:2065"
                minx="-422441" miny="-1.24647e+006" maxx="-419074"
maxy="-1.24543e+006" />
    <Layer queryable="0" opaque="0" cascaded="0">
        <Name>ulice</Name>
        <Title>UlicnaSiet</Title>
        <SRS>EPSG:2065</SRS>
        <LatLonBoundingBox minx="19.1138" miny="48.572" maxx="19.1316"
maxy="48.5818" />
        <BoundingBox SRS="EPSG:2065"
                    minx="-421400" miny="-1.24648e+006" maxx="-420159"
maxy="-1.24548e+006" />
        
    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities> 


When I try this url in my browser, it works fine:
http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map&
SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=ULICE&STYLES=&SRS=EPSG:2065&
BBOX=-422441,-1246473,-419074,-1245427&WIDTH=600&HEIGHT=300&FORMAT=image/png

When I try shp2img -m d:\MapServer\map\wmstest.map -o wms.png, it works too.

Here is my mapfile:
MAP
  EXTENT         -422441 -1246473 -419074 -1245427
  SIZE           600 300
  FONTSET        "D:\MapServer\fonts\font.list"
  CONFIG         "PROJ_LIB" "D:\MapServer\scripts\proj\nad"
  CONFIG         "MS_ERRORFILE" "D:\MapServer\tmp\ms_error.txt"
  CONFIG         "CPL_DEBUG" "ON"
  CONFIG         "PROJ_DEBUG" "ON"
  DEBUG		 5	
  MAXSIZE 100000
  SHAPEPATH      "D:\MapServer\data"


WEB
  IMAGEPATH   "/MapServer/tmp/"
  IMAGEURL    "/MapServer/tmp/"
  #TEMPLATE    "d:\MapServer\mm.html"#
  METADATA
      "wms_title" "Test WMS MVi"
      "wms_onlineresource"
"http://192.168.0.127/mapserver/scripts/mapserv.exe?map=D:\MapServer\map\wmstest.map?"
      "wms_enable_request" "*"
      "wms_srs" "EPSG:2065"
      "wms_feature_info_mime_type" "text/html"
      "wms_format" "image/png"
  END
END

PROJECTION
   "init=epsg:2065"
  END

  LAYER 
    NAME         ulice
    DATA         ulice
    STATUS       ON
    TYPE         LINE
    ENCODING	 "UTF-8"	
    METADATA
    "wms_title" "UlicnaSiet"
    "wms_srs"   "EPSG:2065"
    END
    PROJECTION
      "init=epsg:2065"
    END
    LABELITEM    "N_GM_U"
    CLASS
      NAME       "Uličná sieť"
      STYLE
        COLOR        255 128 0
      END
      LABEL
        COLOR 132 31 31
        TYPE TRUETYPE
        FONT arial
        SIZE 8
        ANTIALIAS TRUE
        POSITION CL
        PARTIALS FALSE
        MINDISTANCE 300
        BUFFER 4
        STYLE    # since to version 6
          GEOMTRANSFORM 'labelpnt'
          COLOR 218 218 218
          OFFSET 2 2
        END # STYLE
      END # label
    END #class
    END #layer
END

Can someone help, thanks a lot.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetCapabilities-error-tp5322278.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list