From: Dmitry R. (JIRA) <ji...@co...> - 2009-12-29 14:59:07
|
Support ArcGIS WFS responses without gml:id ------------------------------------------- Key: GEOT-2912 URL: http://jira.codehaus.org/browse/GEOT-2912 Project: GeoTools Issue Type: Improvement Components: data wfs Affects Versions: 2.6.0 Environment: win32, java 1.6.0_13 Reporter: Dmitry Rykovanov Fix For: 2.0.0 Attachments: XmlSimpleFeatureParser.java Support ArcGIS WFS responses without gml:id http://webhelp.esri.com/arcgisserver/9.3/Java/index.htm#wfs_service.htm states that {quote} gml:ids are not provided for features in WFS services that are based on Shapefiles {quote} Looking in XmlSimpleFeatureParser.seekFeature() I see following code: {quote} // Mapserver hack if (featureId == null) { featureId = parser.getAttributeValue(null, "id"); } {quote} I've attached patched XmlSimpleFeatureParser with proposed solution. The idea is to use first attribute as feature id -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |