Re: [Geoserver-users] WFS URL Unexpected Behaviour

2022-10-24 Thread Jody Garnett
That server seems sad; could not get GetCapabilities from it... was trying
to figure out what version of WFS is being used:

Adjusting your query with startIndex and maxFeatures seems to work
-
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=2=2
-
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=3=2

--
Jody Garnett


On Tue, 18 Oct 2022 at 16:55, Oscar Wu  wrote:

> Hi everyone,
>
> I'm seeing an irregular behaviour with a WFS I'm working with when I apply
> a BBOX filter to it. The WFS is hosted by a government's open data
> catalogue.
>
> The link itself is working:
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP
> 
>
> When I add a bbox to filter out the data, it is also working:
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003
> 
>
> However, if I want to apply some pagination with count and startIndex, the
> request would error out.
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=1=0
>
>
> What really confused me is that if I get rid of the bbox and only use
> count and startIndex, the link is working again and it did return the
> number of feature I requested.
>
> I've tried a bbox + count + startIndex filtering with other datasets from
> the same catalogue and they were all working. I'm wondering if something
> could stop bbox and count+startIndex from working together in this
> particular case?
>
> Thank you!
>
> Oscar
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] WFS URL Unexpected Behaviour

2022-10-18 Thread Oscar Wu
Hi everyone,

I'm seeing an irregular behaviour with a WFS I'm working with when I apply a 
BBOX filter to it. The WFS is hosted by a government's open data catalogue.

The link itself is working:
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP

When I add a bbox to filter out the data, it is also working:
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003

However, if I want to apply some pagination with count and startIndex, the 
request would error out.
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=1=0
[cid:46b0097b-546f-4f3c-8f31-fdeb6ce9d670]

What really confused me is that if I get rid of the bbox and only use count and 
startIndex, the link is working again and it did return the number of feature I 
requested.

I've tried a bbox + count + startIndex filtering with other datasets from the 
same catalogue and they were all working. I'm wondering if something could stop 
bbox and count+startIndex from working together in this particular case?

Thank you!

Oscar
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users