[Qgis-user] pull data from geoserver

Hugh Kelley hghklly at gmail.com
Wed Jan 26 07:10:03 PST 2022


Ok thanks very much for checking and sharing that helpful plugin.

In the interest of time I'm not going to get into investigating any
problems there might be server side.

Just wanted to be sure I wasn't making a mistake on my end in QGIS.

On Wed, Jan 26, 2022 at 10:06 AM Ian Turton <ijturton at gmail.com> wrote:

> It looks like they have set a proxy url in the global settings
>
> <ows:Operation name="DescribeFeatureType">
> <ows:DCP>
> <ows:HTTP>
> <ows:Get xlink:href="https://gis.drcog.org/wfs"/>
> <ows:Post xlink:href="https://gis.drcog.org/wfs"/>
> </ows:HTTP>
> </ows:DCP>
>
> But that URL doesn't answer requests (curl '
> https://gis.drcog.org/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=2.0.0&TYPENAMES=DRCOGPUB:bridges_low_clearance&TYPENAME=DRCOGPUB:bridges_low_clearance'
> -H 'User-Agent: Mozilla/5.0 QGIS/32203'  --compressed) - I can highly
> recommend the QGIS Network Logger plugin to investigate this sort of issue.
>
> While
> https://gis.drcog.org/geoserver/ows?service=wfs&REQUEST=DescribeFeatureType&VERSION=2.0.0&TYPENAMES=DRCOGPUB:bridges_low_clearance&TYPENAME=DRCOGPUB:bridges_low_clearance does
> work there's no easy way to get QGis to use this URL.
> It's odd that the WFS connection manager lacks the `ignore URL in
> capabilities` option that WMS has that would let you get around this sort
> of misconfigured server.
>
> I've copied in the contact from the capabilities doc in the hope they can
> fix it.
>
> Ian
>
> On Wed, 26 Jan 2022 at 13:41, Hugh Kelley <hghklly at gmail.com> wrote:
>
>> Hi all,
>>
>> hoping I'm missing something as I'm trying to pull data from a geoserver
>> [0] into QGIS and eventually grab it with ogr2ogr.
>>
>> I've tried following these instructions [1], but haven't figured out what
>> I'm doing wrong and they're fairly old.
>>
>> The latest geoserver WFS version available from that endpoint  is 2.0. Is
>> it possible that version is too old for compatibility with QGIS 3.20.3?
>>
>> Maybe there's a setting I'm missing when adding the WFS or that it's not
>> a WFS that I should be adding?
>>
>> when i try to add a dataset the datasource manager gives the error:
>>
>> Layer is not valid: The layer pagingEnabled='false'
>> preferCoordinatesForWfsT11='false' srsname='EPSG:6428'
>> typename='DRCOGPUB:rtd_brt_network' url='
>> https://gis.drcog.org/geoserver/ows' url='
>> https://gis.drcog.org/geoserver/ows?version=2.0.0' version='2.0.0' is
>> not a valid layer and can not be added to the map. Reason:
>>
>>
>> (end of error message, the "reason" is left blank)
>>
>>
>> to me that looks as though the url is being built incorrectly.
>>
>>
>> when I paste:
>>
>>
>> https://gis.drcog.org/geoserver/ows?service=wfs&version=2.0.0&request=GetCapabilities
>>
>>
>> into the url box, QGIS is switching that to :
>>
>> https://gis.drcog.org/geoserver/ows?version=2.0.0
>>
>>
>>
>>
>> thanks for any thoughts or suggestions. I was pleased to see an
>> organization using open source instead of the esri cloud services that I
>> see more frequently so hopefully this is something I can figure out.
>>
>>
>> Hugh
>>
>>
>>
>> [0]: https://gis.drcog.org/geoserver/web/
>> [1]: https://www.lifeingis.com/adding-layers-from-geoserver-in-qgis/
>> --
>> Hugh Kelley
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> --
> Ian Turton
>


-- 
Hugh Kelley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220126/64098e89/attachment.html>


More information about the Qgis-user mailing list