Home > postgis > Receiving -infinity in geoserver wfs GetFeature result

Receiving -infinity in geoserver wfs GetFeature result

October 16Hits:1
Advertisement

I'm currently using: - Geoserver 2.7.2 - PostgreSQL 9.4.4 - PostGIS 2.1.9

When I submit the following wfs GetFeature request:

http://localhost:8080/geoserver/wfs?service=wfs&version=2.0.0&request=GetFeature&typeNames=gis:roads&propertyName=the_geom&outputFormat=gml2&cql_filter=(street_name='FLINT RD')

I receive the following result:

<wfs:FeatureCollection xsi:schemaLocation="http://vcgi.vermont.gov http://www.sample.com/geoserver/wfs?service=WFS&version=1.0.0& request=DescribeFeatureType&typeName=gis%3Aroads http://www.opengis.net/wfs http://www.sample.com/geoserver/schemas /wfs/1.0.0/WFS-basic.xsd"><gml:boundedBy><gml:null>unknown</gml:null> </gml:boundedBy><gml:featureMember><gis:roads fid="roads.48727"> <gis:the_geom><gml:MultiLineString srsName="http://www.opengis.net /gml/srs/epsg.xml#4326"><gml:lineStringMember><gml:LineString> <gml:coordinates decimal="." cs="," ts=" ">44.12436,-72.54717 -72.54743,-Infinity -Infinity,44.12444 44.12463,-72.54852 -72.54871, -Infinity -Infinity,44.12468 44.12499,-72.54978 -72.55025,-Infinity -Infinity,44.1251 44.12517,-72.55048 -72.5519,-Infinity -Infinity, 44.12547 44.12553,-72.55207 -72.55227,-Infinity -Infinity,44.12558 44.12565,-72.5526 -72.55374,-Infinity -Infinity,44.12593 44.12598, -72.55402</gml:coordinates></gml:LineString></gml:lineStringMember> </gml:MultiLineString></gis:the_geom></gis:roads></gml:featureMember> </wfs:FeatureCollection> 

(Notice all the -Infinity occurrences)

The Geoserver log shows the following:

2015-10-15 19:05:57,870 DEBUG [geotools.jdbc] - SELECT "gid",encode(ST_AsEWKB("the_geom"),'base64') as "the_geom" FROM "gis"."roads" WHERE ("street_name" = 'FLINT RD') LIMIT 1000000 2015-10-15 19:05:57,904 TRACE [gml.producer] - ENTRY MULTILINESTRING ((44.124362943798175 -72.54717254645593, -72.54743194580789 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.12443923857896, 44.12463378863299 -72.54852294837116, -72.54870605469117 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.124675750770415, 44.12499237083453 -72.54978179876312, -72.55025482204758 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.1251029964365, 44.125171661170974 -72.55048370402218, -72.55190276942085 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.125473021362026, 44.12553405699744 -72.55207061773541, -72.5522689808511 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.12558364838957, 44.12565231215203 -72.5526046755422, -72.55374145556436 -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 44.12593078582823, 44.12598037696227 -72.55402374258838)) 2015-10-15 19:05:57,904 TRACE [gml.producer] - RETURN MultiLineString

There is nothing of note in the Postgresql log.

When I query the database directly the geometries looks fine:

select st_asgeojson(the_geom) from gis.roads where street_name = 'FLINT RD';  st_asgeojson {"type":"MultiLineString","coordinates": [[[-72.5471725464559,44.1243629437982], [-72.5474319458079,44.124439238579], [-72.5485229483712,44.124633788633], [-72.5487060546912,44.1246757507704], [-72.5497817987631,44.1249923708345], [-72.5502548220476,44.1251029964365], [-72.5504837040222,44.125171661171], [-72.5519027694208,44.125473021362], [-72.5520706177354,44.1255340569974], [-72.5522689808511,44.1255836483896], [-72.5526046755422,44.125652312152], [-72.5537414555644,44.1259307858282], [-72.5540237425884,44.1259803769623], [-72.5541915893192,44.1260261526254], [-72.5545272832683,44.1261024472592], [-72.5555801392129,44.1263809192413], [-72.5561523429156,44.1265525805059], [-72.5563964838536,44.1266136172514], [-72.556709289904,44.1266746509119]]]} (1 row) 

Does anyone have any idea what may be causing -Infinity to be returned in the wfs result set?

Related Articles

  • Receiving -infinity in geoserver wfs GetFeature resultOctober 16

    I'm currently using: - Geoserver 2.7.2 - PostgreSQL 9.4.4 - PostGIS 2.1.9 When I submit the following wfs GetFeature request: http://localhost:8080/geoserver/wfs?service=wfs&version=2.0.0&request=GetFeature&typeNames=gis:roads&propertyName

  • Geoserver WFS GetFeature returns no features when reprojecting PostGIS layerNovember 16

    I may be misunderstanding the GeoServer documents, but when accessing a GeoServer 2.2 WFS 1.1 layer, should I be able to reproject to an arbitrary SRS via the SRSNAME parameter? I'm generating a bounding box from the location of a click on a WMS map

  • Using GeoServer WFS to GetFeature by Clicking on it on the mapSeptember 4

    Can someone point me to document of crafting a Geoserver WFS GetFeature request with CQL_Filters? I've already read the GeoServer CQL_Filter Geometric filter section I have a Geoserver WMS set up to return multiple polygon geometries (from a postgres

  • LAT LONG wfs GetFeature query - arcgis verses geoserver geospatial data serversOctober 26

    We could be querying a Geoserver or ArcGis server for WFS features (v1.1.0). However I'm finding that Geoserver takes the envelope bounds in LONG LAT and Arcgis takes them in LAT LONG. The use of srsName="EPSG:..." doesn't seem to have any affec

  • WFS getfeature request with diffent SRS

    WFS getfeature request with diffent SRSJanuary 10

    I'm having problems with a WFS getFeature request. I'm using openlayers with an OSM map as baselayers which use the google projection. Overlaying the layer with WMS works perfect. When I do a request to return all features within the bounds of a poly

  • WFS getFeature Request Blank XML for some layersFebruary 24

    I have following url request to geoserver. the first request results blank page but the second page results in number of feature count. Why it there blank xml for some layer while other gives number of features. http://192.168.70.65:7070/geoserver/wf

  • Allow GeoServer WFS request by featureIDApril 6

    I'm not able to use the featureID parameter in a WFS URL request for my dataset on GeoServer. Example: http://demo.opengeo.org/geoserver/wfs?version=1.1.0&service=wfs&request=GetFeature&typeName=topp:tasmania_roads&maxFeatures=10&featu

  • Can't solve "OperationNotSupported" error on WFS GetFeature requestOctober 11

    I'm working on a web map viewer using OpenLayers, ExtJS, GeoExt and GXP. I've added a LayerTree (gxp_layertree) that shows layers from various WMS servers from different GeoServer versions. I've also configured a FeatureManager (gxp_featuremanager) w

  • Geoserver WFS - Can I Pass in Filter Parameters via the URL?August 13

    I'm trying to use PHP's CURL function to fetch geoJSON information from a GeoServer instance. I'm doing this using url variables rather than trying to construct a full xml GetFeature request. However, I would like to be able to get a subset of the re

  • Geotools wfs getFeatureNovember 5

    I want to retrieve the feature Collection from a wfs server with the java library GeoTools. I tried this code, but unfortunately the program fails to execute. public class App { public static void main( String[] args ) throws IOException{ String getC

  • Releasing GeoServer WFS-T Feature LockMay 24

    For some reason I'm having trouble finding any documentation about releasing feature locks in a GeoServer WFS (or any WFS for that matter). I can easily request a FeatureLock with a request like this http://localhost:8080/geoserver/wfs?service=WFS&ve

  • OpenLayers WFS - GetFeature Draw CircleAugust 16

    I am developing GIS Portal using OpenLayers, I use WFS GetFeature to retrive some datas like bellow: var layer = map.getLayersByName("pf_trecho_at"); var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); var protocol = new O

  • Geoserver WFS get feature doesn't work - "SyntaxError: missing ; before statement"

    Geoserver WFS get feature doesn't work - "SyntaxError: missing ; before statement"December 3

    I'm trying to use geoserver WFS json for creating vector layer (instead of using WMS) because this is a layer I redraw every 20 seconds. This is the code I use : function getJSON() { var geoJsonUrl = "http://localhost:8080/geoserver/test/ows?service=

  • What's the correct link for adding GeoServer WFS to ArcMap?

    What's the correct link for adding GeoServer WFS to ArcMap?January 27

    What is the correct URL to enter in ArcCatalog WFS Parameters when adding a WFS layer from GeoServer into ArcMap? Here's a link to our Get Capabilities document: https://weaveprod.ucdp.utah.edu/geoserver/ows?service=wfs&version=1.0.0&request=GetCa

  • Geoserver WFS POST and format_options=PRJFILEFORMATMay 9

    I'm using geoserver (2.4.4) to provide users with shapefile downloads. Some of the software the shapefiles are going to be used in requires .prj-files that follows the "ESRI-standard". A bit of searching lead me to a Geoserver ticket (GEOS-4503)

  • Geoserver WFS-T insert no response. bug?December 1

    I use Geoserver + Openlayers and want to add and save some new Points via WFS-T. I created insert transaction (correct) and sent it, but no response (include errors) was returned. In console was only: 01 dec 17:34:16 INFO [geoserver.wfs] - Request: g

  • OpenLayers wfs GetFeature large amount of dataDecember 11

    I am using wms GetFeature request to geoserver from OpenLayers application. And highlight different color that return features on map. This is working fine for 990 records. But not returning for 1800 record. I am usnig ajax request : var url = "http:

  • Geoserver WFS 2.0 CSV Output Multiple Features/typeNamesJanuary 27

    I'm setting up an export function so that users may download data from a Geoserver WFS 2.0 service in a variety of the supported formats. The service has multiple FeatureTypes which should be available for export in a single query (along with BBOX an

  • GeoTools WFS Query sortBy not working for GeoServer WFSFebruary 17

    I am using GeoTools to query a GeoServer WFS using the following code: Map connectionParameters = new HashMap(); connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL", String.format("%s&request=GetCapabilities", wfsUr

  • Oracle / GeoServer / WFS-T / Openlayers many polygons as one featureFebruary 26

    Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record in the table per customer (customerId). Can I creat

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.712 s.