[ka-Map-users] loadProjection(): Unknown identifier error

Matthew Edmondson matt0177 at gmail.com
Tue Dec 5 16:11:58 EST 2006


I've been utilizing mapserver for over a year now, mainly utilizing
chameleon. I downloaded the latest ms4w install and have been messing
around with ka-map. I've been using a modified .map file of the world
map and have run into a snag.

If I insert the line
PROJECTION  "init=EPSG:4326"
into my map file, the file wont load via html, and via mws it gives
the error of "loadProjection(): Unknown identifier error" If I comment
out that line, it works fine. I'm trying to get this to work, beacuse
otherwise I'm running into trying to access the data via mws from
other applications.

Thanks,

Matt

p.s. I'm attaching the world file.
-------------- next part --------------
MAP
 NAME "LAT LONG"
 STATUS ON
 EXTENT -113.275 30.908 -108.751 33.924
 SIZE 600 300
 SYMBOLSET ../etc/symbols.sym
 SHAPEPATH "../data"
 UNITS DD
 PROJECTION  "init=EPSG:4326"
 IMAGECOLOR 200 200 200
 INTERLACE ON
 IMAGETYPE png24
 OUTPUTFORMAT
	NAME jpeg
	DRIVER "GD/JPEG"
	IMAGEMODE RGB
	EXTENSION "jpeg"
	FORMATOPTION "QUALITY=60,PROGRESSIVE=TRUE"
 END
WEB
     METADATA
   	max_extents "-113.275,30.908,-108.751,33.924"
	END
 END

REFERENCE
       IMAGE "../data/TCA_reference.png"
       EXTENT -113.275 30.908 -108.751 33.924
       STATUS ON
       COLOR -1 -1 -1
       OUTLINECOLOR 255 0 0
       SIZE 250 125
 END
LEGEND
   OUTLINECOLOR 0 0 0
   STATUS on
   KEYSIZE 40 10
   KEYSPACING 20 15
   TRANSPARENT on
 END

 SCALEBAR
  STATUS ON
  IMAGECOLOR 255 255 255
  COLOR  0 0 0
  OUTLINECOLOR 0 0 0
   LABEL
       COLOR  0 0 0
       SIZE tiny
    END
  UNITS miles
  STYLE 1
  INTERVALS 5
  TRANSPARENT ON
  SIZE 249 15
END

#LAYER
#	NAME "World"
 #      STATUS off
  #     METADATA
   #      imageformat "PNG"
    #   END
	  # transparency 55
     #  DATA "countries_simpl.shp"
      # TYPE POLYGON
       #CLASSITEM "cat"
       #CLASS
        # NAME "Country"
         #EXPRESSION /./
         #STYLE
          # OUTLINECOLOR 100 100 100
           #COLOR 200 170 170
         #END

       #END
#END # layer



#LAYER
 #      NAME "Label"
  #     STATUS off
   #    METADATA
    #     imageformat "PNG"
     #  END
      # DATA "countries_simpl.shp"
      # TYPE ANNOTATION
      # LABELITEM 'name'
      # CLASS
	#LABEL
	 #   PARTIALS false
      #     MINDISTANCE 250
	   # MINFEATURESIZE 40
#	    POSITION CC
 #          COLOR 255 255 255
	#    OUTLINECOLOR 0 0 0
	 #   SIZE tiny
	  #  ANTIALIAS TRUE
	   # BUFFER 4
        #  END

       #END
#END #layer

LAYER 
			NAME		az_30m_ned
			TYPE		RASTER
			STATUS		on
		DATA		"tca_NED_image1.tif"
			METADATA
				"ows_title"		"TCA 30M AOR Dem"
			"ows_srs"	"EPSG:4326"
			END
			END # Layer

LAYER
  NAME "Airports"
  STATUS ON
  TYPE POINT
  DATA "airprtx020.shp"
  LABELITEM 'name'
  CLASS
   NAME "Airports"
    STYLE
    SYMBOL "star"
     SIZE 8
    COLOR 0 0 0
			
    END
  END
END # Layer

	LAYER
		NAME	roads
			TYPE		LINE
			STATUS		on
			DATA		"az_sec_hwys.shp"
			labelitem "HIGHWAY_NM"

				CLASS
					name 'Roads'
					size 20
					COLOR 0 0 0
					
			END
			METADATA
					"wms_title"		"Roads"
					"wms_srs"	"EPSG:4326"
					END
		END	# layer	


	



END


More information about the ka-Map-users mailing list