Skip to content

Commit

Permalink
add method for creating indexBuildings
Browse files Browse the repository at this point in the history
  • Loading branch information
rewertvsp committed Jan 2, 2024
1 parent 75c50bb commit 21400f0
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ static Index getIndexLanduse(Path shapeFileLandusePath, String shapeCRS) {
return shpLanduse.createIndex(shapeCRS, "fclass");
}

/**
* Creates and return the Index of the building shape.
*
* @return indexBuildings
*/
static Index getIndexBuildings(Path shapeFileBuildingsPath, String shapeCRS) {

ShpOptions shpLanduse = new ShpOptions(shapeFileBuildingsPath, shapeCRS, StandardCharsets.UTF_8);
return shpLanduse.createIndex(shapeCRS, "type");
}

/**
* Writes a csv file with the result of the distribution per zone of the input data.
*/
Expand Down

0 comments on commit 21400f0

Please sign in to comment.