You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.Goto http://lib.heron-mc.org/heron/0.77/examples/formsearchcenter/index.html
and search for some objects and download them as ESRI Shape
2.Goto http://lib.heron-mc.org/heron/0.77/examples/uploadfeatures/index.html
and import the shape
What is the expected output? What do you see instead?
We expect to zoom in to the uploaded objects but none of them are displayed on
a zoomed out map
What version of the product are you using? On what operating system?
Heron-077
Please provide any additional information below.
The generated shape/zip does contain a .prj file so it seems that generating
the shape is fine but reading and paring is not.
Original issue reported on code.google.com by rvob...@gmail.com on 2 Dec 2013 at 10:39
The text was updated successfully, but these errors were encountered:
Fixed, see example:
http://lib.heron-mc.org/heron/latest/examples/uploadfeatures/index.html
It was already possible to upload any projection format. But the UploadFeature
config needed to have a "fileProjection" configured for each possible
projection (like EPSG: 28992) like:
{name: 'ESRI Shapefile (zipped, Dutch RD EPSG:28992)', fileExt: '.zip', mimeType: 'text/plain', formatter: 'OpenLayers.Format.GeoJSON', fileProjection: new OpenLayers.Projection('EPSG:28992')},
Now UploadFeature and heron.cgi have been extended to allow explicit
reprojection. Note, that not all formats are self-describing in their
projection. e.g. a Shapefile must contain a .prj file for this to work. By
setting the 'targetSrs' config value in the Upload format entry server-side
(via ogr2ogr) reprojection is triggered, e.g.
{name: 'ESRI Shapefile (zipped, Any Projection)', fileExt: '.zip', mimeType: 'text/plain', formatter: 'OpenLayers.Format.GeoJSON', targetSrs : 'EPSG:4326'}
In addition it is possible to configure an explicit sourceSrs (see example
GeoJSON upload Dutch RD, e.g.
{name: 'GeoJSON, Dutch RD EPSG:28992', fileExt: '.json', mimeType: 'text/plain', formatter: 'OpenLayers.Format.GeoJSON', sourceSrs : 'EPSG:28992', targetSrs : 'EPSG:4326'},
Original comment by jus...@gmail.com on 2 Dec 2013 at 1:01
Original issue reported on code.google.com by
rvob...@gmail.com
on 2 Dec 2013 at 10:39The text was updated successfully, but these errors were encountered: