[mapserver-users] WMS service doesn't work

gorank kirandziskig at gmail.com
Wed Feb 22 00:52:17 PST 2017


I have a problem with connection to wms service and don't now what is the
problem. 

The URL is : 

http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getcapabilities



Maybe the problem is the .map file below

MAP
  CONFIG "MS_ERRORFILE" "C:\ms4w\Apache\cgi-bin\GDZS\Error.txt"
  DEBUG 5
  EXTENT 7446477 4453517 7682148 4763251
  FONTSET    "ttf-fonts/fonts.txt"
  IMAGETYPE "png"
  NAME "MapStatDZS"
  SHAPEPATH "data/"
  SIZE 800 600
  UNITS METERS

  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "AGG/PNG"
    EXTENSION "png"
    IMAGEMODE RGB
    TRANSPARENT FALSE
    FORMATOPTION "QUALITY=95"
  END # OUTPUTFORMAT

  PROJECTION
    "init=epsg:6316"
  END # PROJECTION
  LEGEND
    KEYSIZE 30 17
    KEYSPACING 10 10
    LABEL
      FONT "arial"
      SIZE 10
      COLOR 0 0 89
      ENCODING "iso-8859-5"
      OFFSET 0 -3
      SHADOWSIZE 5 1
      TYPE TRUETYPE
    END # LABEL
    STATUS ON
    TRANSPARENT FALSE
  END # LEGEND

  QUERYMAP
    SIZE -1 -1
    STATUS ON
    STYLE HILITE
  END # QUERYMAP

  SCALEBAR
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      OFFSET 0 0
      SHADOWSIZE 1 1
      TYPE BITMAP
    END # LABEL
    SIZE 200 3
    STATUS OFF
    UNITS MILES
  END # SCALEBAR

  WEB
    IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    METADATA
      "wms_srs"	"EPSG:6316 EPSG:4326 EPSG:3909"
      "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&"
      "wms_encoding"	"utf-8"
      "wms_title"	"StatMap"
    END # METADATA
    #TEMPLATE "C:/ms4w/Apache/cgi-bin/goki/tretTemplejt.html"
  END # WEB

  LAYER
    DATA "NASA.shp" 
    EXTENT 7446477 4453517 7682148 4763251
    LABELITEM "NAZIVOP_MK"
	LABELMAXSCALEDENOM 443652
    METADATA
      "wms_srs"	"EPSG:6316 EPSG:4326 EPSG:3909"
      "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&"
      "wms_enable_request"	"*"
      "wfs_enable_request"	"*"
      "coordsys_name"	"Macedonia State Coordinate System zone 7"
      "wms_title"	"Opstini"
	  #"default_godina" "2010"
    END # METADATA
    NAME "Opstini"
    PROJECTION
      "proj=tmerc"
	  "lat_0=0"
	  "lon_0=21"
	  "k=0.9999"
	  "x_0=7500000"
	  "y_0=0"
	  "ellps=bessel"
	  "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82"
	  "units=m"
	  "no_defs"
    END # PROJECTION
    STATUS ON
    TEMPLATE "query"
    TILEITEM "location"
    TYPE POLYGON
    UNITS METERS
      
	 
    #VALIDATION
    #  "godina" "^[12][09][0-9][0-9]$"
	  
    #END #VALIDATION
    CLASS
      NAME "klasa_1"
	  EXPRESSION ([2011] > 0 and [2011] < 5)
      LABEL
        FONT "maccswiss"
        SIZE 8
        #ENCODING "iso-8859-5"
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        COLOR 255 255 128
        OUTLINECOLOR 130 130 130
        WIDTH 0.5
      END # STYLE
      TITLE "4.9 или помалку"
    END # CLASS
    CLASS
      NAME "klasa_2"
	  EXPRESSION ([2011] >= 5 and [2011] < 10)
      LABEL
        FONT "maccswiss"
        SIZE 8
        #ENCODING "iso-8859-5"
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        COLOR 250 209 85
        OUTLINECOLOR 130 130 130
        WIDTH 0.5
      END # STYLE
      TITLE "5.0 - 9.9"
    END # CLASS
    CLASS
      NAME "klasa_3"
	  EXPRESSION ([2011] >=10 and [2011] < 15)
      LABEL
        FONT "maccswiss"
        SIZE 8
        #ENCODING "iso-8859-5"
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        COLOR 242 167 46
        OUTLINECOLOR 130 130 130
        WIDTH 0.5
      END # STYLE
      TITLE "10.0 - 14.9"
    END # CLASS
    CLASS
      NAME "klasa_4"
	  EXPRESSION ([2011] >= 15 and [2011] < 20)
      LABEL
        FONT "maccswiss"
        SIZE 8
        #ENCODING "iso-8859-5"
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        COLOR 173 83 19
        OUTLINECOLOR 130 130 130
        WIDTH 0.5
      END # STYLE
      TITLE "15.0 - 19.9"
    END # CLASS
    CLASS
      NAME "klasa_5"
	  EXPRESSION ([2011] >= 20 and [2011] < 10000)
      LABEL
        FONT "maccswiss"
        SIZE 8
        #ENCODING "iso-8859-5"
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        COLOR 107 0 0
        OUTLINECOLOR 130 130 130
        WIDTH 0.5
      END # STYLE
      TITLE "20 и повеќе"
    END # CLASS
    
  END # LAYER

  LAYER
    DATA "REGIONI2007_NASA.shp"
    EXTENT 7446477 4453517 7682148 4763251
    METADATA
      "wms_srs"	"EPSG:6316 EPSG:4326 EPSG:3909"
      "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&"
      "wms_enable_request"	"*"
      "coordsys_name"	"Macedonia State Coordinate System zone 7"
      "wms_title"	"Regioni"
    END # METADATA
    NAME "Regioni"
    PROJECTION
      "proj=tmerc"
	  "lat_0=0"
	  "lon_0=21"
	  "k=0.9999"
	  "x_0=7500000"
	  "y_0=0"
	  "ellps=bessel"
	  "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82"
	  "units=m"
	  "no_defs"
    END # PROJECTION
    STATUS ON
    TEMPLATE "query"
    TILEITEM "location"
    LABELITEM "NAZIV_NTES"
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "Reg"
      LABEL
        FONT "maccswiss"
        SIZE 14
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE TRUETYPE
      END # LABEL
      STYLE
        OUTLINECOLOR 20 20 20
      END # STYLE
    END # CLASS
  END # LAYER

  LAYER
    DATA "DrzGran_NASA.shp"
    EXTENT 7446477 4453517 7682148 4763251
    METADATA
      "wms_srs"	"EPSG:6316 EPSG:4326 EPSG:3909"
      "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&"
      "wms_enable_request"	"*"
      "coordsys_name"	"Macedonia State Coordinate System zone 7"
      "wms_title"	"DrzavnaGranica"
    END # METADATA
    NAME "DrzGran"
    PROJECTION
      "proj=tmerc"
	  "lat_0=0"
	  "lon_0=21"
	  "k=0.9999"
	  "x_0=7500000"
	  "y_0=0"
	  "ellps=bessel"
	  "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82"
	  "units=m"
	  "no_defs"
    END # PROJECTION
    STATUS ON
    TEMPLATE "query"
    TILEITEM "location"
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "Drzag"
      LABEL
        SIZE SMALL
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE BITMAP
      END # LABEL
      STYLE
        OUTLINECOLOR 50 50 50
        WIDTH 1.9
      END # STYLE
    END # CLASS
  END # LAYER

  LAYER
    DATA "EZERA_NASA.shp"
    EXTENT 7446477 4453517 7682148 4763251
    METADATA
      "wms_srs"	"EPSG:6316 EPSG:4326 EPSG:3909"
      "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&"
      "wms_enable_request"	"*"
      "coordsys_name"	"Macedonia State Coordinate System zone 7"
      "wms_title"	"Ezera"
    END # METADATA
    NAME "Ezera"
    PROJECTION
      "proj=tmerc"
	  "lat_0=0"
	  "lon_0=21"
	  "k=0.9999"
	  "x_0=7500000"
	  "y_0=0"
	  "ellps=bessel"
	  "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82"
	  "units=m"
	  "no_defs"
    END # PROJECTION
    STATUS ON
    TEMPLATE "query"
    TILEITEM "location"
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "Ezera"
      LABEL
        SIZE SMALL
        OFFSET 0 0
        POSITION CC
        SHADOWSIZE 1 1
        TYPE BITMAP
      END # LABEL
      STYLE
        OUTLINECOLOR 0 158 219
        WIDTH 0.91
      END # STYLE
      STYLE
        COLOR 199 234 251
      END # STYLE
    END # CLASS
  END # LAYER
  
 

END # MAP




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-service-doesn-t-work-tp5308980.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list