[maplab-users] Projection problem in Maplab with MSW4

charley cheng chengcharlie2003 at yahoo.ca
Tue Jun 29 15:49:43 EDT 2004


Dear Zak and lists,
 
My MSW4 with maplab works fine with tutorial mapfile. There is no projection setting in tutorial mapfile.
 
When I worked on my own data, whatever projection I seted, it give the following error message. If I delete the projection definition in my mapfile, the maplab works and no crash , but no image at all. 
 
I am using data from mapinfo(.tab) and longitude and latitude projection.
 
Following is my error message and mapfile.
 
Thank you for you help!!
 
Charlie
 
Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215
Warning: Failed to open map file /ms4w/tmp//40e1c2b759cf3.map in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215
Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215
Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215
Warning: Failed to open map file /ms4w/tmp//40e1c2b759cf3.map in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215
Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 304

MAP
  NAME "NAL_GIS_DEMO"
  STATUS ON
  EXTENT -120.10 48.95 -109.91 60.03 
  SIZE 400 600 
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS KILOMETERS
  
  
  WEB
    MINSCALE 2e+06
    MAXSCALE 5e+07
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
  END
  
  
  PROJECTION
      "proj=latlong"
    END

  REFERENCE
    STATUS ON
    IMAGE "images/overview_nal.png"
    SIZE 75 131 
    EXTENT -120.10 48.95 -109.91 60.03 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 3
    MAXBOXSIZE 0
    MARKER 0
    MARKERSIZE 0
  END
  
  
  QUERYMAP
    STATUS OFF
    SIZE -1 -1 
    COLOR 255 0 0
    STYLE HILITE
  END
  
  
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION LL
    KEYSIZE 18 12 
    KEYSPACING 5 5 
    TEMPLATE "ttt"
  END
  
  
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 150 5 
    STYLE 0
    POSITION LL
  END
  
  
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT OFF
  END
  
  
  LAYER
    NAME "Alberta Bnd"
    STATUS ON
    TYPE POLYGON
    
    CONNECTIONTYPE OGR
    CONNECTION "TAB_ FILES/AlbertaBounds.TAB"
    
    PROJECTION
          "proj=latlong"
    END
    
       
    TOLERANCE 5
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "Province_Name"
      color 0  255 182
      outlinecolor  32 32 32 
      
    END
  END
END

 



---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040629/7ee80355/attachment.htm


More information about the Maplab-users mailing list