Hi all,
I've tried this query on the ms4w and mapserver lists without luck, so please
forgive my cross-post. I think the issue is somehow related to GDAL/OGR, so
I'm hoping someone on this list can shed some light.
I have a GML file that's generated by SQL Server that contains one or more
polygons. It used to work, but since I've upgraded the ms4w installation on my
web server, any requests to MapServer for that layer fail with the message:
msOGRFileNextShape(): OGR error. Invalid exterior ring.
An example of the GML is attached, along with a .map file. The GML opens fine
in the Gaia and Snowflake GML viewers. A recent version of ogrinfo returns:
ERROR 1: Unrecognised geometry type <ms>.
ERROR 1: Invalid exterior ring
Had to open data source read-only.
INFO: Open of `warnings_en-CA.gml'
using driver `GML' successful.
1: Warnings
I've worked my way back through the ms4w versions, and have found that a change
between 3.0.3 and 3.0.4-beta1 may be the culprit:
ms4w 3.0.3 - Works
ms4w 3.0.4-beta1 - Invalid exterior ring
ms4w 3.0.5 - Invalid exterior ring
ms4w 3.0.6 - Invalid exterior ring
GDAL changed from 1.8.1RC2 to 1.9.0 in that step. I've looked through the GDAL
release notes, but nothing is jumping out at me.
Any idea why MapServer (or OGR specifically) might balk at the GML?
A million thanks,
Greg
________________________________
The information contained in this e-mail is intended only for the individual or
entity to whom it is addressed.
Its contents (including any attachments) may contain confidential and/or
privileged information.
If you are not an intended recipient you must not use, disclose, disseminate,
copy or print its contents.
If you receive this e-mail in error, please notify the sender by reply e-mail
and delete and destroy the message.
Warnings_en-CA.gml
Description: Warnings_en-CA.gml
MAP
NAME "MyMap"
STATUS ON
SIZE 256 256
EXTENT -18269023 4554951 -4376421 18899260
UNITS meters
SHAPEPATH "F:/ms4w/Apache/htdocs/warnings/Data/"
IMAGECOLOR 220 213 211
IMAGETYPE PNG24
MAXSIZE 2048
RESOLUTION 72
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error_AWX.txt"
DEBUG 5
CONFIG GDAL_DATA "F:/ms4w/gdaldata"
CONFIG PROJ_LIB "F:/ms4w/proj/nad/"
PROJECTION
"init=epsg:900913"
END
WEB
METADATA
wms_srs "EPSG:4326 EPSG:900913"
wms_enable_request "*"
END
MAXScaleDenom 1550000
MINScaleDenom 1000
IMAGEPATH "F:/ms4w/tmp/ms_tmp"
IMAGEURL "/ms_tmp/"
END
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
QUERYMAP
STATUS ON
STYLE HILITE
END
LAYER
NAME "Warnings_EN-CA"
TYPE line
STATUS OFF
CONNECTIONTYPE OGR
CONNECTION "Warnings_en-CA.gml"
TOLERANCE 5
TRANSPARENCY 50
METADATA
WMS_TITLE "Warnings"
WMS_SRS "EPSG:3857"
wms_EXTENT
"-15696293.134967,5147928.394210,-5859336.262233,17924144.240660"
WFS_SRS "EPSG:900913"
OWS_INCLUDE_ITEMS "ALL"
GML_INCLUDE_ITEMS "ALL"
"gml_featureid" "FID"
"gml_include_items" "ALL"
"ows_include_items" "ALL"
END
PROJECTION
"init=epsg:900913"
END
CLASS
NAME "warning"
STYLE
ANTIALIAS FALSE
OPACITY 95
COLOR 255 0 0
END
END
END
END
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
