Map file test fail
Joaquim Pinto da Costa
jpintodacosta at GMAIL.COM
Wed Apr 5 04:12:39 PDT 2006
Hi
As a new user in a new mapserver project I'm testing my map file with
shp2img. The results weren't very encouraging.
C:\php>shp2img -m "C:\Program Files\Apache Group\Apache2\htdocs\AlAtlas\map\AlAt
las.map" -o test.png
msProcessProjection(): Projection library error. No such file or directory <br>
Is this a problem with proj4 ? Although I have the projection defined
at the map and layer levels all data is using the same projection.
In fact I didn't manage to get a map with data with different
projections but the current map file works perfectly with the HTML
interface.
Any clues where to start? Is it an absolute necessity to pass the
shp2img test to have proj4 working?
Regards
Joaquim
Portugal
Map file excerpts
MAP
EXTENT -290169.632209333 -325582.241017 1371176.20410133 920427.136216
FONTSET "C:/Program Files/Apache
Group/Apache2/htdocs/AlAtlas/map/etc/fonts.fnt"
IMAGECOLOR 255 255 255
IMAGETYPE png
SYMBOLSET "C:/Program Files/Apache
Group/Apache2/htdocs/AlAtlas/map/etc/symbset.sym"
SHAPEPATH "C:/php/geodata/ALATLASn/"
SIZE 600 450
STATUS ON
UNITS meters
NAME "Al-Atlas"
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
TRANSPARENT FALSE
END
PROJECTION
"init=epsg:20790"
END
snip
LAYER
CLASSITEM "EUR_CITY_I"
DATA "cidad_iber"
GROUP "Territorio Admin."
LABELITEM "NAME"
METADATA
"WMS_SRS" "epsg:20790"
"WMS_FEATURE_INFO_MIME_TYPE" "text/html"
"WMS_GROUP_TITLE" "Territorio Admin."
"WMS_TITLE" "AlAtlas - Grandes Cidades Peninsula"
END
NAME "Grandes Cidades Peninsula Iberica"
PROJECTION
"init=epsg:20790"
END
SIZEUNITS PIXELS
STATUS ON
TEMPLATE "Grandes Cidades Peninsula Iberica_query.html"
TOLERANCE 7
TOLERANCEUNITS PIXELS
TRANSPARENCY 100
TYPE POINT
DUMP TRUE
UNITS METERS
CLASS
NAME "cidad_iber"
EXPRESSION /./
LABEL
SIZE MEDIUM
TYPE BITMAP
BUFFER 0
COLOR 0 0 0
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
POSITION UC
END
METADATA
END
STYLE
ANGLE 360
COLOR 0 0 0
SIZE 8
SYMBOL 16
END
END
END
END
More information about the MapServer-users
mailing list