+ +
+

pyams_gis package

+ +
+

Submodules

+
+
+

pyams_gis.area module

+
+
+class pyams_gis.area.GeoArea
+

Bases: persistent.Persistent

+

GeoArea attribute object

+
+
+get_coordinates(projection=4326)
+
+ +
+
+projection
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+wgs_coordinates
+
+ +
+
+x1
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+x2
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+y1
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+y2
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+

pyams_gis.configuration module

+
+
+class pyams_gis.configuration.MapConfiguration
+

Bases: persistent.Persistent, zope.container.contained.Contained

+

Map configuration persistent class

+
+
+attribution_control
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+crs
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+get_configuration()
+
+ +
+
+initial_bounds
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+initial_center
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+keyboard
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+layer_control
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+layers
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+scroll_wheel_zoom
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+zoom_control
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+zoom_level
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+pyams_gis.configuration.MapConfigurationFactory(context)
+

Map configuration factory

+
+ +
+
+

pyams_gis.include module

+
+
+pyams_gis.include.include_package(config)
+

Pyramid include

+
+ +
+
+

pyams_gis.layer module

+
+
+class pyams_gis.layer.BaseTileMapLayer
+

Bases: pyams_gis.layer.MapLayer

+

Base tile map layer

+
+
+attribution
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+bounds
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+get_configuration()
+
+ +
+ +
+
+class pyams_gis.layer.EsriFeatureMapLayer
+

Bases: pyams_gis.layer.MapLayer

+

ESRI feature map layer

+
+
+depends = {'L.esri.featureLayer': <Resource 'js/leaflet-esri-2.0.8.js' in library 'pyams_gis'>}
+
+ +
+
+factory = 'PyAMS_GIS.factory.ESRI.Feature'
+
+ +
+
+get_configuration()
+
+ +
+
+layer_type = 'ESRI Features'
+
+ +
+
+token
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+url
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+where
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+class pyams_gis.layer.GeoportalMapLayer
+

Bases: pyams_gis.layer.BaseTileMapLayer

+

Geoportal map layer persistent class

+
+
+api_key
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+crs
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+depends = {'L.geoportalLayer.WMS': <Resource 'js/leaflet-gp-3.0.2.js' in library 'pyams_gis'>}
+
+ +
+
+factory = 'PyAMS_GIS.factory.Geoportal.WMS'
+
+ +
+
+get_configuration()
+
+ +
+
+layer_name
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+layer_type = 'Geoportal'
+
+ +
+ +
+
+class pyams_gis.layer.GoogleMapLayer
+

Bases: pyams_gis.layer.MapLayer

+

Google maps layer

+
+
+api_key
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+depends = {'L.gridLayer.googleMutant': <Resource 'js/leaflet-google-mutant.js' in library 'pyams_gis'>}
+
+ +
+
+factory = 'PyAMS_GIS.factory.Google'
+
+ +
+
+get_configuration()
+
+ +
+
+layer_type = 'Google'
+
+ +
+
+type
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+class pyams_gis.layer.MapLayer
+

Bases: persistent.Persistent, zope.container.contained.Contained

+

Base tile map layer persistent class

+
+
+depends = {}
+
+ +
+
+factory = None
+
+ +
+
+get_configuration()
+

Get configuration mapping

+
+ +
+
+layer_type = None
+
+ +
+
+max_zoom
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+min_zoom
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+name
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+title
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+class pyams_gis.layer.TileMapLayer
+

Bases: pyams_gis.layer.BaseTileMapLayer

+

Base tile map layer persistent class

+
+
+factory = 'PyAMS_GIS.factory.TileLayer'
+
+ +
+
+get_configuration()
+
+ +
+
+layer_type = 'Tile'
+
+ +
+
+url
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+class pyams_gis.layer.WMSMapLayer
+

Bases: pyams_gis.layer.TileMapLayer

+

WMS map mayer persistent class

+
+
+crs
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+factory = 'PyAMS_GIS.factory.WMS'
+
+ +
+
+format
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+get_configuration()
+
+ +
+
+layer_type = 'WMS'
+
+ +
+
+layers
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+styles
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+transparent
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+uppercase
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+version
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+

pyams_gis.point module

+
+
+class pyams_gis.point.GeoPoint
+

Bases: persistent.Persistent

+

GeoPoint attribute object

+
+
+get_coordinates(projection=4326)
+
+ +
+
+latitude
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+longitude
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+projection
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+
+wgs_coordinates
+
+ +
+ +
+
+class pyams_gis.point.GeoPointZ
+

Bases: pyams_gis.point.GeoPoint

+

GeoPointZ attribute object

+
+
+altitude
+

Computed attributes based on schema fields

+

Field properties provide default values, data validation and error messages +based on data found in field meta-data.

+

Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.

+
+ +
+ +
+
+

pyams_gis.schema module

+
+
+class pyams_gis.schema.GeoAreaField(**kwargs)
+

Bases: zope.schema._field.Object

+

GeoArea field class

+
+ +
+
+class pyams_gis.schema.GeoPointField(**kwargs)
+

Bases: zope.schema._field.Object

+

GeoPoint field class

+
+ +
+
+class pyams_gis.schema.GeoPointZField(**kwargs)
+

Bases: zope.schema._field.Object

+

GeoPointZ field class

+
+ +
+
+

pyams_gis.site module

+
+
+class pyams_gis.site.MapGenerationsChecker
+

Bases: object

+

Maps generations checker

+
+
+evolve(site, current=None)
+

Check for required utilities

+
+ +
+
+generation = 1
+
+ +
+ +
+
+pyams_gis.site.handle_new_local_site(event)
+

Create a new map manager when a site is created

+
+ +
+
+

pyams_gis.utility module

+
+
+class pyams_gis.utility.MapLayersVocabulary(context)
+

Bases: zope.schema.vocabulary.SimpleVocabulary

+

Map manager layers vocabulary

+
+ +
+
+class pyams_gis.utility.MapManager
+

Bases: zope.container.folder.Folder

+

Map manager utility

+
+ +
+
+

Module contents

+
+
+pyams_gis.includeme(config)
+

Pyramid include

+
+ +
+
+ + +