3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
180 stars 54 forks source link

Import numeric fields as numeric fields #405

Closed Jouski closed 1 year ago

Jouski commented 2 years ago

When importing datas, all fields are strings, even though the information would rather be numeric, such as "population" for a city. It can make it difficult to use them.

Would it be possible to choose as an option do import fields as numeric when it contains only numeric characters ?

Describe alternatives you've considered

What I do at the moment is : using the field calculator to make an extra field with "to_real" function. Example : to_real("population") Which results in a new numeric field "inhabitants"

Gustry commented 1 year ago

Duplicate of https://github.com/3liz/QuickOSM/issues/314

Indeed, it woudl a very nice idea. I would like in QGIS a native Processing algorithm to make this kind of post processing.