9 #ifndef GlobeEngine_FeatureObject_h
10 #define GlobeEngine_FeatureObject_h
12 #include "SHPObject.h"
13 #include "DBFObject.h"
14 #include "OpenGL_Includes.h"
19 #include "TileFeatureService.h"
26 class ReferenceSystem;
51 virtual void draw(std::shared_ptr<ge::Camera> _cam) = 0;
71 void exportToSHPFile(std::string _path,
enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer* _content);
72 void exportToCSVFile(std::string _path,
enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer* _content);
92 return this->
datatable.readIntegerFieldFromDBFtoArray(_fieldnumber);
97 return this->
datatable.readStringFieldFromDBF<T>(_fieldnumber);
100 template <
typename T>
102 return this->
datatable.readFieldFromDBF<T>(_fieldnumber);
107 void saveFeature(std::string _path, std::string _ext);
127 virtual shpio::SHPFileExportContainer*
getExportContainer(std::shared_ptr<ReferenceSystem> _referenceSystem);
138 void loadDataFromJSON(std::string _filename);
139 void loadDataFromTFS(std::string _repourl,
int _minlod,
int _maxlod);
142 void convertWGS84toLocalCoordinates(std::shared_ptr<ReferenceSystem> _referenceSystem);
143 void convertLocalToWGS84Coordinates(std::shared_ptr<ReferenceSystem> _referenceSystem);
193 int numberOfEntitiesInFile;
void loadDatabaseFields()
Definition: FeatureObject.cpp:145
void exportToCSVFile(std::string _path, enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer *_content)
Definition: FeatureObject.cpp:296
GEOMETRYDRAWMODE drawMode
Definition: FeatureObject.h:146
std::shared_ptr< ReferenceSystem > referenceSystem
Definition: FeatureObject.h:165
Definition: DrawableComponent.h:25
vmml::Vector4d getBounds2D() const
Definition: FeatureObject.cpp:366
Definition: FeatureObject.h:44
Definition: FeatureObject.h:44
Definition: FeatureObject.h:44
GEOMETRYDRAWMODE
Definition: FeatureObject.h:37
std::string fileUrl
Definition: FeatureObject.h:187
void exportToSHPFile(std::string _path, enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer *_content)
Definition: FeatureObject.cpp:284
vmml::Vector3f textColor
Definition: FeatureObject.h:176
geGIS::FeatureRange entityRange
Definition: FeatureObject.h:154
virtual void createVAO(enum GEOMETRYDRAWMODE _in)=0
char getFieldType(int _fieldnumber)
Definition: FeatureObject.cpp:405
Definition: FeatureObject.h:42
vmml::Vector2d getMidpointOfBoundsProj2D()
Definition: FeatureObject.cpp:445
Definition: ClusterGrid.h:17
std::vector< vmml::Vector3d > feature_vec
Definition: FeatureObject.h:168
Definition: FeatureObject.h:42
std::vector< SHPObject * > shape_vec
Definition: FeatureObject.h:172
Definition: FeatureObject.h:39
Definition: FeatureObject.h:42
int getEntityCount() const
Definition: FeatureObject.cpp:390
Definition: FeatureObject.h:38
virtual ~FeatureObject()
Definition: FeatureObject.cpp:21
Definition: FeatureObject.h:42
void setTextColor(vmml::Vector3f _textcolor)
Definition: FeatureObject.cpp:423
Definition: FeatureObject.h:40
int numberOfLocations
Definition: FeatureObject.h:153
Definition: FeatureObject.h:44
Definition: FeatureObject.h:40
int shapetype
Definition: FeatureObject.h:150
Definition: FeatureObject.h:28
tileService::TileFeatureService tfsloader
Definition: FeatureObject.h:185
FEATURETYPE featureType
Definition: FeatureObject.h:147
void setFeatureType(std::string _type)
void saveFeature(std::string _path, std::string _ext)
Definition: FeatureObject.cpp:266
virtual shpio::SHPFileExportContainer * getExportContainer(std::shared_ptr< ReferenceSystem > _referenceSystem)
Definition: FeatureObject.cpp:242
float getWheightMin() const
Definition: FeatureObject.cpp:419
enum FEATUREFORMAT getFormatFromString(std::string _input)
Definition: FeatureObject.cpp:321
std::shared_ptr< StyleCollection > vectorStyling
Definition: FeatureObject.h:190
Definition: FeatureObject.h:44
vmml::Vector3d getMaxBounds() const
Definition: FeatureObject.cpp:375
int numberOfEdges
Definition: FeatureObject.h:152
virtual void clear()
Definition: FeatureObject.cpp:27
Definition: FeatureObject.h:40
virtual void create()
Definition: FeatureObject.cpp:47
Definition: FeatureObject.h:44
void setEntityRanges(geGIS::FeatureRange _entRange)
Definition: FeatureObject.cpp:96
double bounds[6]
Definition: FeatureObject.h:160
void print()
Definition: FeatureObject.cpp:431
void deleteMemory()
Definition: FeatureObject.cpp:42
vmml::Vector3f getTextColor() const
Definition: FeatureObject.cpp:427
bool isRepository
Definition: FeatureObject.h:183
std::shared_ptr< StyleCollection > getStyleCollection() const
Definition: FeatureObject.cpp:449
double edgelength[3]
Definition: FeatureObject.h:162
FeatureObject()
Definition: FeatureObject.cpp:16
int numberOfEntities
Definition: FeatureObject.h:151
std::vector< T > readStringField(int _fieldnumber)
Definition: FeatureObject.h:96
void checkForBoundaries()
Definition: FeatureObject.cpp:176
enum GEOMETRYDRAWMODE getDrawMode() const
Definition: FeatureObject.h:66
int getLocationPointCount() const
Definition: FeatureObject.cpp:400
float weightMax
Definition: FeatureObject.h:178
std::vector< int > shapeVecIdx
Definition: FeatureObject.h:170
std::vector< std::string > getFieldNames()
Definition: FeatureObject.cpp:410
shpio::DBFDataContainer datatable
Definition: FeatureObject.h:174
Definition: FeatureObject.h:44
enum FEATUREFORMAT checkForFileWithStandardExtension(std::string _input)
Definition: FeatureObject.cpp:340
vmml::Vector3f blueprintColor
Definition: FeatureObject.h:182
FEATURETYPE
Definition: FeatureObject.h:44
float getWheightMax() const
Definition: FeatureObject.cpp:415
std::string getStringForFormat(enum FEATUREFORMAT _input)
Definition: FeatureObject.cpp:330
float weightMin
Definition: FeatureObject.h:179
int * readIntegerFieldFromDBFtoArray(int _fieldnumber)
Definition: FeatureObject.h:91
void loadDataFromSHP(std::string filename)
Definition: FeatureObject.cpp:124
vmml::Vector3d midPoint
Definition: FeatureObject.h:161
void setupInitialShapeData(std::string _filename, std::string _driver, geGIS::FeatureRange _entRange)
Definition: FeatureObject.cpp:62
const tileService::TileFeatureService * getTFSInfo()
Definition: FeatureObject.h:109
std::vector< T > readNumericField(int _fieldnumber)
Definition: FeatureObject.h:101
void setupInitialTFSData(std::string _filename, int _minlod, int _maxlod)
Definition: FeatureObject.cpp:52
vmml::Vector3d getMidpointOfBounds()
Definition: FeatureObject.cpp:441
SHPHandle shapehandle
Definition: FeatureObject.h:173
int getEdgeCount() const
Definition: FeatureObject.cpp:395
FEATUREFORMAT featureFormat
Definition: FeatureObject.h:148
virtual void draw(std::shared_ptr< ge::Camera > _cam)=0
vmml::Vector3d getEdgeLength() const
Definition: FeatureObject.cpp:380
vmml::Vector3d getMinBounds() const
Definition: FeatureObject.cpp:370
FEATUREFORMAT
Definition: FeatureObject.h:42
int getShapeType() const
Definition: FeatureObject.cpp:385
Definition: FeatureObject.h:37