turf icon indicating copy to clipboard operation
turf copied to clipboard

Create isoband inside my entire polygon

Open douglas555666 opened this issue 3 years ago • 3 comments

I'm having trouble filling all the spaces in my polygono.

The points used are points with values ​​inside the area of ​​the polygon and in this case I am not able to apply my isoband to the entire area

Captura de tela de 2022-06-02 12-07-26

Image 2022-06-02 at 14 38 55

See https://jsfiddle.net/doug_b/xbd6Lf74/3/ for an example.

Could anyone help me with this question?

douglas555666 avatar Jun 02 '22 17:06 douglas555666

I'm not sure I have a good solution to this, other than to potentially run turf/interpolate first on the vertices of your Polygon and then to run isobands again on the new interpolated point. In theory I think this should ensure your polygon gets covered.

JamesLMilner avatar Jun 06 '22 20:06 JamesLMilner

Thanks @JamesLMilner I will test this option

douglas555666 avatar Jun 09 '22 19:06 douglas555666

Let me know how you get on :) If I don't hear back will assume it worked and will close out the issue

JamesLMilner avatar Jun 16 '22 15:06 JamesLMilner

Hi @douglas555666 , were you able to test if that solution worked for you? I am facing the exact same issue, but @JamesLMilner I have tried tried running interpolate on the vertices, but (let me know if I'm wrong about these conclusions):

  1. Interpolate seems to only run in the bounding box automatically calculated by the provided points;
  2. I can't add new points (vertices) that don't have the specific property value (that is being interpolated) on them (and I don't have those values).

mumispb avatar Jun 04 '23 21:06 mumispb

I will close this as there was no response and there is a new open issue from @mumispb.

JamesLMilner avatar Aug 20 '23 11:08 JamesLMilner