[Mapserver-users] proj.4 stuff
Frank Warmerdam
warmerdam at pobox.com
Fri Apr 23 08:33:57 PDT 2004
Bob Basques wrote:
> Ok, that's cool, so that's in the GDAL stuff, interesting. Learn
> something everyday. Although I didn't see any reference to it anywhere
> in my searching.
>
> So I took the above and made this Map File, is the correct way to
> implement (it didn't work, I get a blank page still):
Bob,
I don't see much obvious in the way of problems here, but I would
mention that EPSG:26915 is in meters, not feet. The definition looks
like:
+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
You really need to verify that converting the bounds of your tlg_roads_l
file into from the declared source projection into the declared output
projection actually gives bounds that intersect your map EXTENT declaration.
Best regards,
> MAP
> NAME 'test'
> SIZE 800 650
> STATUS ON
> EXTENT 332000 -18000 678000 328000
> UNITS FEET
>
> PROJECTION
> "init=epsg:26915"
> END
>
> LAYER
> NAME 'tlg01'
> DATA './data/tlg01/tlg_roads_l'
> STATUS DEFAULT
> TYPE LINE
>
> PROJECTION
> "proj=lcc"
> "lat_1=44.88333333333333"
> "lat_2=45.13333333333333"
> "lat_0=44.79111111111111"
> "lon_0=-93.38333333333334"
> "x_0=152400.3048"
> "y_0=30480.06096"
> "a=6378418.941"
> "b=6357033.31"
> "to_meter=0.3048006096012192"
> "no_defs"
> END
> END
>
> END ## end Map
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list