simple tool for conversion
Joseph Norris
sirronj at PACBELL.NET
Wed Dec 8 08:53:47 PST 2004
Well - here is my experience:
I did just that - wrote a script that built a shapefile using the lat/long
coordiance. My shape file looked like this on a dump:
File Bounds: ( 32.586, -124.206,0,0)
to ( 41.773, -89.769,0,0)
Shape:0 (Point) nVertices=1, nParts=0
Bounds:( 38.526, -121.507, 0, 0)
to ( 38.526, -121.507, 0, 0)
( 38.526, -121.507, 0, 0)
Shape:1 (Point) nVertices=1, nParts=0
Bounds:( 37.775, -122.451, 0, 0)
to ( 37.775, -122.451, 0, 0)
( 37.775, -122.451, 0, 0)
Then I went and used fGIS and plotted some points on a layer over my
California map and I got the following:
File Bounds: ( 6471392.899, 282843.628,0,0)
to ( 8433025.828, 2304680.124,0,0)
Shape:0 (Point) nVertices=1, nParts=0
Bounds:( 7750718.722, 1391592.674, 0, 0)
to ( 7750718.722, 1391592.674, 0, 0)
( 7750718.722, 1391592.674, 0, 0)
Shape:1 (Point) nVertices=1, nParts=0
Bounds:( 6471392.899, 2304680.124, 0, 0)
to ( 6471392.899, 2304680.124, 0, 0)
( 6471392.899, 2304680.124, 0, 0)
Shape:2 (Point) nVertices=1, nParts=0
Bounds:( 8433025.828, 282843.628, 0, 0)
to ( 8433025.828, 282843.628, 0, 0)
( 8433025.828, 282843.628, 0, 0)
There is a big difference which led me to believe that I needed to convert
lat/long to x/y coordinates.
#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
Behalf Of Ed McNierney
Sent: Wednesday, December 08, 2004 8:46 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion
Joseph -
You should realize that there's nothing wrong with putting lat/lon
coordinates in a shapefile. You seem to think that some "conversion" is
necessary, and it's not. The world is full of shapefiles with lat/lon
coordinates in them.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed at topozone.com
(978) 251-4242
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Joseph Norris
Sent: Wednesday, December 08, 2004 11:37 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion
Yes that is what I am trying to do. I have the latitude and longitude
for different Mysql database records and I wish to produce a point shape
file of these coordinates.
#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map
chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,
14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
-----Original Message-----
From: Ethan Alpert [mailto:ealpert at digitalglobe.com]
Sent: Wednesday, December 08, 2004 8:28 AM
To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu
Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion
This makes no sense to me what-so-ever what are you trying to do? Take
vertices in a text file and build a shapefile? Project lat/lon values
into California State Plane?
-e
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On
Behalf Of Joseph Norris
Sent: Wednesday, December 08, 2004 7:58 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: [UMN_MAPSERVER-USERS] simple tool for conversion
Can anyone make a recommendation for unix command line tool that will
convert lat/long to xy coordinates?
Thanks.
#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map
chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,
14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
More information about the MapServer-users
mailing list