[Mapserver-users] Reprojection of shape file.

Pericles Nacionales nacional at cbs.umn.edu
Thu Feb 5 14:03:30 PST 2004


Why don't you run ogrinfo on your data and see if the extents are actually
in latlong?  Or if the shapefiles include a .PRJ extension, open it up and
see what the projection is.  If they are in latlong, run cs2cs to
reproject the extents to the stateplane cs.

-Perry

On Thu, 5 Feb 2004, Jason M. Nielsen wrote:

> I have been assured the provided shape file is in WGS84 Lat Long. I want to keep
> the original data in this and display it in NAD83 Stateplane Utah Central (US
> Foot). Below are what I think the relevant map file chunks are. Basically when
> displaying that layer I just get a blank image as if its way out of the
> coordinates. Anyone see whats wrong?
>
> NAME SLC
> STATUS ON
> SIZE 600 400
> #EXTENT 1400000.0 7000000.0 1900000.0 7500000.0
> EXTENT 1468185.000 7329845.000 1563785.000 7473605.000
> UNITS FEET
> SHAPEPATH "data"
> IMAGECOLOR 0 0 0
> IMAGETYPE PNG24
>
> PROJECTION
>  "init=epsg:2281"
> END
>
> LAYER
>   NAME slc2002photos
>   TYPE POLYGON
>   STATUS OFF
>   DATA slc2002photos
>   PROJECTION
>     "init=epsg:4326"
>   END
>   CLASS
>     NAME "SLC 2002 Photos"
>     SYMBOL "circle"
>     SIZE 2
>     COLOR 255 255 0
>     TEMPLATE slc2002photos.html
>   END
>   HEADER header.html
>   FOOTER footer.html
> END
>
>
> I thought perhaps Id try to convert the file manually and see what it looked
> like. Im apparently doing something wrong here too.
>
> [root at vad3rZIM data]# ogr2ogr -f "ESRI Shapefile" -s_srs epsg:4326 -t_srs
> epsg:2281 trans slc2002photos.shp
> ERROR 1: latitude or longitude exceeded limits
> Failed to transform feature 0.
> ERROR 1: Terminating translation prematurely after failed
> translation of layer slc2002photos
>
> Was I given bogus data?
>
> Thanks, Jason.
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> _______________________________________________
> 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