[Mapserver-users] Virtual Spatial Data - projection

Jenu Abraham jenu_ab at hotmail.com
Tue Jun 1 16:11:56 EDT 2004


guys...
i have been trying to plot points on a US map using latlong cordinates from 
my SQL table using virtual spatial data
ogrinfo gave the correct output..with testing2.ovf

eg:  -35.5 97.4 oklahomaq city
      -41.5 87.2 chicago
i can see the states layer but
i dont see any points on my map..from the truck layer
why? is something wrong in the projection

------------------------
MAP
  NAME           e-test-rd-jbox-vsd_
  IMAGETYPE      GIF
  EXTENT          -2236857.50 -1744057.00  2786329.50 29069.36
  SIZE           800 600
  SHAPEPATH      "C:\cgi-bin\data\"
  FONTSET        "C:\cgi-bin\fonts\fonts.list"
  WEB
    TEMPLATE 'e-test-rd-jbox.html'
    IMAGEPATH 'C:\cgi-bin\tmp\'
    IMAGEURL  '/tmp/'
  END

  PROJECTION
    "init=epsg:2163"
   END


  LAYER # States polygon layer begins here
    NAME         states
    DATA         statesp020
    STATUS       DEFAULT
    TYPE         POLYGON
    PROJECTION
      "init=epsg:4326"
    END
    CLASS
        COLOR      240 240 100
    END
  END # States polygon layer ends here


LAYER # start of truck position from database

	NAME trucks
	TYPE POINT
	CONNECTIONTYPE OGR
	CONNECTION "testing2.ovf"
	DATA "mylayer"
	STATUS DEFAULT

	PROJECTION
      	  "proj=latlong"
	END
	CLASS
		SYMBOL 1
		SIZE 6
     		COLOR      255 0 0
	END
END # end of connection layer
# End of LAYER DEFINITIONS
END # end of map file

_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/




More information about the mapserver-users mailing list