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