Opened 10 years ago

Last modified 10 years ago

#5476 closed defect

OGR2OGR choosing incorrect datatype — at Version 1

Reported by: adcgis Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: ogr2ogr
Cc:

Description (last modified by adcgis)

When using OGR2OGR to connect to WFS service pulling down GML, an incorrect data type is chosen. Chooses integer when should be string.

I understand that this has been an issue in the past, due to data sampling levels, maybe this needs to be adjusted again....

OGR is being utilised as part of MS4W 3.0.6

Using Linz data service, connecting direct from GIS system shows and downloads correct data type.

Connection string is as follows for testing purposes.

Variables populated in system WFS_SRS=EPSG:4167 NZTM_SRS=EPSG:2193 BBOX=-44.209572,170.607051,-43.189952,172.220523

Linz WFS layer that comes down incorrectly is Title,x804 Field that is incorrect is title_no

"%OGR_HOME%\ogr2ogr.exe" -s_srs %WFS_SRS% -t_srs %WFS_SRS% -a_srs %WFS_SRS% -f "GML" "%DEST%\gml\%%A.gml" "WFS:http://wfs.data.linz.govt.nz/%LDS_KEY%/v/%%B/wfs?service=WFS&version=1.1.0&request=GetFeature&typeName=v:%%B&bbox=%BBOX%&SRSNAME=%WFS_SRS%" -skipfailures

XSD file that is created by OGR2OGR is attached

Change History (2)

by adcgis, 10 years ago

Attachment: Title.xsd added

comment:1 by adcgis, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.