1.7b1: Problem reading GIS files

112 views
Skip to first unread message

Benjamin Mewes

unread,
Feb 23, 2016, 8:09:55 AM2/23/16
to GAMA
Hi all,

it is me again. Sorry for bothering you again. Currently all(!) of my raster based examples don't work anymore. Suddenly it shows the following error:

2 occurences in 2 agents at cycle 0: The format of cantho_1999_v6.asc is not correct. Error: Inconsistency between the data and the CRS: The CRS GEOGCS["WGS 84",
  DATUM["World Geodetic System 1984",
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
    AUTHORITY["EPSG","6326"]],
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
  UNIT["degree", 0.017453292519943295],
  AXIS["Geodetic longitude", EAST],
  AXIS["Geodetic latitude", NORTH],
  AUTHORITY["EPSG","4326"]] corresponds to a not projected one, whereas the data seem to be already projected.
for file C:..\GitHub\gama\msi.gama.models\models\Toy Models\Urban Growth\includes\cantho_1999_v6.asc
when applying the envelope operator on msi.gama.util.file.GamaGridFile@3e022b51
in initializing attribute shape
in agents Simulation #0 of model raster3, raster0

It does likewise with the Flood Model from the Library but the ShapeFiles (e.g. from the traffic model) work correctly.

Any ideas what might be the problem?

All the best

Patrick Taillandier

unread,
Feb 23, 2016, 8:19:00 AM2/23/16
to gama-p...@googlegroups.com
Hi,

i think the prj file corresponding to your asc file is not the good one. I mean, your data seem to be already projected (it is the case on my computer for the cantho_1999_v6.asc file), whereas your prj file says that is not the case (crs : WGS84). You can try to delete the crs files that correspond to your asc files.

Cheers,

Patrick

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Benjamin Mewes

unread,
Feb 23, 2016, 8:32:01 AM2/23/16
to GAMA
Hmm, in the example folders there is now CRS file. Only a PRJ. I tried to delete it, without any success. The file is gone, but the raster doesn't appears.

The error is still the same. I will try to make a clean build of 1.7...

Benjamin Mewes

unread,
Feb 24, 2016, 1:42:19 AM2/24/16
to GAMA
I tried it once more without success. All ASC files are rejected with the same error code. The used to work before.  Does GAMA somehow manipulate any of the PRJ files?

I can show all data in QGIS without problems.


Am Dienstag, 23. Februar 2016 14:19:00 UTC+1 schrieb Patrick Taillandier:

Patrick Taillandier

unread,
Feb 24, 2016, 3:40:15 AM2/24/16
to gama-p...@googlegroups.com
Hi,

On my computer (with the last version of GAMA git), it is working quite well. Can you try to create a new workspace of to revert your preference to default?

Cheers,

Patrick

Benjamin Mewes

unread,
Feb 25, 2016, 7:58:19 AM2/25/16
to GAMA
Well, I got a new workspace and all combinations of preferences as well without success :(

Do I need to install spatialite?

Patrick Taillandier

unread,
Feb 25, 2016, 8:15:49 AM2/25/16
to gama-p...@googlegroups.com
I have just tested again with my windows computer (Win 10 64 bits), with GAMA 1.7 b1 (downloaded 5 minutes ago) and with a new workspace and it works well :( .
Which OS are you using? Can you try to download again GAMA 1.7b1 (https://github.com/gama-platform/gama/wiki/Download%20GAMA)?


Benjamin Mewes

unread,
Feb 25, 2016, 8:29:52 AM2/25/16
to GAMA
Hi,

I am on Win 7 Professional on a 64Bit System. Strangely a fresh install of GAMA 1.7 b1 (from installer) with a fresh workspace isn't able to run *any* models anymore. My Github version of 1.7b1 in Eclipse is working (apart from not being able to read ASC files anymore).

Benjamin Mewes

unread,
Feb 26, 2016, 5:01:01 AM2/26/16
to GAMA
I got it working again !

Thanks to you Patrick somehow an old version of my workspace was in the same directory (although never loaded). After deleting it, it worked out!


Am Donnerstag, 25. Februar 2016 14:15:49 UTC+1 schrieb Patrick Taillandier:
Reply all
Reply to author
Forward
0 new messages