Commit cfcf60f0 authored by duminil's avatar duminil
Browse files

RegionChooser: Deploy NYC.

parent 6359e046
......@@ -33,7 +33,6 @@ static public StringBuffer selectRegionDirectlyFromCityGML(Path citygmlPath, Str
StringBuffer sb = new StringBuffer();
int i = 0;
while (cityObjectMatcher.find()) {
System.out.println("BLD");
cityObjectMatcher.appendReplacement(sb, "");
String cityObject = cityObjectMatcher.group();
Matcher nad83CoordinatesMatcher = nad83CoordinatesPattern.matcher(cityObject);
......@@ -50,7 +49,6 @@ static public StringBuffer selectRegionDirectlyFromCityGML(Path citygmlPath, Str
Coordinate coord = new Coordinate(x, y);
Point point = gf.createPoint(coord);
if (point.within(poly)) {
System.out.println(coord);
i++;
sb.append(cityObject);
}
......
......@@ -30,6 +30,26 @@
<LinearRing>
<tessellate>1</tessellate>
<coordinates>-74.0056253,40.7294668,0 -74.0053484,40.7272316,0 -74.005111,40.7272111,0 -74.0050053,40.727202,0 -73.9968092,40.7271834,0 -73.9928453,40.7273709,0 -73.9905297,40.7275413,0 -73.9904107,40.7277055,0 -73.9903612,40.7277749,0 -73.9902701,40.7280447,0 -73.9902142,40.7327445,0 -73.9903382,40.7336279,0 -73.9909377,40.7347126,0 -73.9910923,40.7347799,0 -73.9932613,40.7348532,0 -73.99814,40.7348976,0 -74.0012625,40.7349003,0 -74.0026956,40.7348996,0 -74.004586,40.7348956,0 -74.0049082,40.7348889,0 -74.0051523,40.734853,0 -74.0052862,40.734824,0 -74.0054646,40.7331513,0 -74.0056253,40.7294668,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark>
<name>NYC_Flatiron_Buildings_Streets_Lots_20150907.gml</name>
<ExtendedData>
<Data name="project">
<value>NewYork</value>
</Data>
<Data name="download_region_url">
<value>http://dmz15.rz.hft-stuttgart.de:3012/projects/4/citygmls/4/download_region</value>
</Data>
</ExtendedData>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<tessellate>1</tessellate>
<coordinates>-74.001835,40.7457938,0 -74.0015806,40.7410453,0 -74.0011234,40.7365237,0 -73.9995822,40.7354488,0 -73.9992522,40.7353105,0 -73.9945852,40.7346727,0 -73.9789847,40.7347695,0 -73.978572,40.7356558,0 -73.9775771,40.738207,0 -73.9767318,40.7435084,0 -73.9776122,40.7464249,0 -73.978865,40.7477171,0 -73.9991288,40.7492605,0 -74.0004421,40.7477074,0 -74.001835,40.7457938,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment