[Mapserver-users] Projection trouble
David Fawcett
David.Fawcett at state.mn.us
Wed Jan 14 09:10:59 PST 2004
On first glance, it looks to me like you may have an issue with your
units. The numbers in EXTENT look like meters for a UTM projection, but
in UNITS you have listed decimal degrees. I haven't played with
projections much, so I can't go much beyond that.
David.
David J. Fawcett
MN Office of Environmental Assistance
>>> opengis_libero <opengis at libero.it> 1/14/2004 10:51:28 AM >>>
Stephen
>please post your map file to help me.
>
>
My map file is very simple:
NAME MyMap
STATUS ON
SIZE 600 330
EXTENT 806450 4688906 834120 4710677
UNITS DD
SHAPEPATH "data"
FONTSET "./data/fonts.txt"
IMAGECOLOR -1 -1 -1
PROJECTION
"init=epsg:4318"
# proj=utm
# zone=32
# ellps=WGS84
# datum=WGS84
# a=6378249.200
# b=6356515.000
# towgs84=-263,6,431,0,0,0,0
# units=dd
# proj=tmerc
# ellps=WGS84
# zone=32
# "north"
# "no_defs"
# "proj=32761"
# proj=latlong
# ellps=clrk66
END
WEB
TEMPLATE main.html
HEADER main.html
IMAGEPATH ../tmp/
IMAGEURL ../tmp/
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
LEGEND
KEYSIZE 18 12
OUTLINECOLOR 0 0 0
TRANSPARENT ON
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 0 0 0
LABEL
COLOR 0 0 0
SIZE tiny
END
STYLE 1
SIZE 80 2
COLOR 0 0 0
UNITS METERS
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
LAYER
NAME Adminbndy4_region
DATA Ri_pd
STATUS ON
TYPE POLYGON
# PROJECTION
# geographic
# END
# ERROR OUTPUT:
# msProcessProjection(): Projection library error. PROJECTION
'GEOGRAPHIC' no longer supported. Provide explicit definition. ie.
proj=latlong ellps=clrk66
CLASS
NAME 'Provincia'
COLOR 220 220 255
MAXSCALE 800001
# MINSCALE 100000
END
# METADATA
# WMS_TITLE "Your title "
# "wms_srs" "EPSG:4326"
# END
END
END
_______________________________________________
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