Parent Directory
|
Revision Log
|
Revision Graph
| Links to HEAD: | (view) (download) (as text) (annotate) |
| Sticky Tag: |
Theme function reorganization, for consistency with my other development. MAKE SURE TO REBUILD YOUR THEME REGISTRY!
Allow CCK Formatter modules to define expected gis inputs ( point, linestring, etc) via hook_field_formatter_info()
1. A module declares CCK formatters using the usual syntax, but includes the
"gis input" key:
function geo_field_formatter_info(
return array(
'default' => array(
'label' => t('Well Known Text'),
'field types' => $field_types,
'gis types' => array('point', 'linestring', 'polygon'),
'gis input' => 'wkt',
),
'lat' => array(
'label' => t('Latitude'),
'field types' => $field_types,
'gis types' => array('point'),
'gis input' => 'array',
),
);
}
2. Geo's CCK modules retrieve data in WKB format
3. On nodeapi:view, geo performs an on-the-fly conversion from WKB to the
expected input format ( e.g. wkt, array, and so-on)
- Implemented this for all included formatters.
- Add extent handling (bounding box of an entire dataset) - Add some 'aggregate => true''s to my function fields to keep Views in line. - Beginnings of storage -> expected inputs for formatters. - Beginnings of the "common language" thing I keep talking about. - Beginnings of "selectable inputs" to switch out, say, a geocoded text field as an exposed view input. THIS COMMIT WILL DO MORE HARM THAN GOOD! STUFF IS PROBABLY BROKEN! I just wanted to commit the proof-of-concept before tinkering with it on a refactor.
Add geo_wkb_get_data as an API function to the geo.module file. Eliminates the module_load_include() dependency for formatters, etc.
- Adding a views field handler for geo_field, which makes way more sense than trying to rely on a generic one. This lets you configure geo CCK fields in views just like you're used to. - Removing the borked SVG formatter for fields. If it's useful, we'll re-add it - Enhancing the SVG handler for views so that it more accurately portrays lines and points.
Views output formats for KML and SVG, based on polygon data.
Moving field formatters from geo_field to geo, to accommodate formatters for geo fields of any kind.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |