[contributions:vauxia] /modules/geo/includes shp2sql.inc /modules/geo/modules/geo_data geo_data.info /modules/geo/db mysql_spatial.inc postgis.inc /modules/geo geo.inc geo.views.inc /modules/geo/modules/geo_data geo_data.admin.inc geo_data.module geo_data.views.inc /modules/geo/modules/geo_field geo_field.module
User: vauxia Branch: HEAD Date: Wed, 20 Aug 2008 15:06:39 +0000 Added files: /modules/geo/includes shp2sql.inc /modules/geo/modules/geo_data geo_data.info Modified files: /modules/geo/db mysql_spatial.inc postgis.inc /modules/geo geo.inc geo.views.inc /modules/geo/modules/geo_data geo_data.admin.inc geo_data.module geo_data.views.inc /modules/geo/modules/geo_field geo_field.module Log message: Another big commit: - CAN NOW PARSE AND BULK IMPORT SHAPE DATA. I rule! - continuing to refactor code into geo.inc - Add another field module for geo_data. In contrast with geo_field, which stores geospatial information, geo_data *references* geospatial information. Workflow being: 1. Download shape data from any source ( census, usgs, etc. ). For example, a list of states with id, name, and polygon shapes. 2. Import said shape data at admin/build/geo 3. Add a geo_data field that links to the new geo_data_state table via key. Thus, the field provides a nice select list of states and stores an id value like 'MN' or '27'. 4. In views, add a filter and/or an exposed filter, which limit queries using geo functions. For example, using "Within" and this input: POINT(-94.312499886749 46.712163633385) the query will return all nodes tagged with "MN" See also: legislative lookups and district or precinct maps. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/geo/includes/shp2s... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/db/mysql_spati... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/db/postgis.inc... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.inc&old=1.... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/geo.views.inc&... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_da... http://cvs.drupal.org/diff.php?path=contributions/modules/geo/modules/geo_fi...
participants (1)
-
drupal-cvs@drupal.org