Parcel WFS as geojson #156

Closed
opened 2022-04-27 08:52:45 +02:00 by mpeltriaux · 1 comment
Owner

Status quo

We fetch the parcel WFS as default xml, whilst it supports geojson as well (according to the capabilities document).

Improvement

Adding outputFormat="application/json; subtype=geojson" to the POST XML root element's attributes, we can receive the data as geojson FeatureCollection.

There are two major benefits from this:

  1. json appears to be faster in response (20-40% faster)
  2. json response size is lower (up to 15% lower)
  3. Using xmltodict we already transform a received xml response into a python dict. This step is not needed, if we could receive the desired format directly from the server --> another performance increase
# Status quo We fetch the parcel WFS as default xml, whilst it supports geojson as well (according to the capabilities document). # Improvement Adding `outputFormat="application/json; subtype=geojson"` to the POST XML root element's attributes, we can receive the data as geojson FeatureCollection. There are two major benefits from this: 1. json appears to be faster in response (20-40% faster) 1. json response size is lower (up to 15% lower) 1. Using xmltodict we already transform a received xml response into a python dict. This step is not needed, if we could receive the desired format directly from the server --> another performance increase
mpeltriaux added the
enhancement
backlog
labels 2022-04-27 08:52:45 +02:00
mpeltriaux self-assigned this 2022-04-27 08:52:46 +02:00
mpeltriaux removed the
backlog
label 2022-04-27 12:17:43 +02:00
Author
Owner

Merged in #157

# Merged in #157
btuelek referenced this issue from a commit 2024-12-05 13:18:37 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#156
No description provided.