@Service public class ShapeImportManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DefaultCharset |
static boolean |
DefaultForceLonLat |
| Constructor and Description |
|---|
ShapeImportManager() |
ShapeImportManager(gr.cite.geoanalytics.dataaccess.entities.security.principal.dao.PrincipalDao principalDao,
TaxonomyManager taxonomyManager,
ConfigurationManager configManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureTypes(Map<String,gr.cite.geoanalytics.common.ShapeAttributeDataType> types) |
Map<String,String> |
analyzeAttributesOfFeatureSource(org.geotools.data.simple.SimpleFeatureSource featureSource) |
Map<String,String> |
analyzeAttributesOfShapeFile(String filename,
String charset) |
void |
clearFeatureTypes() |
List<gr.cite.geoanalytics.dataaccess.entities.shape.ShapeImport> |
findByImportIdentity(String identity) |
gr.cite.gaap.datatransferobjects.ShapeImportInfo |
fromShapeFile(String filename,
String termId,
int srid) |
gr.cite.gaap.datatransferobjects.ShapeImportInfo |
fromShapeFile(String filename,
String termId,
int srid,
String charset) |
gr.cite.gaap.datatransferobjects.ShapeImportInfo |
fromShapeFile(String filename,
String termId,
int srid,
String charset,
boolean forceLonLat) |
gr.cite.gaap.datatransferobjects.ShapeImportInfo |
fromShapefile(String pathName,
String termId,
int srid,
String charset,
boolean forceLonLat,
Map<String,Map<String,gr.cite.gaap.datatransferobjects.AttributeInfo>> attrInfo,
gr.cite.geoanalytics.dataaccess.entities.principal.Principal principal,
boolean forceOverwriteMappings) |
Set<String> |
getAttributeValuesFromFeatureSource(org.geotools.data.simple.SimpleFeatureSource featureSource,
String attribute) |
Set<String> |
getAttributeValuesFromShapeFile(String pathname,
String charset,
String attribute) |
List<gr.cite.geoanalytics.dataaccess.entities.shape.ShapeImport> |
getImport(UUID importId) |
List<gr.cite.gaap.datatransferobjects.ShapeImportInstance> |
getImportInstances(boolean nonEmpty) |
void |
setShapeImportDao(gr.cite.geoanalytics.dataaccess.entities.shape.dao.ShapeImportDao shapeImportDao) |
void |
setShapeManager(ShapeManager shapeManager) |
void |
setTaxonomyTermDao(gr.cite.geoanalytics.dataaccess.entities.taxonomy.dao.TaxonomyTermDao taxonomyTermDao) |
void |
setTypeInference(boolean val) |
public static final String DefaultCharset
public static final boolean DefaultForceLonLat
public ShapeImportManager()
@Inject
public ShapeImportManager(gr.cite.geoanalytics.dataaccess.entities.security.principal.dao.PrincipalDao principalDao,
TaxonomyManager taxonomyManager,
ConfigurationManager configManager)
@Inject public void setShapeManager(ShapeManager shapeManager)
@Inject public void setShapeImportDao(gr.cite.geoanalytics.dataaccess.entities.shape.dao.ShapeImportDao shapeImportDao)
@Inject public void setTaxonomyTermDao(gr.cite.geoanalytics.dataaccess.entities.taxonomy.dao.TaxonomyTermDao taxonomyTermDao)
public void setTypeInference(boolean val)
public void addFeatureTypes(Map<String,gr.cite.geoanalytics.common.ShapeAttributeDataType> types)
public void clearFeatureTypes()
public gr.cite.gaap.datatransferobjects.ShapeImportInfo fromShapeFile(String filename, String termId, int srid) throws Exception
Exceptionpublic gr.cite.gaap.datatransferobjects.ShapeImportInfo fromShapeFile(String filename, String termId, int srid, String charset) throws Exception
Exceptionpublic gr.cite.gaap.datatransferobjects.ShapeImportInfo fromShapeFile(String filename, String termId, int srid, String charset, boolean forceLonLat) throws Exception
Exception@Transactional public gr.cite.gaap.datatransferobjects.ShapeImportInfo fromShapefile(String pathName, String termId, int srid, String charset, boolean forceLonLat, Map<String,Map<String,gr.cite.gaap.datatransferobjects.AttributeInfo>> attrInfo, gr.cite.geoanalytics.dataaccess.entities.principal.Principal principal, boolean forceOverwriteMappings) throws Exception
Exceptionpublic Map<String,String> analyzeAttributesOfFeatureSource(org.geotools.data.simple.SimpleFeatureSource featureSource) throws Exception
Exceptionpublic Map<String,String> analyzeAttributesOfShapeFile(String filename, String charset) throws Exception
Exceptionpublic Set<String> getAttributeValuesFromFeatureSource(org.geotools.data.simple.SimpleFeatureSource featureSource, String attribute) throws Exception
Exceptionpublic Set<String> getAttributeValuesFromShapeFile(String pathname, String charset, String attribute) throws Exception
Exception@Transactional(readOnly=true) public List<gr.cite.geoanalytics.dataaccess.entities.shape.ShapeImport> getImport(UUID importId) throws Exception
Exception@Transactional(readOnly=true) public List<gr.cite.geoanalytics.dataaccess.entities.shape.ShapeImport> findByImportIdentity(String identity) throws Exception
ExceptionCopyright © 2016. All Rights Reserved.