New answers tagged

3

This line is causing the error msgout = '%s, %s \n' % (point["pcds"], layer.name()) Without seeing the data, I'm assuming your point file doesn't have a column named 'pcds' Renaming it to the correct column should solve the error.


1

I have found a solution. Loading the layer using QgsDataSourceUri loads the layer using the correct attribute table, and allows editing and saving of geometries: uri = QgsDataSourceUri() uri.setConnection({HOST},{PORT}, {DB}, {UID}, {PWD}) uri.setUseEstimatedMetadata(1) uri.setSrid("27700") uri.setWkbType(QgsWkbTypes.Polygon) uri.setDataSource({SCHEMA},{...


0

You'll probably need some code like: from owslib.wfs import WebFeatureService as wfsmod url = "https://arealinformation.miljoeportal.dk/gis/services/DAIdb/MapServer/WFSServer?" try: wfs = wfsmod(url, version='2.0.0') except ExplicitException: try: wfs = wfsmod(url, version='1.1.0') except ExplicitException: try: wfs ...


3

Try: path = r"C:\Users\J\Desktop\xyz_data" instead of: path = "C:\Users\J\Desktop\xyz_data"


0

The ssl certificates on the server seem to work not as expected for the quite outdated urllib requests module: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)> I've tried your code with a working example of coordinates as no one knows the ...


Top 50 recent answers are included