simple tool for conversion

Jon Saints saintsjd at YAHOO.COM
Wed Dec 8 11:27:03 PST 2004


Hi

I have a Mr Sid raster i would like to display in
mapserver. What is the best way to do that? should i
convert to another format?

Thanks



--- Ed McNierney <ed at TOPOZONE.COM> wrote:

> Joseph -
>
> Sorry, but I don't know what fGIS is, so I'll be a
> little vague, but if
> you're using multiple data sources in different
> projections then you
> need to (a) be using software that can handle layers
> in different
> projections and (b) accurately describe what
> projection each of your
> layers is using.
>
> If you can't do that, then you will need to
> reproject your lat/lon data,
> but if that's the case it's a limitation of the
> software or the user,
> not a limitation of shapefiles.
>
>         - 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: Joseph Norris [mailto:sirronj at pacbell.net]
> Sent: Wednesday, December 08, 2004 11:54 AM
> To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu
> Subject: RE: [UMN_MAPSERVER-USERS] simple tool for
> conversion
>
> 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