Changeset 34143 in osm for applications/editors/josm/plugins/OsmInspectorPlugin/src
- Timestamp:
- 2018-04-08T02:35:46+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/GeoFabrikWFSClient.java
r33793 r34143 121 121 this.data = data; 122 122 } 123 124 /**125 * @param args126 */127 public static void main(String[] args) {128 129 // try {130 // CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:4326");131 // GeoFabrikWFSClient theTest = new GeoFabrikWFSClient( new132 // Bounds(-124.0, -120.0, 32.0, 36.0));133 // theTest.initializeDataStore();134 // FeatureCollection<SimpleFeatureType, SimpleFeature> features =135 // theTest.getFeatures();136 // OsmInspectorLayer inspector = new OsmInspectorLayer(137 // theTest.getData());138 // inspector.setVisible(true);139 140 // ReferencedEnvelope bounds = new ReferencedEnvelope();141 // Iterator<SimpleFeature> iterator = features.iterator();142 // try {143 // while (iterator.hasNext()) {144 // Feature feature = iterator.next();145 // bounds.include(feature.getBounds());146 // }147 // Main.info("Calculated Bounds:" + bounds);148 // } finally {149 // features.close(iterator);150 // }151 // } catch (Exception e) {152 // // TODO Auto-generated catch block153 // e.printStackTrace();154 // }155 }156 123 } -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java
r34142 r34143 331 331 private static final float POINT_SIZE = 10.0f; 332 332 333 /**334 *335 * @param wfsClient336 * @throws NoSuchAuthorityCodeException337 * @throws FactoryException338 * @throws IOException339 * @throws IndexOutOfBoundsException340 * @throws ParseException341 */342 333 public OsmInspectorLayer(GeoFabrikWFSClient wfsClient, 343 334 ProgressMonitor monitor) throws NoSuchAuthorityCodeException, … … 393 384 } 394 385 395 /**396 *397 * @param wfsClient398 * @throws NoSuchAuthorityCodeException399 * @throws FactoryException400 * @throws IOException401 * @throws ParseException402 * @throws NoSuchElementException403 * @throws IndexOutOfBoundsException404 */405 386 public void loadFeatures(GeoFabrikWFSClient wfsClient) 406 387 throws NoSuchAuthorityCodeException, FactoryException, IOException,
Note:
See TracChangeset
for help on using the changeset viewer.