I am trying to create turtles inside a shapefile. I have imported the GIS extension and loaded the shapefile. I am now trying to generate the turtles into the shapefile boundary as they are generated also outside of it which I don’t want.
Here are the sections of the code containing the shapefile and the creation of the turtles. I have currently have
Loading Dataset code
Next, when I created the turtle
Turtle creation
I have tried gis:create-turtles-inside-polygon within this section and gis:create-turtles-inside but i get the error that it expects GIS:CREATE-TURTLES-INSIDE-POLYGON expected 3 inputs. I currently have it set to setxy random-xcor random-ycor as that is the only thing I got to work.
Elliebird is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.