Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.346.696 Times

GeoFormAlchemy 0.1

Company: Camptocamp SA
Date Added: August 15, 2013  |  Visits: 344

GeoFormAlchemy

Report Broken Link
Printer Friendly Version


Product Homepage
Download (46 downloads)



GeoFormAlchemy is a FormAlchemy extension that makes it possible to generate forms for model classes that use the geometry types of GeoAlchemy.<br /><br />Installation<br /><br />Installing using easy_install:<br /><br />easy_install geoformalchemy<br /><br />Manual installation for development:<br /><br />Download the source code as archive or clone the GIT repository:<br /><br />git clone http://github.com/camptocamp/GeoFormAlchemy.git GeoFormAlchemy<br /><br />Then run the setup:<br /><br />cd GeoFormAlchemy/GeoFormAlchemy<br />python setup.py develop<br /><br />Usage in Pylons applications<br /><br />GeoFormAlchemy includes a Paster Pylons template that builds upon FormAlchemy's administration interface for Pylons.<br /><br />If you want to use GeoFormAlchemy in your Pylons application, run paster create with the GeoFormAlchemy template:<br /><br />$ paster create -t geo_fa your_app<br />[..]<br />Enter admin_controller (Add formalchemy's admin controller) [False]: True<br />Enter template_engine (mako/genshi/jinja2/etc: Template language) ['mako']: mako<br />Enter sqlalchemy (True/False: Include SQLAlchemy 0.5 configuration) [False]: True<br />[..]<br /><br />Then the GeoFormAlchemy extension has to be activated. Open the file your_app/forms/__init__.py and add the following lines at the end of the file:<br /><br /># [..]<br /><br />from geoformalchemy.base import GeometryFieldRenderer<br />from geoalchemy import geometry<br />FieldSet.default_renderers[geometry.Geometry] = GeometryFieldRenderer<br /><br />GeoFormAlchemy is now set up and a map will be displayed in the forms for your geometry fields. Note that you will have to tell FormAlchemy for which model classes it should create forms. To do so import your model classes in the file your_app/model/__init__.py. For more information please refer to the FormAlchemy documentation.<br /><br />Configuration<br /><br />Field modifications<br /><br />The rendering of geometry fields can be customized with additional options. For example the following statement called on the field the_geom of the custom FieldSet changes the background map (inside the file your_app/forms/__init__.py):<br /><br />Place = FieldSet(model.places.Place)<br />Place.the_geom.set(options=[<br /> ('map_srid', 900913),<br /> ('base_layer', 'new OpenLayers.Layer.OSM("OSM")')<br />])<br /><br />The following options are available in GeoFormAlchemy:<br /><br />default_lat and default_lon<br /> If the geometry is None or when creating a new geometry, the map is centered at (default_lon, default_lat). Otherwise the map is centered at the centroid of the geometry.<br />zoom<br /> The zoom-level on start-up.<br />map_width and map_height<br /> The size of the DIV container in which the map is displayed.<br />base_layer<br /><br /> The OpenLayers layer which will be used as background map, for example:<br /><br /> ('base_layer', 'new OpenLayers.Layer.OSM("OSM")')<br /><br />map_srid<br /><br /> If the map uses a different CRS than the geometries, the geometries will be reprojected to this CRS. For example:<br /><br /> ('map_srid', 900913)<br /><br />openlayers_lib<br /><br /> The path to the OpenLayers javascript library, for example if OpenLayers.js is located at your_app/public/js/lib/OpenLayers.js use the following path:<br /><br /> ('openlayers_lib', '/js/lib/OpenLayers.js')<br /><br />show_map (default: True)<br /> If show_map is set to False, the geometry will be displayed as WKT string inside a text input field.<br /><br />Template files<br /><br />If you want to change the look of your forms, you can modify the template files used by FormAlchemy and GeoFormAlchemy. The template files are located in the folder your_app/templates/forms.<br /><br />GeoFormAlchemy uses the template files map_js.mako and map.mako. In map.mako you can set most of the options that you can also use as field modification. But unlike to field modifications, the options set in the template file are used for the geometry fields of all models, whereas the options set as field modification are only used for the field they were set on.<br /><br />< %<br /># default configuration options that will be used when<br /># no field options were set<br /><br />options = {}<br />options['default_lon'] = 10<br />options['default_lat'] = 45<br />options['zoom'] = 4<br />options['map_width'] = 512<br />options['map_height'] = 256<br />options['base_layer'] = 'new OpenLayers.Layer.WMS("WMS", "http://labs.metacarta.com/wms/vmap0", {layers: "basic"})'<br />options['openlayers_lib'] = 'http://openlayers.org/api/OpenLayers.js'<br /><br />% ><br /><br />If you want to customize the OpenLayers map, for example to add a further OpenLayers control or to add a second background layer, modify the file map_js.mako.<br /><br /><br />#md5=9dd6043d7566fb993dd2e6af009ee82f

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 039new Background Create False Field Fields Files Formalchemy Forms Geoformalchemy Geometry Import Model Openlayers Options Pylons Template
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


GEOFORMALCHEMY RELATED
Modules  -  CCK Private Fields 6.x-1.1
* The field settings screen provides a new option to enable privacy options for fields. This option is global and affects all content types where the given field is shared. The default privacy status can be specified. * This module supports all...
30.72 KB  
Modules  -  CCK Download Dropdown 5.x-1.0
Looking for co-maintainer. See message in issue queue.This module adds the ability to place a single drop down selector and download button on a node. The drop down list is populated by links to attachments from a node that you specify. Selecting...
10 KB  
Modules  -  Question Field 6.x-1.0-alpha1
Question Field module can be used to create evaluations, questionnaires, surveys, and anything else you might want for gathering information from users. The module works much like Webform, but uses CCK to create it's fields.Think of the content...
10 KB  
Video Players  -  Free ISO Create Wizard 4.7.1
Free ISO Create Wizard helps you create ISO image from files or folders. With Free ISO Create Wizard, you can easily create ISO image from any files and folders (with the subfolders). This is very easy for the novices, yet powerful and efficient...
2.95 MB  
Modules  -  Content Construction Kit (CCK) 1.0
The Content Construction Kit allows you create and customize fields using a web browser. The 4.7x version of CCK creates custom content types and allows you to add custom fields to them. In Drupal 5.x custom content types can be created in core,...
 
Network & Internet  -  django-compound-field 0.1
django-compound-field is a Django add-on that allows you to define compound fields, e.g. {{{ class AddressField(CompoundField): phone = models.CharField(max_length=30) mobile = models.CharField(max_length=30) fax...
20.48 KB  
Image Galleries  -  QFlash for Graphics and Animations 0.1
QFlash is a c open source IDE to create flash (swf) animation files. It uses ming and qt libraries.
1024 KB  
Modules  -  BuddyPress Groups Extras 1.0
After activating your groups will have ability to create any custom fields they want. Also extra page will appear with chosen content.Features * Choose groups you want to allow custom fields. * Create custom fields using various type (radios,...
153.6 KB  
Libraries  -  libgfeed 0.1.1
libgfeed is a library to manage (create, load, edit) feed files in either the ATOM v1.0 or RSS v2.0 format. Installation: 1. `cd to the directory containing the packages source code and type ./configure to configure the package for your...
337.92 KB  
Libraries  -  Spreadsheet::WriteExcel 2.18
Spreadsheet::WriteExcel module is can be used to create native Excel binary files. Formatted text and numbers can be written to multiple worksheets in a workbook. Formulas and functions are also supported. It is 100% Perl and doesnt require any...
471.04 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB