Changeset View
Changeset View
Standalone View
Standalone View
tools/shp2osm/polyshp2osm.py
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Line(s) | 155 | def feature_class(data): | |||
---|---|---|---|---|---|
253 | 'Glaciated areas': [('natural', 'glacier')], | 253 | 'Glaciated areas': [('natural', 'glacier')], | ||
254 | 'Admin-0 Tiny Countries': [], | 254 | 'Admin-0 Tiny Countries': [], | ||
255 | 'Admin-0 Tiny GeoUnit': [], | 255 | 'Admin-0 Tiny GeoUnit': [], | ||
256 | 'Admin-0 Tiny GeoSubunit': [], | 256 | 'Admin-0 Tiny GeoSubunit': [], | ||
257 | 'Admin-0 Tiny Countries Pacific': [], | 257 | 'Admin-0 Tiny Countries Pacific': [], | ||
258 | 'Pacific Groupings': [], | 258 | 'Pacific Groupings': [], | ||
259 | 'Admin-1 boundary': [('boundary', 'administrative'), ('admin_level', '4')], | 259 | 'Admin-1 boundary': [('boundary', 'administrative'), ('admin_level', '4')], | ||
260 | 'Map unit boundary':[], | 260 | 'Map unit boundary':[], | ||
261 | 'Marine Indicator Treaty':[], | 261 | 'Marine Indicator Treaty':[('boundary', 'administrative'), ('admin_level', '2'), ('maritime', 'yes'), ('border_type', 'territorial')], | ||
262 | 'Marine Indicator Median':[], | 262 | 'Marine Indicator Median':[('boundary', 'administrative'), ('admin_level', '2'), ('maritime', 'yes'), ('border_type', 'territorial')], | ||
263 | 'Boundary Treaty':[], | 263 | 'Boundary Treaty':[('boundary', 'administrative'), ('admin_level', '2'), ('maritime', 'yes'), ('border_type', 'territorial')], | ||
264 | 'Marine Indicator 200 mi nl':[], | 264 | 'Marine Indicator 200 mi nl':[('boundary', 'maritime'), ('border_type', 'eez')], | ||
265 | 'Marine Indicator Disputed':[], | 265 | 'Marine Indicator Disputed':[('boundary', 'administrative'), ('admin_level', '2'), ('maritime', 'yes'), ('border_type', 'territorial'), ('marble:disputed', 'yes')], | ||
266 | 'Claim boundary': [('boundary', 'administrative'), ('admin_level', '2')], | 266 | 'Claim boundary': [('boundary', 'administrative'), ('admin_level', '2')], | ||
nienhueser: Can we have a separate tag indicator for disputed boundaries, and its own styling in Marble? | |||||
267 | 'Reference line': [('boundary', 'administrative'), ('admin_level', '2')], | 267 | 'Reference line': [('boundary', 'administrative'), ('admin_level', '2')], | ||
268 | 'Breakaway': [('boundary', 'administrative'), ('admin_level', '2')], | 268 | 'Breakaway': [('boundary', 'administrative'), ('admin_level', '2')], | ||
269 | 'Elusive frontier': [('boundary', 'administrative'), ('admin_level', '2')], | 269 | 'Elusive frontier': [('boundary', 'administrative'), ('admin_level', '2')], | ||
270 | 'Country': [('marble_land', 'landmass')], | 270 | 'Country': [('marble_land', 'landmass')], | ||
271 | '1st Order Admin Lines': [('boundary', 'administrative'), ('admin_level', '4')], | 271 | '1st Order Admin Lines': [('boundary', 'administrative'), ('admin_level', '4')], | ||
272 | 'Claim': [('boundary', 'administrative'), ('admin_level', '4')], | 272 | 'Claim': [('boundary', 'administrative'), ('admin_level', '4')], | ||
273 | 'Airport': [('aeroway', 'aerodrome')] | 273 | 'Airport': [('aeroway', 'aerodrome')] | ||
274 | } | 274 | } | ||
▲ Show 20 Lines • Show All 532 Lines • ▼ Show 20 Line(s) | 806 | if len(non_fcla_dict) != 0: | |||
807 | print('Unknown features present in SHP file: ', len(non_fcla_dict)) | 807 | print('Unknown features present in SHP file: ', len(non_fcla_dict)) | ||
808 | print() | 808 | print() | ||
809 | for key in non_fcla_dict: | 809 | for key in non_fcla_dict: | ||
810 | print(key, non_fcla_dict[key]) | 810 | print(key, non_fcla_dict[key]) | ||
811 | if non_geom != 0: | 811 | if non_geom != 0: | ||
812 | print('Unknown geometry present in SHP file: ', non_geom) | 812 | print('Unknown geometry present in SHP file: ', non_geom) | ||
813 | 813 | | |||
814 | 814 | | |||
815 | No newline at end of file | 815 | No newline at end of file |
Can we have a separate tag indicator for disputed boundaries, and its own styling in Marble? Similar to other disputed boundaries/areas (see e.g. Jammu and Kashmir in the Atlas map theme in Marble and its legend)