tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

Adding an extra parameter to Simplify data retrieved

Open ocourtin opened this issue 12 years ago • 4 comments

For some kind of application, it could make sense to allow to retrieve data with an on the fly genereralization (like ST_Simplify for instance).

As WFS was not design for such usage it have to be handle throught a vendor specific parameter.

ocourtin avatar Nov 15 '12 10:11 ocourtin

I agree with this extra vendor specific parameter, but I guess should be also useful the option to set at layer configuration level the option to send always a layer simplified.

aperi2007 avatar Nov 15 '12 10:11 aperi2007

Andrea, if the aim is to always return a simplified geometry, why not storing this simplified geometry column and then use exclude_item on the initial (and unsimplified) geometry column ?

ocourtin avatar Nov 15 '12 13:11 ocourtin

The copy is not the better solution. Surely better a view.

A copy need to be update all times the originals are updated or added or deleted.

surely simplify a geometry eat time, but also surely this time is less then how much need to send the original geometry on internet to che wfs client.

The copy ask more disk space and ask more time to manage it or more procedure to automatically manage it.

So actually I prefer to use a view to send the simplified version.

However I agree that a view is sufficient to this need.

aperi2007 avatar Nov 15 '12 19:11 aperi2007

A view or a table is really up to you.

The point is only to say that with TinyOWS 1.1 you already are able to provide a column with a fixed generalized geometry if you want so...

Cheers,

ocourtin avatar Nov 15 '12 19:11 ocourtin