[mapserver-users] mapserver 6.2+ OGR output - not working
Marcin Wociór
marcin.wocior at geopolis.pl
Mon Mar 24 00:50:42 PDT 2014
Hi,
I'm trying to output data from mapserver using OGR (CSV, SHP, GML).
I tried map server versions (windows):
- OSGeo4w mapserver (6.4.1-2), mapserver-dev (6.5.0.47),
mapserver-stable-dev (6.4.1.47), mapserver6 (6.2.0-1)
- sdk versions: release-1600-gdal-1-9-2-mapserver-6-2-0.zip,
release-1600-x64-gdal-1-10-1-mapserver-6-4-1.zip
All versions give this error:
msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): GD library error. Unable to initialize image.
And log file:
[Fri Mar 21 23:08:30 2014].75000 CGI Request 1 on process 12224
[Fri Mar 21 23:08:30 2014].75000 msPrepareImage(): GD library error. Unable
to initialize image.
[Fri Mar 21 23:08:30 2014].75000 msDrawMap(): Image handling error. Unable
to initialize image.
[Fri Mar 21 23:08:30 2014].75000 mapserv request processing time (msLoadMap
not incl.): 0.000s
[Fri Mar 21 23:08:30 2014].75000 msFreeMap(): freeing map at 0249C7F8.
All versions have INPUT=OGR in mapserv -v output.
Any clues?
Regards, Marcin
My config looks like this (everything except ogrs output works well):
MAP
CONFIG 'MS_ERRORFILE' "d:/map_test/mapserver.log"
DEBUG 5
IMAGETYPE OGRGML
EXTENT 139.562947 35.524705 139.917821 35.817635
SIZE 550 450
WEB
TEMPPATH "d:/map_test/"
IMAGEPATH "d:/map_test/"
IMAGEURL "d:/map_test/"
END
IMAGECOLOR 255 255 255
SHAPEPATH "../data"
OUTPUTFORMAT
NAME "DXF"
DRIVER "OGR/DXF"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=zip"
FORMATOPTION "FILENAME=result.csv"
END
OUTPUTFORMAT
NAME "CSV"
DRIVER "OGR/CSV"
MIMETYPE "text/csv"
FORMATOPTION "LCO:GEOMETRY=AS_WKT"
FORMATOPTION "STORAGE=memory"
FORMATOPTION "FORM=simple"
FORMATOPTION "FILENAME=result.csv"
END
OUTPUTFORMAT
NAME "OGRGML"
DRIVER "OGR/GML"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=simple"
FORMATOPTION "FILENAME=result.gml"
IMAGEMODE "PC256"
END
OUTPUTFORMAT
NAME "SHAPEZIP"
DRIVER "OGR/ESRI Shapefile"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=simple"
FORMATOPTION "FILENAME=result.zip"
END
OUTPUTFORMAT
NAME "png"
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
NAME "gif"
DRIVER GD/GIF
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION "gif"
END
OUTPUTFORMAT
NAME "png8"
DRIVER AGG/PNG8
MIMETYPE "image/png; mode=8bit"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "QUANTIZE_FORCE=on"
FORMATOPTION "QUANTIZE_COLORS=256"
FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
NAME "jpeg"
DRIVER AGG/JPEG
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
NAME "svg"
DRIVER CAIRO/SVG
MIMETYPE "image/svg+xml"
IMAGEMODE RGB
EXTENSION "svg"
END
OUTPUTFORMAT
NAME "pdf"
DRIVER CAIRO/PDF
MIMETYPE "application/x-pdf"
IMAGEMODE RGB
EXTENSION "pdf"
END
OUTPUTFORMAT
NAME "GTiff"
DRIVER GDAL/GTiff
MIMETYPE "image/tiff"
IMAGEMODE RGB
EXTENSION "tif"
END
OUTPUTFORMAT
NAME "kml"
DRIVER KML
MIMETYPE "application/vnd.google-earth.kml.xml"
IMAGEMODE RGB
EXTENSION "kml"
END
OUTPUTFORMAT
NAME "kmz"
DRIVER KMZ
MIMETYPE "application/vnd.google-earth.kmz"
IMAGEMODE RGB
EXTENSION "kmz"
END
OUTPUTFORMAT
NAME "cairopng"
DRIVER CAIRO/PNG
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
OUTPUTFORMAT
NAME png8_t
DRIVER "GD/PNG"
IMAGEMODE PC256
TRANSPARENT OFF
END
# Start of LAYER DEFINITIONS-------------------------------
LAYER
NAME ""ąH"
DATA dourokukan
STATUS DEFAULT
TYPE LINE
CLASS
NAME ""ąH"
STYLE
COLOR 227 227 127
END
END
END
# End of LAYER DEFINITIONS -------------------------------
END
More information about the MapServer-users
mailing list