Create my own shapes
    Nuri 
    nuri at NUSVIRTUAL.COM
       
    Mon Apr 18 01:24:36 PDT 2005
    
    
  
Hi,
I'm trying to create my own shapes.
I have several programs to view shapes and to modify them like: Shape
Viewer, OpenEV,...
I modify an existing shape and an existing data base and it runs
perfectly, but when I try to create a new simple one it doesn't run.
I don't know if my .map file isn't correct or new shape and data base
aren't correct.
Someone could help me?
The code in my .map file is:
MAP
  IMAGETYPE PNG
  EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
I obtained Extent coordinates with shpinfo.exe
  SIZE 400 300
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
  PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"
  #
  # Alternatively, you can specify an EPSG code.
  # "init=epsg:2163"
  #
  END
  # Start of LAYER DEFINITIONS --------------------------------------------
-
  LAYER # Prova
    NAME prova
    DATA rectangles
    STATUS DEFAULT
    TYPE POLYGON
    PROJECTION
      "init=epsg:4326"
    END
    CLASS
      COLOR 232 232 232
    END
  END # Prova
  LAYER # Linies prova
    NAME linies_prova
    DATA rectangles
    STATUS DEFAULT
    TYPE LINE
    PROJECTION
      "init=epsg:4326"
    END
    CLASS
      COLOR 32 32 32
    END
  END # Linies prova
  # End of LAYER DEFINITIONS -------------------------------
END # end of map file/object
Thank you
    
    
More information about the MapServer-users
mailing list