TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
36 stars 13 forks source link

Layer:export #1217

Closed pedro-andrade-inpe closed 8 years ago

pedro-andrade-inpe commented 8 years ago

Allow exporting a Layer into a different format. Think about the required parameters for this function.

pedro-andrade-inpe commented 8 years ago

For example, one could export a tiff Layer into a NetCDF file.

pedro-andrade-inpe commented 8 years ago

For now, it will only be necessary to implement the following usage:

layer:export{file = "myfile.shp"}
layer:export{file = "myfile.geojson"}

The arguments need to be named because in the future we can add more parameters.

pedro-andrade-inpe commented 8 years ago

@hguerra, is it ok for you?

hguerra commented 8 years ago

it may be interesting can re-project CRS like GDAL does:

GDAL code:

ogr2ogr output.shp -t_srs "EPSG:4326" input.shp
layer:export{file = "myfile.shp"}
layer:export{file = "myfile.geojson"}
layer:export{file = "myfile.geojson", crs = "EPSG:4326"}

Once that many frameworks define a specific CRS to use, mostly WGS84 lat/lon.

pedro-andrade-inpe commented 8 years ago

@hguerra, in fact this is another requirement. We have not worked with projections yet. I will add another issue for this.

avancinirodrigo commented 8 years ago

@pedro-andrade-inpe, is the exported layer must go to "project.tview" (to be a layer)?