TerraME / terrame

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

verify SRID while adding a Layer to a Project #1104

Closed pedro-andrade-inpe closed 8 years ago

pedro-andrade-inpe commented 8 years ago

Verify if TerraLib can find a SRID while adding a Layer to a Project. If not, show a warning pointing out that the projection should be one of the available in .../terrame/bin/share/terralib/json/srs.json (note that the message is different for Mac and Windows. Add an alternative test.

pedro-andrade-inpe commented 8 years ago

If adding a Layer to a Postgis database and there is no SRID, show an error just after the warning. This solution solves #1152.

avancinirodrigo commented 8 years ago

@pedro-andrade-inpe, this issue needs more investigation because even that SRID is not found the operations will work. The problem in #1152 is specific to tif > postigis, it is a really bug because terralib finds the SRID, including it is available in the json file. So, this warning will chage the logic of the tests, because warnings turn error, this can unfeasible for beta-2.

pedro-andrade-inpe commented 8 years ago

Ok, possibly we can help the user with #1145. I'll move the two issues to beta-3.