Reference for to_shape
Convert a GeoPolygon to a closed shape in pixel-space. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
to_shape
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Convert this GeoPolygon to a closed shape in pixel-space using the current map view / geospatial transformation configuration.
Snippet
Make a geospatial region in the shape of a triangle into a closed shape
geo_polygon = sketch.start_geo_polygon(1, 2) geo_polygon.add_coordinate(0, 2) geo_polygon.add_coordinate(1, 0) shape = geo_polygon.to_shape()
Examples
Availability
Available for all platforms.