Skip to content

GeoShapeMixin

Sub classes

Name Children Inherits
GeoShape
prettyqt.positioning.geoshape
    GeoRectangle
    prettyqt.positioning.georectangle
      GeoCircle
      prettyqt.positioning.geocircle
        GeoPath
        prettyqt.positioning.geopath
          GeoPolygon
          prettyqt.positioning.geopolygon

            🛈 DocStrings

            Bases: _GeoShapeBase

            Source code in prettyqt/positioning/geoshape.py
            class GeoShapeMixin(_GeoShapeBase):
                def __contains__(self, other: QtPositioning.QGeoCoordinate):
                    return self.contains(other)
            
                def __str__(self):
                    return self.toString()[1:]
            
                def get_type(self) -> ShapeTypeStr:
                    return SHAPE_TYPES.inverse[self.type()]
            

            :fa-brands-github: Show source on GitHub