Package org.geotools.data.shapefile

Examples of org.geotools.data.shapefile.ShapefileDataStore.dispose()


            LOGGER.log(Level.WARNING,
                "Error while writing featuretype '" + schema.getTypeName() + "' to shapefile.", ioe);
            throw new ServiceException(ioe);
        } finally {
            if(dstore != null) {
                dstore.dispose();
            }
        }
    }
   
    /**
 
View Full Code Here


    {
      convertFeatures(converter, dataStore, attributes);
    }
    finally
    {
      dataStore.dispose();
    }
   
    long endTime = System.currentTimeMillis();
    if (debugTime)
      System.out.println(String.format("file parsing took %s ms for %s", endTime - startTime, filename));
View Full Code Here

            }
            footprintWriter = null;
           
           
            try{
              store.dispose();
            }catch (Throwable e) {
                if (LOGGER.isLoggable(Level.FINEST))
                    LOGGER.log(Level.FINEST, e.getLocalizedMessage(), e);
            }
        }
View Full Code Here

                SimpleFeature next = features.next();
                expectedCount++;
                expectedFids.add(next.getID());
            }
            features.close();
            ds.dispose();
        }

        assertTrue(expectedCount > 0);
        assertEquals(expectedCount, reader.getCount());
View Full Code Here

                SimpleFeature next = features.next();
                expectedCount++;
                expectedFids.add(next.getID());
            }
            features.close();
            ds.dispose();
        }

        assertTrue(expectedCount > 0);
        assertEquals(expectedCount, reader.getCount());
View Full Code Here

        }
        finally {
            it.close();
        }
        writer.close();
        ds.dispose();
        shapeDS.dispose();

        Toolbox tb = new Toolbox();
        tb.parse(new String[] { "generalize",
                "target" + File.separator + "0" + File.separator + "streams.shp", "target",
View Full Code Here

            }

            assertEquals(features, i - 1);
        } finally {
            reader.close();
            ds.dispose();
        }
    }
}
View Full Code Here

                assertEquals(shapeAtt, ogrAtt);
            }
        }
        sfr.close();
        ofr.close();
        sds.dispose();
        ods.dispose();
    }
   
    public void testLoadGeometry() throws Exception {
        // load up the store and source
View Full Code Here

                    }
                } finally {
                    if (fi != null) {
                        fi.close();
                    }
                    ds.dispose();
                }
            }

            return null;
        }
View Full Code Here

                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }, null);
        ds.dispose();
        assertItalyFootprints();
    }

    @Test
    public void testWktSidecars() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.