🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for add_coordinate

Add a coordinate to a GeoPolygon. This is part of the reference section.

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.

See also