Proj4 with Line and Polygon

Zolla Michalak michalak at hwr.arizona.edu
Thu Jan 25 18:05:57 EST 2001


We have successfully used Proj4 to convert and project a point shape file,
but cannot get line and polygon shape files to work. 


Here is a snippet from my map file:
[Airports (point) work, but not railroads (line) yet.]


#
# Start of map file
#
NAME africa.map
SIZE 500 453
SHADESET symbols/shade.sym
MARKERSET symbols/marker.sym
LINESET symbols/line.sym
EXTENT -4000000.000 -4500000.000 4250000.000 4000000.000
UNITS meters

  PROJECTION
    "proj=laea" #lambert
    "lat_0=5"
    "lon_0=20"
    "radius=6370997"
    "x_0=0"
    "y_0=0"
  END #PROJECTION


SHAPEPATH "/h/h2/www/synergy/africa/data/afrir_lam/"
 
##################################################################
#         GEO TO LAM AIRPORTS
##################################################################
LAYER
  NAME airprts_afrir
  TYPE Point
  STATUS on
  DATA airprts_afrir
  
  CLASS
    Name 'Converted Airports'
    COLOR 250 0 0 #red
    SYMBOL 7
  END   # CLASS
    
  PROJECTION
        geographic
  END #PROJECTION
  

END  # LAYER

###############################################
#          GEO TO LAM RAILROADS
###############################################
LAYER
  NAME rlrd_afrir1  
  TYPE Line
  STATUS on
  DATA rlrd_afrir1

  CLASS
    Name 'Converted Railroads'
    COLOR 250 0 0
    SYMBOL 7
  END   # CLASS
    
  PROJECTION
        geographic
  END #PROJECTION

END  # LAYER

END  # MAPFILE









***************************************************
   Zolla Michalak 
   Support Systems Analyst
   Hydrology, University of Arizona
   (520) 626-8746   http://hydis.hwr.arizona.edu
***************************************************





More information about the mapserver-users mailing list