docs: change pseudoarea to webmerc_area in test/example configurations

master
Oliver Tonnhofer 2017-11-24 11:36:23 +01:00
parent 41c37d8626
commit 5816161a40
6 changed files with 8 additions and 13 deletions

View File

@ -125,7 +125,7 @@
"key": null
},
{
"type": "pseudoarea",
"type": "webmerc_area",
"name": "area",
"key": null
}

View File

@ -299,15 +299,10 @@ The geometry of the OSM element.
Like `geometry`, but the geometries will be validated and repaired when this table is used as a source for a generalized table. Must only be used for `polygon` tables.
``pseudoarea``
^^^^^^^^^^^^^^
Area of polygon geometries in square meters. This area is calculated in the webmercator projection, so it is only accurate at the equator and gets off the more the geometry moves to the poles. It's still good enough to sort features by area for rendering purposes.
``area``
^^^^^^^^
Area of polygon geometries in the unit of the selected projection (m² or degrees²). Note that a `meter` in the webmercator projection is only accurate at the equator and gets off the more the geometry moves to the poles. It's still good enough to sort features by area for rendering purposes.
Area of polygon geometries in the unit of the selected projection (m² or degrees²). Note that the area is only accurate at the equator for EPSG:4326 and EPSG:3857 and gets off the more the geometry moves to the poles. It's still good enough to sort features by area for rendering purposes.
``webmerc_area``
^^^^^^^^^^^^^^^^

View File

@ -78,7 +78,7 @@
"key": null
},
{
"type": "pseudoarea",
"type": "webmerc_area",
"name": "area",
"key": null
},
@ -861,7 +861,7 @@
"key": null
},
{
"type": "pseudoarea",
"type": "webmerc_area",
"name": "area",
"key": null
}

View File

@ -227,7 +227,7 @@ tables:
- name: type
type: mapping_value
- name: area
type: pseudoarea
type: webmerc_area
- args:
values:
- land
@ -530,7 +530,7 @@ tables:
- name: type
type: mapping_value
- name: area
type: pseudoarea
type: webmerc_area
mapping:
amenity:
- swimming_pool

View File

@ -135,7 +135,7 @@ func Geometry(val string, elem *element.OSMElem, geom *geom.Geometry, match Matc
}
func MakePseudoArea(columnName string, columnType ColumnType, column config.Column) (MakeValue, error) {
log.Print("warn: pseudoarea type is deprecated and will be removed. See area and webmercarea type.")
log.Print("warn: pseudoarea type is deprecated and will be removed. See area and webmerc_area type.")
return Area, nil
}

View File

@ -65,7 +65,7 @@
"key": null
},
{
"type": "pseudoarea",
"type": "webmerc_area",
"name": "area",
"key": null
},