Re: [gdal-dev] including higher-level library in GPX creator string
Cf https://github.com/OSGeo/gdal/pull/8558: "GPX: add a CREATOR dataset creation option" It will be of course up to the application / application user to set it. I've considered a global GDALSetDefaultCreatorApplication() (could be similar to CPLHTTPSetDefaultUserAgent(): https://gdal.org/doxygen/cpl__http_8h.html#ae83c06d51089bb340ed0b98a6ed8d01d) so that an application could set a default for all formats that write a creator application, but this leads to introducing potential options to express "totally replace the GDAL version" vs "add my name in addition to the GDAL version", or "put application/version number only when required by the format" vs "put application/version wherever the format could allow it, but only if there's a standardized location to do so" vs "put application/version wherever the format could allow, potentially it in a custom metadata item if there's no standardized location". e.g in netCDF, we have a custom attribute GDAL = "GDAL x.y.z, released /MM/DD" (it would not be appropriate to put the identification of the larger application in it, given the name of the attribute and the fact that GDAL itself parses it on reading to determine the bottom-up vs top-up orientaiton). So I've not pursued this given all those dilemmas :-) Even Le 13/10/2023 à 14:52, Greg Troxel via gdal-dev a écrit : I am a member of the GPX standards list, and we are discussing a new version and also dealing with broken data. I wrote a gpx (from geojson), with just ogr2ogr, and the creator looks like this: creator="GDAL 3.5.3" that's arguably totally fine with ogr2ogr. But it seems that if some random big program links with gdal and uses it to produce a file, the creator is just GDAL, and not "qgis 3.28.5 via GDAL 3.5.3" or something like that. I groveled over all my gpx files and found none that indicated anything like this. It would be helpful to the GPX community if files were attributed to the larger software as well, so that they can be chased down or at least understood to be separately broken. I don't see anything at https://gdal.org/drivers/vector/gpx.html#vector-gpx that could be used to do this. Does this make sense to people here? Is there any facility that would do this, that people just aren't using? Any other thoughts? Greg ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev -- http://www.spatialys.com My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] including higher-level library in GPX creator string
Hi, It seems to be hardcoded in https://github.com/OSGeo/gdal/blob/2cfeb1a9b03716c8348d6f1f4c611f2589d53e76/ogr/ogrsf_frmts/gpx/ogrgpxdatasource.cpp#L744 -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: gdal-dev Puolesta Greg Troxel via gdal-dev Lähetetty: perjantai 13. lokakuuta 2023 15.52 Vastaanottaja: gdal-dev@lists.osgeo.org Aihe: [gdal-dev] including higher-level library in GPX creator string I am a member of the GPX standards list, and we are discussing a new version and also dealing with broken data. I wrote a gpx (from geojson), with just ogr2ogr, and the creator looks like this: creator="GDAL 3.5.3" that's arguably totally fine with ogr2ogr. But it seems that if some random big program links with gdal and uses it to produce a file, the creator is just GDAL, and not "qgis 3.28.5 via GDAL 3.5.3" or something like that. I groveled over all my gpx files and found none that indicated anything like this. It would be helpful to the GPX community if files were attributed to the larger software as well, so that they can be chased down or at least understood to be separately broken. I don't see anything at that could be used to do this. Does this make sense to people here? Is there any facility that would do this, that people just aren't using? Any other thoughts? Greg ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] including higher-level library in GPX creator string
I am a member of the GPX standards list, and we are discussing a new version and also dealing with broken data. I wrote a gpx (from geojson), with just ogr2ogr, and the creator looks like this: creator="GDAL 3.5.3" that's arguably totally fine with ogr2ogr. But it seems that if some random big program links with gdal and uses it to produce a file, the creator is just GDAL, and not "qgis 3.28.5 via GDAL 3.5.3" or something like that. I groveled over all my gpx files and found none that indicated anything like this. It would be helpful to the GPX community if files were attributed to the larger software as well, so that they can be chased down or at least understood to be separately broken. I don't see anything at https://gdal.org/drivers/vector/gpx.html#vector-gpx that could be used to do this. Does this make sense to people here? Is there any facility that would do this, that people just aren't using? Any other thoughts? Greg ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev