mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-10-05 23:17:14 +03:00
Merge pull request #3112 from jenkin/fix-polgyon-polygon-typo
fix polgyon polygon typo
This commit is contained in:
commit
9fc235d670
@ -86,7 +86,7 @@ class PlaceLookup
|
|||||||
($this->bIncludePolygonAsSVG ? 1 : 0);
|
($this->bIncludePolygonAsSVG ? 1 : 0);
|
||||||
if ($iWantedTypes > CONST_PolygonOutput_MaximumTypes) {
|
if ($iWantedTypes > CONST_PolygonOutput_MaximumTypes) {
|
||||||
if (CONST_PolygonOutput_MaximumTypes) {
|
if (CONST_PolygonOutput_MaximumTypes) {
|
||||||
userError('Select only '.CONST_PolygonOutput_MaximumTypes.' polgyon output option');
|
userError('Select only '.CONST_PolygonOutput_MaximumTypes.' polygon output option');
|
||||||
} else {
|
} else {
|
||||||
userError('Polygon output is disabled');
|
userError('Polygon output is disabled');
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,7 @@ class ASGIAdaptor(abc.ABC):
|
|||||||
numgeoms += 1
|
numgeoms += 1
|
||||||
|
|
||||||
if numgeoms > self.config().get_int('POLYGON_OUTPUT_MAX_TYPES'):
|
if numgeoms > self.config().get_int('POLYGON_OUTPUT_MAX_TYPES'):
|
||||||
self.raise_error('Too many polgyon output options selected.')
|
self.raise_error('Too many polygon output options selected.')
|
||||||
|
|
||||||
return {'address_details': True,
|
return {'address_details': True,
|
||||||
'geometry_simplification': self.get_float('polygon_threshold', 0.0),
|
'geometry_simplification': self.get_float('polygon_threshold', 0.0),
|
||||||
|
Loading…
Reference in New Issue
Block a user