Package org.geotools.data.shapefile

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


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

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


                    SimpleFeatureBuilder fb = new SimpleFeatureBuilder(sft);
                    fb.add(g);
                    SimpleFeature footprintFeature = fb.buildFeature(null);
                    SimpleFeatureStore fs = (SimpleFeatureStore) sds.getFeatureSource();
                    fs.addFeatures(DataUtilities.collection(footprintFeature));
                    sds.dispose();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }, null);
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

        transaction.commit();
        transaction.close()
      }
     
      if(store!=null){
        store.dispose();
      }
    }
  }

}
View Full Code Here

            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

            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

        transaction.commit();
        transaction.close()
      }
     
      if(store!=null){
        store.dispose();
      }
    }
  }

}
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.