Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/GeometryUtils.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e9d912c97fa8 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
83 | 83 |
84 return null; | 84 return null; |
85 } | 85 } |
86 | 86 |
87 /** | 87 /** |
88 * Returns the boundary of Envelope <i>env</i> in OpenLayers representation. | 88 * Returns boundary of Envelope <i>env</i> in OpenLayers representation. |
89 * | 89 * |
90 * @param env The envelope of a geometry. | 90 * @param env The envelope of a geometry. |
91 * | 91 * |
92 * @return the OpenLayers boundary of <i>env</i>. | 92 * @return the OpenLayers boundary of <i>env</i>. |
93 */ | 93 */ |
138 * Creates a new SimpleFeatureType using a SimpleFeatureTypeBuilder. | 138 * Creates a new SimpleFeatureType using a SimpleFeatureTypeBuilder. |
139 * | 139 * |
140 * @param name The name of the FeatureType. | 140 * @param name The name of the FeatureType. |
141 * @param srs The SRS (e.g. "EPSG:31466"). | 141 * @param srs The SRS (e.g. "EPSG:31466"). |
142 * @param geometryType The geometry type's class (e.g. Polygon.class). | 142 * @param geometryType The geometry type's class (e.g. Polygon.class). |
143 * @param attrs Optional. An object with attribute-name/attribute-class pairs | 143 * @param attrs Optional. Object with attribute-name/attribute-class pairs |
144 * where index 0 specifies the name as string and index 1 the | 144 * where index 0 specifies the name as string and index 1 the |
145 * ype as class. | 145 * ype as class. |
146 * | 146 * |
147 * @return a new SimpleFeatureType. | 147 * @return a new SimpleFeatureType. |
148 */ | 148 */ |
323 String typeName = newDataStore.getTypeNames()[0]; | 323 String typeName = newDataStore.getTypeNames()[0]; |
324 | 324 |
325 FeatureWriter<SimpleFeatureType, SimpleFeature> writer = | 325 FeatureWriter<SimpleFeatureType, SimpleFeature> writer = |
326 newDataStore.getFeatureWriter(typeName, transaction); | 326 newDataStore.getFeatureWriter(typeName, transaction); |
327 | 327 |
328 SimpleFeatureIterator iterator = (SimpleFeatureIterator) collection.features(); | 328 SimpleFeatureIterator iterator = |
329 (SimpleFeatureIterator)collection.features(); | |
329 | 330 |
330 while (iterator.hasNext()){ | 331 while (iterator.hasNext()){ |
331 SimpleFeature feature = iterator.next(); | 332 SimpleFeature feature = iterator.next(); |
332 SimpleFeature copy = writer.next(); | 333 SimpleFeature copy = writer.next(); |
333 | 334 |