mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Ensure that a geometry exists
This commit is contained in:
@@ -68,7 +68,7 @@ function geometryAsString (item, opts = {}) {
|
||||
|
||||
if (key in item) {
|
||||
const geometry = item[key];
|
||||
if ("coordinates" in geometry) {
|
||||
if (geometry && "coordinates" in geometry) {
|
||||
if (geometry.type == "Point") {
|
||||
if (formatDMS) {
|
||||
str = dms(geometry.coordinates[1], geometry.coordinates[0]);
|
||||
|
||||
Reference in New Issue
Block a user