Monday, 31 October 2016

geoserver - WFS Request Layer (GML) with Filter


Is there a solution to request the GML layer from Geoserver with filter like using bbox:


http://localhost:8080/geoserver/tiger/ows?service=WFS&version=1.0.0
&request=GetFeature&typeName=tiger:poi&maxFeatures=50&
bbox=-74.0104611,40.70758763,-74.00153046439813,40.719885123828675

The result will be specific filtering the bounding box (lat/lon), based on bbox parameter that user entered.


The Result:





unknown






-74.00857344,40.71194565


lox
pics/22037884-Ti.jpg
pics/22037884-L.jpg





The problem now, I want to filter the data based on the lox, already tried with entered the tiger:NAME=lox as a parameter when request, the result just same like when enter no parameter. Is there a solution for this?



Answer



Based on Filter Encoding with Spatial Filter within WFS-Request and Geoserver Filter. I found that there is a parameter named filter and the value can enter like this:


http://localhost:8080/geoserver/tiger/ows?service=WFS&version=1.0.0
&request=GetFeature&typeName=tiger:poi&maxFeatures=2
&filter=NAME
lox

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...