django-rest-framework-gis icon indicating copy to clipboard operation
django-rest-framework-gis copied to clipboard

Aberations and enclave when using precision arguments on geometry field

Open Guilouf opened this issue 1 year ago • 2 comments

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.

Guilouf avatar Apr 03 '24 10:04 Guilouf

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?

nemesifier avatar Apr 06 '24 00:04 nemesifier

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:

  • what's the outcome you were expecting: A border with reduced precision but with the same topology, i.e no no enclave ( new zones created along the borders as we can see in the screenshot) and no vertical lines. Here is the artifacts i talk about, in the red circles. image
  • what's the current outcome the image above is the current outcome
  • why the actual outcome is wrong It creates new "borders"

Guilouf avatar Apr 09 '24 17:04 Guilouf