[mapserver-users] DCN / Mapfile problems
Derek Bain
beartreeyoga at yahoo.co.uk
Wed Jul 23 01:33:26 PDT 2008
Hi
I now get this from shp2img, any ideas. I know on the command line for ogrinfo, the parameter hydarea at hyd(*)_area must be in double quotes or it does not work. For some reason, single quotes suppresses the output. Any ideas on how to further debug this.
Note: I am running on Windows XP. My map file is below.
Thanks
Derek
shp2img output ------------------>>
C:\ms4w\Apache\cgi-bin>shp2img.exe -m C:\ms4w\apps\SeeTrack_Missions\dnc2.map -o C:\ms4w\apps\SeeTrack_Missions\test.png
msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'
. <br>
msOGRFileOpen(): OGR error. Open failed for OGR connection `gltp:/vrf/C:/ms4w/apps/SeeTrack_Missions/data/DNC13/H1316030'. File not found or unsupported format
. <br>
MAPFILE ----------------------->>
NAME "Test"
SIZE 600 400
UNITS DD
# force PROJ.4 to use this value
CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/"
# [minx_left] [miny_bottom] [maxx_right] [maxy_top]
EXTENT -180 -90 180 90 # whole world
PROJECTION
"init=epsg:4326"
END
# Set Debug file
CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/ms_error.txt"
# set recommended level for debugging mapfiles
DEBUG 3
LAYER
NAME "hydarea_hyd_area"
GROUP "DNC13"
TYPE POLYGON
CONNECTIONTYPE OGR
CONNECTION "gltp:/vrf/C:/ms4w/apps/SeeTrack_Missions/data/DNC13/H1316030"
DATA '"hydarea at hyd(*)_area"'
STATUS ON
PROJECTION
"init=epsg:4326"
END # End Projection
METADATA
"wms_title" "hydarea at hyd(*)_area"
"wms_abstract" "hydarea at hyd(*)_area abstract goes here ...."
"wms_srs" "epsg:4326"
"wms_name" "hydarea"
# [minx_left] [miny_bottom] [maxx_right] [maxy_top]
"wms_extent" "-118.646797 32.933327 -118.475853 33.066673"
"wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/SeeTrack_Missions/dnc2.map"
END # End Metadata
CLASS
NAME "hydarea"
COLOR 255 0 0
END # End Class
END # End Layer
END
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080723/51f9d0e4/attachment.htm>
More information about the MapServer-users
mailing list