Brian Sperlongano
6ef138635d
Fix negative feature IDs ( #1185 )
...
This PR removes the possibility of negative feature IDs for the `aerodrome_label` layer by defining the feature as the absolute value of the OSM id (imposm maps relations with negative numbers). There is a very unlikely scenario in which a relation and a way have the same ID (and are also in the same tile), however, unique IDs are not a strict requirement of MVT.
Noted in:
https://github.com/openmaptiles/openmaptiles/pull/1176#issuecomment-902503655
Positive feature ID for Quonset State Airport, which is mapped as a relation:
![image](https://user-images.githubusercontent.com/3254090/130232322-c797d491-ece9-4889-9695-ffb6f3ac011f.png )
2021-08-20 16:40:02 +02:00
Brian Sperlongano
36bd917e05
Implement feature IDs in aerodrome_label and mountain_peak ( #1176 )
2021-08-19 21:03:40 +02:00
Adam Laža
0dc8c3256c
Rename generic layer.sql to actual_layer_name .sql ( #1034 )
...
Following layers had generic `layer.sql` name.
- `aerodrome_label`
- `aeroway`
- `housenumber`
- `mountain_peak`
- `park`
- `place`
- `poi`
- `transportation`
- `transportation_name`
- `water_name`
This PR renames `layer.sql` to `aerodrome_label.sql`, `aeroway.sql`...
2020-11-09 11:43:35 +02:00
Yuri Astrakhan
f889853cb6
aerodrome_label: Remove unused function parameter ( #919 )
...
Minor optimization - in function `layer_aerodrome_label(bbox, zoom_level, pixel_width)` last parameter is not being used, so removing.
2020-06-11 14:24:55 -04:00
Frédéric Rodrigo
495e8bd370
Align update.sql file naming to other layers ( #897 )
...
Code clean.
Use the same naming convention for the SLQ update file as other layer.
2020-05-26 21:03:07 +02:00
Yuri Astrakhan
1614a4656c
Manage field mapping in SQL declaratively
...
Simplify some of the OSM->OMT field value mappings using declarative syntax.
This approach is not for all cases, but in many it removes
the need of storing the same field in both the .yaml and .sql files.
TODO: support more complex AND/OR cases
2019-12-19 11:25:29 -05:00
Yuri Astrakhan
7426e3a924
Added missing key_field to the aerodrome_label & mountain_peak def ( #686 )
...
aerodrome_label & mountain_peak queries return `osm_id`, but they
are not declared in the data source. I think we should either remove
the `osm_id` from the query result, or declare the data source.
2019-10-28 12:26:03 -04:00
jirik
db5cd682ea
Add aeroway_label layer
2017-11-07 18:06:47 +01:00