simple tool for conversion

Paul Spencer pspencer at DMSOLUTIONS.CA
Wed Dec 8 11:58:46 EST 2004


what about using ogr2ogr?  You should be able to build a vrt file for
your mysql records then use ogr2ogr to convert to shapefile.  You can
even reproject on the fly I think ...

see:
http://gdal.org/ogr/
http://gdal.org/ogr/ogr_utilities.html
http://gdal.org/ogr/drv_mysql.html
http://gdal.org/ogr/drv_vrt.html

Paul
Joseph Norris wrote:
> 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);
>

--
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+



More information about the mapserver-users mailing list