Opened 9 years ago
Last modified 5 years ago
#6056 closed defect
geojson test 22 intvalue property is a float — at Initial Version
Reported by: | Kurt Schwehr | Owned by: | warmerdam |
---|---|---|---|
Priority: | low | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I am pretty sure that the properties don't mean anything, but was there a particular point to having 3.5 for the 'intvalue'?
https://trac.osgeo.org/gdal/browser/trunk/autotest/ogr/ogr_geojson.py#L928
if (feature.GetFieldAsString("_id") != 'aid2' or feature.GetFieldAsString("_rev") != 'arev2' or feature.GetFieldAsDouble("intvalue") != 3.5 or feature.GetFieldAsString("str2value") != 'bar' or ogrtest.check_feature_geometry(feature, ref_geom) != 0):
If there was a specific reason, we should doc it. If not, I'm considering making it just an int.
Note:
See TracTickets
for help on using tickets.