Opened 11 years ago
Closed 11 years ago
#5031 closed defect (fixed)
Segmentation fault when reading WFS json feed
Reported by: | jpalmer | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.3 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | WFS |
Cc: |
Description
When reading a WFS featureType that does not contain a geometry column using the json format, OGR will seg fault.
ogrinfo --debug ON -so -al wfs:'http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?outputformat=json'
Produces the following output:
WFS: http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&REQUEST=GetCapabilities HTTP: Fetch(http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&REQUEST=GetCapabilities) WFS: GetFeature operation supports hits WFS: No transaction support ERROR 1: Server is read-only WFS; no WFS-T feature advertized WFS: http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&REQUEST=GetCapabilities HTTP: Fetch(http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&REQUEST=GetCapabilities) WFS: GetFeature operation supports hits WFS: No transaction support OGR: OGROpen(wfs:http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?outputformat=json/0x9d2520) succeeded as WFS. Had to open data source read-only. INFO: Open of `wfs:http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?outputformat=json' using driver `WFS' successful. OGR: GetLayerCount() = 1 WFS: http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=v:x1211 HTTP: Fetch(http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=v:x1211) Layer name: v:x1211 Geometry: Unknown (any) WFS: http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=v:x1211&RESULTTYPE=hits HTTP: Fetch(http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=v:x1211&RESULTTYPE=hits) Feature Count: 77 WFS: http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?outputformat=json&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=v:x1211 HTTP: Fetch(http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1211/wfs?outputformat=json&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=v:x1211) OGR: OGROpen(/vsimem/tempwfs_0xa1fcf0/file.geojson/0xa1a0f0) succeeded as GeoJSON. Segmentation fault
Change History (1)
comment:1 by , 11 years ago
Milestone: | 1.10.0 → 1.9.3 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r25760) and branches/1.9 (r25761)