@koopjs/featureserver
Advanced tools
Comparing version 8.1.7 to 8.1.8
{ | ||
"name": "@koopjs/featureserver", | ||
"version": "8.1.7", | ||
"version": "8.1.8", | ||
"description": "*An open source implementation of the GeoServices specification*", | ||
@@ -30,3 +30,3 @@ "main": "src/index.js", | ||
"@koopjs/logger": "5.0.0", | ||
"@koopjs/winnow": "4.2.0", | ||
"@koopjs/winnow": "4.2.1", | ||
"@terraformer/spatial": "^2.1.2", | ||
@@ -33,0 +33,0 @@ "chroma-js": "^2.4.2", |
@@ -9,5 +9,7 @@ const _ = require('lodash'); | ||
if (esriFormat && !metadata.idField) { | ||
const properties = _.get(features, '[0].properties') || _.get(features, '[0].attributes'); | ||
if (esriFormat && !metadata.idField && properties?.OBJECTID === undefined) { | ||
logManager.logger.debug( | ||
'requested provider has no "idField" assignment. You will get the most reliable behavior from ArcGIS clients if the provider assigns the "idField" to a property that is an unchanging 32-bit integer. An OBJECTID field will be auto-generated in the absence of an "idField" assignment.', | ||
`provider data has no OBJECTID and has no "idField" assignment. You will get the most reliable behavior from ArcGIS clients if the provider assigns the "idField" to a property that is an integer in range 0 - ${Number.MAX_SAFE_INTEGER}. An OBJECTID field will be auto-generated in the absence of an "idField" assignment.`, | ||
); | ||
@@ -22,6 +24,6 @@ } | ||
if (metadata.fields && _.has(features, '[0].properties')) { | ||
compareFieldDefintionsToFeature(metadata.fields, features[0].properties); | ||
if (metadata.fields && properties) { | ||
compareFieldDefintionsToFeature(metadata.fields, properties); | ||
compareFeatureToFieldDefinitions(features[0].properties, metadata.fields); | ||
compareFeatureToFieldDefinitions(properties, metadata.fields); | ||
} | ||
@@ -28,0 +30,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99065
2480
+ Added@koopjs/winnow@4.2.1(transitive)
- Removed@koopjs/winnow@4.2.0(transitive)
Updated@koopjs/winnow@4.2.1