[Geoserver-devel] [jira] (GEOS-6794) Request over vector data in north polar stereographic against postgis can fail to generate a valid query

Andrea Aime created an issue

GeoServer / BugGEOS-6794

Request over vector data in north polar stereographic against postgis can fail to generate a valid query

Issue Type:

BugBug

Affects Versions:

2.6.0

Assignee:

Andrea Aime

Components:

PostGIS, WMS

Created:

04/Dec/14 10:23 AM

Priority:

MajorMajor

Reporter:

Andrea Aime

A request like

http://host:port/geoserver/wms?CQL_FILTER=seq%3D%27NG020L%27&LAYERS=earthmodel%3Apdem_contours&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A102017&BBOX=-25484013.356862,-25434240.380148,25484013.351526,25434239.401075&WIDTH=512&HEIGHT=511

Has been shown to generate this query:

SELECT "id","elevation",encode(ST_AsBinary(ST_Simplify(ST_Force_2D("geom"), NaN)),'base64') as "geom" FROM "pdem_contours" WHERE  ("seq" = 'NG020L' AND "seq" IS NOT NULL  AND "geom" && ST_GeomFromText('POLYGON ((-180 89.99999558347875, -180 90, 180 90, 180 89.99999558347875, -180 89.99999558347875))', 4326) AND (("elevation" = -6000 AND "elevation" IS NOT NULL ) OR ("elevation" = -4000 AND "elevation" IS NOT NULL ) OR ("elevation" = -2000 AND "elevation" IS NOT NULL ) OR ("elevation" = 0 AND "elevation" IS NOT NULL ) OR ("elevation" = 1000 AND "elevation" IS NOT NULL ) OR ("elevation" = 2000 AND "elevation" IS NOT NULL ) OR ("elevation" = 4000 AND "elevation" IS NOT NULL ) OR ("elevation" = 6000 AND "elevation" IS NOT NULL )))

That is, the simplification distance is “NaN”

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo