Reference for add_coordinate
Add a coordinate to a GeoPolygon. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
add_coordinate
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Draw a line inside a GeoPolygon from the last point to a new position where this new point is defined geographically in degrees.
Snippet
Add a new line going from longitude / latitude coordinate of 1, 2 to 3, 4.
geo_polygon = sketch.start_geo_polygon(1, 2) geo_polygon.add_coordinate(3, 4)
Parameters
- longitude: The longitude of the next point in degrees.
- latitude: The latitude of the next point in degrees.
Examples
Availability
Available for all platforms.