[Mapserver-users] Virtual Spatial Data - projection

Doug Cates doug at moximedia.com
Wed Jun 2 12:17:08 EDT 2004


Your coordinates have the x and y wrong. Chicago O'Hare airport is at:

lat/long 41.9795833 / -87.9044722

Which should appear in your table like:

x             |        y
-------------------------------
-87.9044722   |   41.9795833

Doug

On Wed, 2004-06-02 at 08:48, Jenu Abraham wrote:
> still no points showing up on the map....
> this is how my table looks now
> 
> table: latlong
> 
> x             |        y
> -------------------------------
> 41.5         |     -87.5
> ------------------------------
> 35.5         |     -97.4
> ---------------------------------
> 
> ------------------------------------------------------------------------------------------------------------
> >From: "Pagurek, Debbie" <PAGUREKD at AGR.GC.CA>
> >To: "Jenu Abraham" <jenu_ab at hotmail.com>, 
> ><mapserver-users at lists.gis.umn.edu>
> >Subject: RE: [Mapserver-users] Virtual Spatial Data - projection
> >Date: Wed, 2 Jun 2004 10:06:54 -0400
> >
> >
> >You have the negative in the wrong place.
> >e.g. Chicago should be 41.5  -87.2
> >
> >Debbie
> >
> >-----Original Message-----
> >From: mapserver-users-admin at lists.gis.umn.edu
> >[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Jenu
> >Abraham
> >Sent: Tuesday, June 01, 2004 4:12 PM
> >To: mapserver-users at lists.gis.umn.edu
> >Subject: [Mapserver-users] Virtual Spatial Data - projection
> >
> >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
> >
> 
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar  get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list