Changeset 34143 in osm for applications/editors/josm/plugins/OsmInspectorPlugin
- Timestamp:
- 2018-04-08T02:35:46+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/OsmInspectorPlugin
- Files:
-
- 9 added
- 9 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/.classpath
r32680 r34143 6 6 <classpathentry combineaccessrules="false" kind="src" path="/JOSM-jts"/> 7 7 <classpathentry combineaccessrules="false" kind="src" path="/JOSM-GeoTools"/> 8 <classpathentry kind="lib" path="lib/commons-collections-3. 1.jar"/>8 <classpathentry kind="lib" path="lib/commons-collections-3.2.2.jar"/> 9 9 <classpathentry kind="lib" path="lib/commons-jxpath-1.3.jar"/> 10 <classpathentry kind="lib" path="lib/gt-app-schema-resolver-1 2.1.jar">10 <classpathentry kind="lib" path="lib/gt-app-schema-resolver-19.0.jar"> 11 11 <attributes> 12 12 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 13 13 </attributes> 14 14 </classpathentry> 15 <classpathentry kind="lib" path="lib/gt-cql-1 2.1.jar">15 <classpathentry kind="lib" path="lib/gt-cql-19.0.jar"> 16 16 <attributes> 17 17 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 18 18 </attributes> 19 19 </classpathentry> 20 <classpathentry kind="lib" path="lib/gt-render-1 2.1.jar">20 <classpathentry kind="lib" path="lib/gt-render-19.0.jar"> 21 21 <attributes> 22 22 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 23 23 </attributes> 24 24 </classpathentry> 25 <classpathentry kind="lib" path="lib/gt-referencing3D-1 2.1.jar">25 <classpathentry kind="lib" path="lib/gt-referencing3D-19.0.jar"> 26 26 <attributes> 27 27 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 28 28 </attributes> 29 29 </classpathentry> 30 <classpathentry kind="lib" path="lib/gt-wfs- 12.1.jar">30 <classpathentry kind="lib" path="lib/gt-wfs-ng-19.0.jar"> 31 31 <attributes> 32 32 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 33 33 </attributes> 34 34 </classpathentry> 35 <classpathentry kind="lib" path="lib/gt-xml-1 2.1.jar">35 <classpathentry kind="lib" path="lib/gt-xml-19.0.jar"> 36 36 <attributes> 37 37 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 38 38 </attributes> 39 39 </classpathentry> 40 <classpathentry kind="lib" path="lib/gt-xsd-core-1 2.1.jar">40 <classpathentry kind="lib" path="lib/gt-xsd-core-19.0.jar"> 41 41 <attributes> 42 42 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> 43 43 </attributes> 44 44 </classpathentry> 45 <classpathentry kind="lib" path="lib/gt-xsd-wfs-1 2.1.jar">45 <classpathentry kind="lib" path="lib/gt-xsd-wfs-19.0.jar"> 46 46 <attributes> 47 47 <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/> -
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.