Ticket #2724 (closed bug: fixed)
GML format creates features with geometry = OpenLayers.Bounds
| Reported by: | fvanderbiest | Owned by: | tschaub |
|---|---|---|---|
| Priority: | major | Milestone: | 2.10 Release |
| Component: | Format.GML | Version: | SVN |
| Keywords: | Cc: | ||
| State: | Complete |
Description
When parsing such a feature,
<IPLI_CLC_NAT_feature> <gml:boundedBy> <gml:Box srsName="EPSG:2154"> <gml:coordinates>298831.457971,6849838.066507 299138.956063,6850053.337673</gml:coordinates> </gml:Box> </gml:boundedBy> <DEPARTEMENT>Côte d'Armor</DEPARTEMENT> <OCCUPATION_DU_SOL_IPLI>Habitat individuel diffus</OCCUPATION_DU_SOL_IPLI> <OCCUPATION_DU_SOL_CLC>Tissu urbain individuel diffus</OCCUPATION_DU_SOL_CLC> </IPLI_CLC_NAT_feature>
... the GML format creates a feature with a geometry whose value is an OpenLayers.Bounds.
As bounds parsing is taken care of by the following block code :
var boundedByNodes = this.getElementsByTagNameNS(node, this.gmlns, 'boundedBy');
if (boundedByNodes.length === 1) {
parser = this.parseGeometry['box'];
feature.bounds = parser.apply(this, [boundedByNodes[0]]);
}
... I suggest we remove "Box" from the array named "order" in the parseFeature method.
I'm not sure whether box is a valid geometry type for a feature geometry in the GML world. In case it is, we would need to modify the parseGeometrybox? method.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

