Check if a Geopoint is in a Multipolygon

Solved!
Mingo
Level 2
Check if a Geopoint is in a Multipolygon

Hello,

I have a shapefile containing areas  (source https://www.data.gouv.fr/fr/datasets/decoupage-des-zones-de-securite-prioritaires-zsp-1/).

The area are stores into Multipolygon and I want to check if a Geopoint is inside a Multipolygon :

- with python, it works with the shapely package

- with postgresql, apparenlty the postgis extension allows it

But I'd like to know if it is feasible to do it with a visual recipe

Thanks in advance

0 Kudos
1 Solution
Liev
Dataiker Alumni

Hi @Mingo 

At the moment, the step you describe is not part of the visual interface. You have several options:

- As you've already done, use a code recipe.

- If you require a Prepare recipe anyway, add a Code step with a code environment. 

- If you think you might be using this in several projects, it might be worth considering packaging as a plugin custom step, that way it will be available across the instance!

I will log this as a feature request in our backlog.

Good luck!

View solution in original post

0 Kudos
2 Replies
Liev
Dataiker Alumni

Hi @Mingo 

At the moment, the step you describe is not part of the visual interface. You have several options:

- As you've already done, use a code recipe.

- If you require a Prepare recipe anyway, add a Code step with a code environment. 

- If you think you might be using this in several projects, it might be worth considering packaging as a plugin custom step, that way it will be available across the instance!

I will log this as a feature request in our backlog.

Good luck!

0 Kudos
MarkPundurs
Level 3

@Liev how do I package code as a plugin custom step?

0 Kudos