[MS4W-Users] MS4W 3.0.4beta1 and still no luck with WFS and OGR output
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Thu Feb 9 10:38:25 EST 2012
Hi,
I was hoping that the new version would make my OGR output trials to work but unfortunately I can only get error messages like these:
[Thu Feb 09 17:21:28 2012].789000 msOGRWriteFromQuery(): General error message. Failed to open result file 'd:/ms4w/tmp/4f33e478_fac_0/out.txt'.
[Thu Feb 09 17:22:38 2012].139000 msOGRWriteFromQuery(): General error message. Failed to open result file 'd:/ms4w/tmp/4f33e4be_a08_0/out.txt'.
I do not see any obvious errors in my mapfile and normat GML output works great. If someone has made this to work with shapefiles I would love to see the mapfile. Below is mine.
MAP
OUTPUTFORMAT
NAME "CSV"
DRIVER "OGR/CSV"
MIMETYPE "text/csv"
FORMATOPTION "LCO:GEOMETRY=AS_WKT"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=simple"
FORMATOPTION "FILENAME=%outfile%"
END
MAXSIZE 4000
SIZE 800 800
EXTENT 61600 6597900 733000 7776800 #euref
UNITS meters
IMAGECOLOR 20 250 250
WEB
IMAGEPATH "d:/ms4w/tmp/"
TEMPPATH "d:/ms4w/tmp/"
METADATA
"outfile_validation_pattern" "."
"default_outfile" "out.txt"
"ows_enable_request" "*"
"wfs_encoding" "UTF-8"
"wfs_namespace_prefix" "lv"
"wfs_namespace_uri" "http://latuviitta.org"
"wfs_abstract" "Mapserver 6.0 WFS"
"wfs_getfeature_formatlist" "CSV"
"wfs_srs" "EPSG:3067 EPSG:4326 EPSG:2393 EPSG:900913"
"wfs_title" "Mapserver-WFS"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/ms4w/map/mapserver60_wfs_test.map"
END
END
#DEBUG 10
CONFIG "PROJ_LIB" "/ms4w/proj/nad"
CONFIG "MS_ERRORFILE" "/ms4w/tmp/wfs_error.log"
PROJECTION
"init=epsg:3067"
END
LAYER
TYPE POLYGON
STATUS ON
PROJECTION
"init=epsg:3067"
#Finnish ETRS-TM35FIN projection
END
NAME "wfs_polygons"
#CONNECTIONTYPE OGR #same result with OGR connection
#CONNECTION "/ms4w/map/AVI1_p.shp" #same result with OGR connection
DATA "/ms4w/map/AVI1_p.shp"
METADATA
"wfs_title" "wfs_polygons"
"gml_include_items" "all"
END
DUMP TRUE
DEBUG 5
CLASS
STYLE
COLOR "#FF6767"
END
END
END
END
Regards,
-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20120209/6cc1d4d4/attachment.htm
More information about the MS4W-Users
mailing list