[Geoserver-devel] [JIRA] (GEOS-7336) error in wfs query GetFeature using outputFormat=application/json

Jassi created an issue

GeoServer / BugGEOS-7336

error in wfs query GetFeature using outputFormat=application/json

Issue Type:

BugBug

Affects Versions:

2.8.1, 2.8.0, 2.6.5

Assignee:

Unassigned

Components:

WFS, WMS

Created:

04/Dec/15 5:27 PM

Environment:

GeoServer 2.6.5, 2.8.0, 2.8.1

Priority:

MediumMedium

Reporter:

Jassi

Hi,
I need some help.
I have upgraded Geoserver from 2.3 to 2.6.5
Currently I am using OpenLayers, GeoServer 2.6.5. I facing problem with this new version.
while searching point features on GeoServer my query contains

request=GetFeature & outputFormat=application/json & WFS

I get the result and then I read result in GeoJSON() format with readFeatures()

I am getting point features but with [X,Y] coordinate value as [NaN, NaN].

Same way getting extent for source is [NaN, NaN, NaN, NaN].

Rest other attributes returned correctly except X, Y and extent

But when I switch Back to GeoServer 2.3 version, I get X, Y and Extent proper values.

I have enabled JSONP in GeroServer web.xml
Published layer correctly
Debuged and compared both GeoServer xml result.

I found this difference in results.
GeoServer 2.3 result : “crs”:{“type”:“EPSG”,“properties”:{“code”:“27700”}}

GeoServer 2.6.5 result : “crs”:{“type”:“name”,“properties”:{“name”:“urn:ogc:def:crs:EPSG::27700”}}

same error for 2.8.0, 2.8.1 version also.
Can any one help.

BR

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.1.0-OD-02-025#71001-sha1:64a64e8)

Atlassian logo