Werner, you are totally right - compiling is beyond my capabilities.
Would be happy if you could do that, maybe it's useful for other users too.
Regards,
Roland
Gesendet: Mittwoch, 15. Dezember 2021 um 14:18 Uhr
Von: "Werner Macho" <[email protected]>
An: "Roland Spielhofer" <[email protected]>
Cc: "qgis-user" <[email protected]>
Betreff: Re: [Qgis-user] Change auto-selected column headers behaviour at delimited text import
Von: "Werner Macho" <[email protected]>
An: "Roland Spielhofer" <[email protected]>
Cc: "qgis-user" <[email protected]>
Betreff: Re: [Qgis-user] Change auto-selected column headers behaviour at delimited text import
PS: I maybe falsely assumed you are self compiling.
If you want I can try that today evening and maybe create a pull request for master.
regards
Werner
On Wed, Dec 15, 2021 at 2:13 PM Werner Macho <[email protected]> wrote:
Hi Roland,without trying it my first guess would be that the fileQGIS/src/providers/delimitedtext/qgsdelimitedtextsourceselect.cppline number 587 has something to do with it ..(trySetXYField( fieldList, isValidCoordinate, QStringLiteral( "longitude" ), QStringLiteral( "latitude" ) );trySetXYField( fieldList, isValidCoordinate, QStringLiteral( "lon" ), QStringLiteral( "lat" ) );
trySetXYField( fieldList, isValidCoordinate, QStringLiteral( "east" ), QStringLiteral( "north" ) );
trySetXYField( fieldList, isValidCoordinate, QStringLiteral( "x" ), QStringLiteral( "y" ) );
trySetXYField( fieldList, isValidCoordinate, QStringLiteral( "e" ), QStringLiteral( "n" ) );)maybe give it a try.regardsWernerOn Wed, Dec 15, 2021 at 2:00 PM Roland Spielhofer <[email protected]> wrote:_______________________________________________Hi,when importing delimted text using the data source manager, QGIS automagically detects possible column headers that may hold geometry information - in the "Geometry definition" panel.In my experience, if column names like "lat", "lon", "x" or "y" exist, QGIS automagically selects them for "X fIeld" and "Y field"See alsowhere this part is highlighted.I often have column names like "RW" (="Rechtswert") that hold the x coordinate and "HW" ("Hochwert") for the y cordinate. German speaking surveyors may be familiar with the terms...Anyway, what I am looking for is how to extend the list of lat, lon, x, y, ... to make QGIS also senitive to my RW and HW column headers. Is there a way to customize that?Regards,Roland
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
