Can't project a layer of a shp that uses a utm_ wgs84 projection

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Aug 4 14:31:20 EDT 2004


I looks like your EXTENTS and UNITS are in DD and not in utm zone14
units. Also if the data is projected then you can remove both the
projection blocks as they are not needed unless you plan to mix data
source that are in different projections.

-Steve W.

Thomas Shaw wrote:

> Hello, I just assigned a utm_wgs84_zone14 projection to a shp file with
> arcinfo. The next thing I wanted to do is to use mapserver to project that
> shp as a layer. My mapfile is the following:
>
>
>
> #
> # Start of map file
> #
> MAP
> NAME mapa_de_mexico
> STATUS ON
> SIZE 575 468
> SYMBOLSET
> /usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/symbols_mapinfo.sym
> EXTENT -117.53926633136 8.7749367751593 -86.256395549464 34.869751589975
> FONTSET  "data/fonts/fonts.list" UNITS DD
> SHAPEPATH "data/"
> IMAGECOLOR 107 181 255
> TRANSPARENT off
> IMAGETYPE PNG
>
> PROJECTION
>     "proj=utm"
>     "zone=14"
>     "ellps=WGS84"
>     "datum=WGS84"
>     "units=m"
>     "no_defs"
> END
>
>
>
> #
> # Start of web interface definition
> #
>
> WEB
>   IMAGEPATH
> "/usr/local/mapserver_4/www/culiacan/temp/tracker/modules/Rastreo/tmp/"
>   IMAGEURL "modules/Rastreo/tmp/"
> END
>
>
> ##############################################################################
> #
> # Leon City layer
> #
>
>
> LAYER
>
>   NAME manchaleon
>   GROUP "mex"
>   TYPE polygon
>   STATUS on
>   CONNECTIONTYPE OGR
>   CONNECTION "data/leoncalles_Polygon.shp"
>
> PROJECTION
>     "proj=utm"
>     "zone=14"
>     "ellps=WGS84"
>     "datum=WGS84"
>     "units=m"
>     "no_defs"
> END
>
>
>  CLASS
>     NAME "mancha"
>     COLOR   0
>     OUTLINECOLOR   0
>   END
>   TOLERANCE 5
> END
>
> #-----------------------------------------
> END #map
>
>
>
> The thing is that mapserver is not displaying that layer..., but it is not
> displaying any error either.
>
> I'll appreciate if anyone can help me with it. Thank you
>
> Thomas Shaw.
>



More information about the mapserver-users mailing list