simple tool for conversion

Joseph Norris sirronj at PACBELL.NET
Wed Dec 8 11:56:55 EST 2004


I did use this to create a shapefile,  but there is still the problem of

           my $shape = new Geo::Shapelib;
           foreach my $i (0..10) {
               push @{$shape->{Shapes}},{SHPType=>POINT,
                                         ShapeID=>$i++,
                                         Vertices=>[[$i,$i,0,0]]
                                        };
             }

I need the Vertices for my points - as far as I can see I can only get that
from conversion of my 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 Ethan Alpert
Sent: Wednesday, December 08, 2004 8:50 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion

If you're pulling data from mysql then I suggest using perl DBI and
Geo::Shapelib to create the shapefile in one step. A google search
turned up some C++ code and java code to do this. I use postgis so I
usually rely on pgsql2shp to create my shapefiles.

-e

-----Original Message-----
From: Joseph Norris [mailto:sirronj at pacbell.net]
Sent: Wednesday, December 08, 2004 9:37 AM
To: Ethan Alpert
Cc: mapserver users
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