-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from JoaoVitor123/master
Joao's updates to GPM version - 0.3
- Loading branch information
Showing
31 changed files
with
5,473 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- @example GPM Implementation strategy 'contains' and creating map. | ||
-- Create a map based on relations between a set of polygons and a set of points which the predicate contains is applied. | ||
-- @image contains.bmp | ||
|
||
-- import gpm | ||
import("gpm") | ||
|
||
-- create the CellularSpace | ||
local farms = CellularSpace{ | ||
file = filePath("farms_cells.shp", "gpm"), | ||
geometry = true | ||
} | ||
|
||
local communitiesPoints = CellularSpace{ | ||
file = filePath("communities.shp", "gpm"), | ||
geometry = true | ||
} | ||
|
||
-- creating a GPM with the distance of the entry points for the routes | ||
GPM{ | ||
origin = farms, | ||
strategy = "contains", | ||
destination = communitiesPoints | ||
} | ||
|
||
-- creating Map with values GPM | ||
map = Map{ | ||
target = farms, | ||
select = "counterContains", | ||
value = {0, 1}, | ||
color = {"lightGray", "blue"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- @example GPM Implementation strategy 'length' and creating map. | ||
-- Create relations between objects whose intersection is a line. | ||
-- @image length.bmp | ||
|
||
-- import gpm | ||
import("gpm") | ||
|
||
-- create the CellularSpace | ||
local farms = CellularSpace{ | ||
file = filePath("roads.shp", "gpm"), | ||
geometry = true | ||
} | ||
|
||
local farms_cells = CellularSpace{ | ||
file = filePath("farms_cells3.shp", "gpm"), | ||
geometry = true | ||
} | ||
|
||
-- creating a GPM | ||
GPM{ | ||
origin = farms_cells, | ||
strategy = "length", | ||
destination = farms | ||
} | ||
|
||
-- creating Map with values GPM | ||
map = Map{ | ||
target = farms_cells, | ||
select = "length", | ||
value = {1, 2}, | ||
color = {"green", "blue"} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.