Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified download of Vector grid data, in particular Shapefiles #289

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 4 comments
Closed

Comments

@GoogleCodeExporter
Copy link

The download/export should be unified in Heron. For historic reasons there are 
3 "download/export" mechanisms:

 * local conversion by Heron from Ext Grid to CSV and Excel (XML) with heron.cgi POST to force download popup (Export)
 * local conversion by OL from OL Feature array  with heron.cgi POST (Download, ditto as first)
 * directly from GeoServer WFS via WFS GetFeature with force download (GET request)

The third is GS-only with all other limitations (2048 char URL) see issue 270. 
As heron.cgi has recently upgraded to integrate ogr2ogr my proposal is to unify 
all "download" (and "upload") via heron.cgi, including transforms or better via 
OGC WPS, such that Heron remains OGC-compliant. This issue replaces issue 270 
as that bug is unsolvable with given GeoServer limitations.

This also includes Shapefile (.zipped) download. Upload zipped Shapefiles is 
already possible. 
But a common Download mechanism should enable a great variety of Download 
formats. In particular when OGR-based, so then we are not restricted to either 
local OpenLayers conversion or GeoServer-specific outputFormat facilities. The 
latter only available via GET with the 2048 query-string limit...

This development is kindly sponsored by RVOB!


Original issue reported on code.google.com by jus...@gmail.com on 1 Nov 2013 at 12:58

@GoogleCodeExporter
Copy link
Author

And for 0.77

Original comment by jus...@gmail.com on 1 Nov 2013 at 1:00

  • Added labels: Milestone-Release0.77

@GoogleCodeExporter
Copy link
Author

Implementation available 

See the example http://kadviewer.kademo.nl which runs the latest (trunk) 
version of Heron and has all upload/download facilities, including shapefile 
download. Try e.g.

- Identify (WMS GFI): download as Shapefile
- open Editor: upload Shapefile
- ditto downloading Search results.

Original comment by jus...@gmail.com on 14 Nov 2013 at 2:41

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

A first version now available. From here on maintenance mode. 
heron.cgi can now do any ogr2ogr transform for both format and projection.
See alsso the new readme and test scripts:

https://geoext-viewer.googlecode.com/svn/trunk/heron/services

https://geoext-viewer.googlecode.com/svn/trunk/heron/services/readme.txt

Original comment by jus...@gmail.com on 21 Nov 2013 at 5:05

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

SOme extra config possibility for FeatureGridPanel added. Like with Editor you 
can now also specify your own specific download formats. For example:

                exportFormats: ['CSV', 'XLS', 'GMLv2', 'Shapefile',
                    {
                        name: 'Esri Shapefile (WGS84)',
                        formatter: 'OpenLayersFormatter',
                        format: 'OpenLayers.Format.GeoJSON',
                        targetFormat: 'ESRI Shapefile',
                        targetSrs: 'EPSG:4326',
                        fileExt: '.zip',
                        mimeType: 'application/zip'
                    },
                    {
                        // Try this with PDOK Streekpaden and Fietsroutes :-)
                         name: 'GPS File (GPX)',
                         formatter: 'OpenLayersFormatter',
                         format: 'OpenLayers.Format.GeoJSON',
                         targetSrs: 'EPSG:4326',
                         targetFormat: 'GPX',
                         fileExt: '.gpx',
                         mimeType: 'text/plain'
                     },
                    'GeoJSON', 'WellKnownText'],


Original comment by jus...@gmail.com on 22 Nov 2013 at 2:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant