django-gisserver icon indicating copy to clipboard operation
django-gisserver copied to clipboard

Additional computed fields

Open lallulli opened this issue 7 months ago • 0 comments

Hi. I would like to add a new field to my FeatureType, not defined in my model, whose values are computed at runtime by a generic Python function.

I was able to add a computed field by subclassing XsdElement and overriding the get_value method, but I have to bind it to an existing field of my model (thus overriding the value read from the database). If I name my additional field with a name that does not exist in my model, I get a FieldDoesNotExist exception.

lallulli avatar Jul 01 '24 13:07 lallulli