openwisp / django-rest-framework-gis

Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
http://openwisp.org
MIT License
1.07k stars 200 forks source link

Aberations and enclave when using precision arguments on geometry field #294

Open Guilouf opened 5 months ago

Guilouf commented 5 months ago

The geometry when using borders = GeometryField(precision=2, remove_duplicates=True) image

With no precision or remove duplicates arguments: image

We can see that reducing precision leads to new enclosed borders and the creation of vertical or horizontal lines.

nemesifier commented 5 months ago

Welcome @Guilouf.

Is this a bug report? If so, could you please clarify the following:

If this is not a bug report, can you please clarify your request?

Guilouf commented 5 months ago

Welcome @Guilouf.

Is this a bug report? If so, could you please clarify the following:

* what's the outcome you were expecting

* what's the current outcome

* why the actual outcome is wrong

If this is not a bug report, can you please clarify your request?

I'd say its a bug report: