Metadata-Version: 2.1
Name: fab-geoalchemy
Version: 0.1.4
Summary: Plugin to implement Geoalchemy fields in Flask Appbuilder
Home-page: https://github.com/dolfandringa/fab_geoalchemy
Author: Dolf Andringa
Author-email: dolfandringa@gmail.com
License: UNKNOWN
Project-URL: Source, https://github.com/dolfandringa/fab_geoalchemy/
Description: 
        fab_geoalchemy
        ==============
        
        Implementation of GeoAlchemy fields for Flask Appbuilder.
        
        It automatically transforms POINT Geometry columns to widgets with a field for latitude and longitude.
        The goal is to add a leaflet widget and add support for line and polygon as well.
        
        Installation
        ------------
        
        Download the code and execute ``pip install`` in the source folder.
        
        Usage
        -----
        
        You can find examples in the unittests in the tests folder.
        But in short, this is what you need to do:
        
        .. code-block::
        
           from fab_geoalchemy.views import GeoModelView
           from fab_geoalchemy.interface import GeoSQLAInterface
        
           class Observation(Model):
               id = Column(Integer, primary_key=True)
               name = Column(String)
               location = Column(Geometry(geometry_type='POINT', srid=4326))
        
               def __repr__(self):
                   if self.name:
                       return self.name
                   else:
                       return 'Person Type %s' % self.id
        
        
           class ObservationView(GeoModelView):
               datamodel = GeoSQLAInterface(Observation)
               add_columns = ['name', 'location']
        
        This will automatically create the LatLonWidget in the form, and process the data to transform the latitude and longitude values into a point geometry in the database. The srid form the column is used by the field for the conversion of the text coordinates to the geometry. No validation is done if the entered coordinates are actually valid for the specified SRID.
        
Keywords: gis sqlalchemy
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Database :: Front-Ends
Classifier: License :: OSI Approved :: MIT License
Provides-Extra: test
