Hi, Gama users!
I am using a shapefile that has a local projection.
I loaded the shapefile using the code below, and printed coordinates of each polygon's center.
I picked a polygon and compared coordinates from Gama to coordinates from QGis.
The coordinates looks different from what I expected.
I uploaded a capture image, please see the blue rectangle (QGIS) and red rectangle (GAMA) in the image in order to compare coordinates.
Please let me know how I can get proper coordinates from the shapefile in GAMA.
Thanks for your time in advance.
from Seong
p.s: I already had a test to load the shapefile without .prj, but the results remained the same. You can get the shapefile at
```
model test001
global {
file map_init <- file("../includes/data/test001.shp");
init {
create admin_district from: map_init with: [identifier::string(read("identifier")), area::float(read("Area")), rate_2010::float(read("rate_2010"))]
{
write "admin_distrct:" + name + ", identifier: " + identifier + ", coordinates("+ int(((self).location).x) + ", " + int(((self).location).y) + "), area: " + area + ", rate_2010: " + rate_2010;
}
}
}
entities {
species admin_district {
string identifier <- '';
float rate_2010 <- 0.0; //<- 10.0;
float area <- 0.0; //
rgb color;//
aspect base {
draw shape color: color;
}
}
}
environment bounds: map_init;
experiment test001 type: gui {
parameter "Initial environement: " var: map_init category: "Environment";
output {
display main_display {
species admin_district aspect: base;
}
}
}
```