Hot answers tagged

6

As you are in a standalone application according to your code, you need to load your qgs/qgz QGIS project file before trying to get WFS list. At the moment, you ask to read WFS list from an empty project. So, it will always return an empty result. from qgis.core import * from PyQt5.QtCore import QFileInfo qgs = QgsApplication([], False) successfull = ...


5

You can try using cql_filter and it's working e.g http://services.land.vic.gov.au/catalogue/publicproxy/guest/dv_geoserver/wfs?service=wfs&request=GetFeature&typeName=datavic:VMPROP_PROPERTY_ADDRESS&cql_filter=datavic%3AADD_POSTCODE%3D3350 Response quite slow but related to the server it seems. You will also need to paginate as limit is 5000 ...


5

As far as I know, you are not seeing a bug. The schema reports anything in addition to the attributes already inherited from "gml:Feature", which already contains a "gml:name" attribute. If the output of a GetFeature has a "gml:name" attribute with the value in your table, then everything fits and declaring the attribute in ...


5

If you have fixed hardware, create a semi-randomized stress test and increase the number of clients until the server either starts mis-behaving or the throughput does not go up any longer. This documentation shows a possible way to do it: https://geoserver.geo-solutions.it/educational/en/enterprise/index.html


4

Points (Point(-232855.14975877, 7787813.215242146) don't have commas as coordinate separators so it should be Point(-232855.14975877 7787813.215242146)


4

Have you tried specifying max returned features in the WFS connection window?


4

I never found how to do it in Python with owslib.wfs, therefore i use the GetFeature request of WFS v.1.1.0 with parameter resulttype=hits (as in Only return the NumberOfFeatures in a WFS query) and the Python library requests From WFS GetFeature request blank XML for some FeatureTypes the value hits indicates that a web feature service should process the ...


3

Simply don't. To be clear, you will never be able to display all these features from a WFS. No browser can deal with displaying on client side millions of polygons. You need to consume the layer as an image. The limitation to 3000 is not for nothing. On the link you provide, I've explored their site. Follow this exact link https://lris.scinfo.org.nz/layer/...


3

Able to retrieve the content and then read it then in QGIS e.g wget -O /tmp/aerodromenode.gml "https://haleconnect.com/ows/services/org.732.341f2791-919e-49de-8d86-3b18e040c430_wfs?service=wfs&version=2.0.0&request=GetFeature&typeNames=tn-a:AerodromeNode" and open the gml in QGIS "well". Not sure about the error but could be ...


3

The max limit for a shapefile it's 2GB because offsets in the files are specified with a 32bit integer, in other words, the limit is structural due to the file format. When downloading shape-zip larger than 2GB GeoServer should split the data into multiple shapefiles, there is logic ensuring that, but in your case, there might be an issue with how offsets ...


3

To display an image on a LineString you will need a style array, one style with geometry function which returns a Point geometry (e.g. the midpoint of the line) where the image is to be placed, and another style to display the original LineString geometry. [ new Style({ geometry: function(feature) { const geometry = feature.getGeometry(); ...


2

For windows 10, QGIS 3 you can find the settings in : "C:\Users\<YOUR_USER_NAME>\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3.ini" In case you are planning to clean install your windows and preserve your settings (including plugins), you need to back up this folder and replace it afterward: C:\Users\<YOUR_USER_NAME>\AppData\...


2

I would first investigate this on the database basis. Try and insert the feature there and see what happens. Also I would guess that the stable_id you provide could be ignored by the WFS and instead for example a sequence is managing that id field. The actual error message is about a foreign key constraint preventing the insert. You have to first insert a ...


2

You should be able to establish a join between the two sources (the local .shp and the distant wfs) using the common field (id). To setup the join : right-click on a layer in the layer panel, select properties and then choose the joins tab. Keep in mind that web services often limit the number of features returned. So don't expect to do something "too ...


2

Not a heavy R user but what you want is called paging. An issue is opened at https://github.com/eblondel/ows4R/issues/29 and although it remains open it seems to have been implemented (https://github.com/eblondel/ows4R/blob/master/R/WFSFeatureType.R#L230) but only at the moment in master branch, not in any release. If you are unhappy with the implementation, ...


2

You can specify the BBOX directly rather than as a CQL filter (see https://docs.geoserver.org/latest/en/user/services/wfs/reference.html). I find that https://wxs.ign.fr/choisirgeoportail/geoportail/wfs?service=wfs&srsName=EPSG:4326&request=getfeature&typename=CADASTRALPARCELS.PARCELLAIRE_EXPRESS:parcelle&BBOX=45.714813854,4.798409351,45....


2

The remote WFS conforms to the specifications used (XML, WFS, GML, Filter Encoding). It may be somewhat strict, but it is not "broken". Furthermore, while the request is "well-formed" as XML, it is at least problematic because it uses a GML property without specifying which namespace it belongs to. Let me try to explain briefly why this ...


2

There is currently no way to control the XML that GeoServer sends to the remote WFS as it is generated on the fly with each request. The main problem is that the remote server is broken in that it reports with a DescribeFeatureType request that there is a geometry called geometrie <?xml version="1.0"?> ...


2

You have to check Only request features overlapping the view extent in the WFS / OGC API - Features tab.


2

Your GetCapabilities response is broken: error on line 6119 at column 56: Unescaped '<' not allowed in attributes values Looking at the response it seems that you do not have a generic.sld for layer opc_postos_sba - so there seems to have been some corruption of your data directory. This can be fixed by going to that layer and changing it's style to one ...


2

When we bring a WFS into QGIS Canvas. QGIS send request to get all features and create a local layer (how? that is a different question). The operations you perform now, like "select by location" will be performed on local copy as it is any other layer in QGIS. This can be confirmed by changing the data on the server; the QGIS will not update the ...


2

Looks like an issue with your path. If the path is valid, you should get a popup asking for a username and password: Verify that the path to the service is valid.


1

Turns out this was a case of bad formatting, and the API handling syntax errors by returning generic XML. I missed the > off the Polygon definition, which resulted in this error being shown. Interestingly, using posLine rather than coordinates doesn't work at all, and results in an even less helpful XML response!


1

You have created a new Feature with a single attribute called ferrets while your shapefile has an attribute called FERRETS so it will be dropped and a completely empty feature added to the shapefile. I'm not sure but I suspect that GeoServer doesn't bother to send null features back to the client. If you want to add an attribute value to an existing feature ...


1

No, I don't think there is any way to tell GeoServer to ignore values in a feature, you are expected to provide at least all the non-nullable attributes and none that are not listed in the schema.


1

I had no trouble connecting to that WFS using ArcGIS Pro 2.7.2 and this service URL: https://maps.isric.org/mapserv?map=/map/wosis_latest.map&service=WFS&request=GetCapabilities I followed the instructions at Add WFS services: It only took a few seconds to add the WFS server connection, see the data at that connection and then add one of the ...


1

An even better solution using min/max coords to make the bbox getFeature usable for any direction of dragging and using a button system for having 2 or more layers So , we create the bbox interaction on our Map ,get the projection (I transform it to EPSG:4326) and give the user his bbox co-ords. After that we do an AJAX call to our server using the Get ...


1

I just tried: ogrinfo -al -so http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=getfeature&typename=ian:states and amongst other things it says that my geometry type is a Multi Surface. using driver `WFS' successful. Metadata: ABSTRACT=This is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports all WFS ...


1

Just found out the correct syntax to the where option in st_read. I looks like I have to use single quotes around the text to be searched for. And I have the habit of using single quotes for the entire string and double quotes elsewhere. library(sf) #> Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0 wfs_url <- 'WFS:https://geoservicos.ibge.gov.br/...


1

It may be hard to deal properly with that WFS server because it sends invalid data. You can make a test with a browser https://georisques.gouv.fr/services?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=ms:SSP_INSTR_GE&STARTINDEX=0&COUNT=8 The response even contains this message that is meant to be a hint for those who administrate ...


Only top voted, non community-wiki answers of a minimum length are eligible