mapmaker.flatmap.feature module

class mapmaker.flatmap.feature.Feature(geojson_id: int, geometry: BaseGeometry, properties: dict[str, Any], is_group: bool = False)[source]

Bases: PropertyMixin

property geojson_id: int
property geom_type: str | None
property geometry: BaseGeometry
property id: str | None
property is_group: bool
property models: str | None
visible() bool[source]
class mapmaker.flatmap.feature.FeatureAnatomicalNodeMap(terms_alias_file: str | None = None)[source]

Bases: object

add_feature(feature: Feature)[source]
features_for_anatomical_node(anatomical_node: AnatomicalNode, warn: bool = True) tuple[mapmaker.knowledgebase.AnatomicalNode, set[mapmaker.flatmap.feature.Feature]][source]