[Geoserver-devel] [JIRA] (GEOS-8852) Inconsistent DefaultGeometry between FeatureType and Features for a given resource

Torben Barsballe created an issue

GeoServer / BugGEOS-8852

Inconsistent DefaultGeometry between FeatureType and Features for a given resource

Issue Type:

BugBug

Assignee:

Unassigned

Created:

19/Jul/18 1:48 AM

Priority:

MediumMedium

Reporter:

Torben Barsballe

If a data store has two or more geometry properties, and the marked default is different from the first geometry property, featureType.getFeatureType.getGeometryDescriptor() and featureType.getFeatureSource.getFeatures(Filter.INCLUDE).features().next().getDefaultGeometry() will give different results.

This is because the FeatureType of the FeatureTypeInfo is built using DataUtilities.createType() via the underlying store implementation (calculated upon request) whereas the FeatureType of each feature is calculated using SimpleFeatureTypeBuilder.buildFeatureType() (ResourcePool line 960), then cached in the ResourcePool.

This behaviour likely varies depending on the underlying Store implementation; I have only reproduced it with PropertyStore so far.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100090-sha1:3f3c44d)

Atlassian logo