Changes between Version 67 and Version 68 of GeoDjango
- Timestamp:
- Apr 15, 2007, 11:48:11 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeoDjango
v67 v68 57 57 * [http://mapserver.gis.umn.edu/ MapServer]: University of Minnesota (UMN) "open source development environment for building spatially-enabled internet applications." 58 58 * [http://www.mapnik.org/ Mapnik]: C++ and Python toolkit for developing mapping applications. Claimed benefits over MapServer: "It uses the AGG library and offers world class anti-aliasing rendering with subpixel accuracy for geographic data. It is written from scratch in modern C++ and doesn't suffer from design decisions made a decade ago." ''See'' [http://www.mapnik.org/faq/ MapNik FAQ]. 59 * [http://code.google.com/p/pyproj/ pyproj]: Pyrex generated python interface to PROJ.4 library. 59 60 * Ruby on Rails 61 * [http://rubyforge.org/projects/georuby/ GeoRuby]: Interface for PostGIS and MySQL spatial extensions, but not sure about spatial querying. 60 62 * [http://www.ivygis.org/ IvyGIS]: Google-maps type displays with RoR and UMN's MapServer 61 63 * [http://thepochisuperstarmegashow.com/ProjectsDoc/spatialadapter-doc/index.html Spatial Adapter for Rails]: A plugin for Rails which manages the MySql Spatial and PostGIS geometric columns in a transparent way (that is like the other base data type columns). This might have some useful techniques for when we try to support other spatial extensions other than PostGIS. … … 104 106 * '''Update:''' As of r5008, GeoDjango has its own GEOS interface (via {{{ctypes}}}) 105 107 * GEOS is no longer maintained by Sean Gillies. ''See'' Sean Gillies, ''[http://zcologia.com/news/150/geometries-for-python/ Geometries for Python]'' (blog post explaining rationale for abandoning GEOS support); ''see also'' Sean's message on the [http://geos.refractions.net/pipermail/geos-devel/2007-March/002851.html GEOS-Devel Mailing List] (Mar. 5, 2007). 106 * Might consider either using PCLor implement a {{{ctypes}}} wrapper for the routines that we need -- can't really port PCL code here because it is GPL (Django is licensed under BSD).108 * Might consider either ~~using PCL~~ or implement a {{{ctypes}}} wrapper for the routines that we need -- can't really port PCL code here because it is GPL (Django is licensed under BSD). 107 109 * WMS Server 108 110 * I'm not satisfied with any of the current WMS/WFS implementations. One implemented in Django would be desirable, e.g., {{{django.contrib.gis.wms}}}. Thoughts anyone? (OWSLib looks good, see below) … … 389 391 == Extra Instance Methods == 390 392 391 A model with geometry fields will get the following methods :393 A model with geometry fields will get the following methods, substitute {{{GEOM}}} with the name of the geometry field: 392 394 393 395 == get_GEOM_geos == 394 For every geometry field the model instance will have a {{{get_GEOM_geos}}} method, where {{{GEOM}}} is the name of the geometry field.Returns a {{{GEOSGeometry}}} instance for the geometry. For example (using the {{{District}}} model from above):396 Returns a {{{GEOSGeometry}}} instance for the geometry. For example (using the {{{District}}} model from above): 395 397 396 398 {{{ … … 413 415 == get_GEOM_wkt == 414 416 415 For every geometry field, the model instance will have a {{{get_GEOM_wkt}}} method, where {{{GEOM}}} is the name of the geometry field. For example (using the {{{School}}} model from above):417 Returns the OGC WKT (Well Known Text) for the geometry. For example (using the {{{School}}} model from above): 416 418 417 419 {{{ … … 424 426 == get_GEOM_centroid == 425 427 426 For every geometry field, the model instance will have a {{{get_GEOM_centroid}}} method, where {{{GEOM}}} is the name of the geometry field.This routine will return the centroid of the geometry. For example (using the {{{District}}} model from above):428 This routine will return the centroid of the geometry. For example (using the {{{District}}} model from above): 427 429 428 430 {{{ … … 435 437 == get_GEOM_area == 436 438 437 For every geometry field, the model instance will have a {{{get_GEOM_area}}} method, where {{{GEOM}}} is the name of the geometry field. This routine will return the area of the geometry.439 This routine will return the area of the geometry field. 438 440 439 441 {{{ … … 444 446 }}} 445 447 446 '''Note''': The units system needs to be figured out here, since I don't know what these units represent.448 '''Note''': Units are in the projected units of the coordinate system. In the example above, the units are in degrees since we're using WGS84. ~~The units system needs to be figured out here, since I don't know what these units represent~~.