django_website.MapMiners package¶
Submodules¶
django_website.MapMiners.GeoSampaMiner module¶
-
class
django_website.MapMiners.GeoSampaMiner.
GeoSampaMiner
[source]¶ Bases:
django_website.MapMiners.MapMiner.MapMiner
-
mapMinerId
= 'geosampa'¶ Miner for the Geo Sampa’s database
-
mapMinerName
= 'Geo Sampa'¶
-
django_website.MapMiners.MapMiner module¶
-
class
django_website.MapMiners.MapMiner.
MapMiner
[source]¶ Bases:
abc.ABC
Abstract class representing a Map Miner adapter to collect data from some GIS (Geographic Information System).
- fields:
- _destcrs = SpatialReference(3857)
Destination Coordinates Reference System used to convert a distinct Source Coordinate System (SRS) to the adopted default (from OpenStreetMap).
- _subclassesList[MapMiner]
Contains a list of every subclass of MapMiner. Filled dynamically.
-
classmethod
doQuery
(queryName: str, regions: geojson.feature.FeatureCollection)[source]¶ Execute a registered query
-
classmethod
getAvailableQueries
()[source]¶ Registry of available queries to any clients (i.e. frontend)
-
mapMinerId
= None¶ This property represents the possible queries the user can make to a specific MapMiner
-
mapMinerName
= None¶ This property represents id used to catalog all available filters
django_website.MapMiners.OSMMiner module¶
-
class
django_website.MapMiners.OSMMiner.
OSMMiner
[source]¶ Bases:
django_website.MapMiners.MapMiner.MapMiner
OpenStreetMaps miner constructed using the Overpass API
- class members:
- Derived from MapMiner:
mapMinerName : ‘OpenStreetMap’
mapMinerId : ‘osm’
_basecrs : SpatialReference(3857)
- Internal:
-_OSMServerURL = ‘inacity.org’
-
class
OverpassRunningQuery
[source]¶ Bases:
object
Dedicated class to wrap Overpass status running queries data, if any is available
-
inacityorg
= 'inacity.org'¶
-
mapMinerId
= 'osm'¶
-
mapMinerName
= 'OpenStreetMap'¶
-
overpassapi
= 'OverpassAPI.DE'¶