[Mapserver-users] Missing Something

Eric Bridger eric at gomoos.org
Fri May 21 14:43:59 EDT 2004


On Fri, 2004-05-21 at 14:03, Eric Katherman wrote:
> Why doesn't this produce anything, I am a newbie so overlooking something is 
> very possible. All I get is a 640 480 box the color I have chosen below.  The 
> sewera files are all in the data path .dbf .prj .shp .shx. I used ogrinfo -al 
> to get the extents from the shx file.
> 
> this is the url I am using.
> http://localhost/cgi-bin/mapserv40?map=/srv/www/htdocs/mapserver/test.map&mode=map
> 
> 
> test.map contents ---
> MAP
>   
>   IMAGETYPE PNG
>   STATUS ON
>   EXTENT 382487.530826 833318.888530 497485.329577 1017509.008264
>   SIZE 640 480
>   SHAPEPATH "data"
>   IMAGECOLOR 238 238 238
>   
> END
>   
>   LAYER 
>     NAME sewera
>     DATA sewera
>     STATUS DEFAULT
>     TYPE POLYGON
>     
>    END 
> 

Your ogrinfo output indicates that the data is projected so you must
have compiled mapserver with PROJ4 support and then add to your MAP
section:

UNITS METERS
PROJECTION
   "init=epsg:26749"
END

If you search your proj/epsg file you'll find 26749 under # NAD27 /
Arizona Central.

HTH.





More information about the mapserver-users mailing list