|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| bool | _validateSHPFiles (const QString &shpFile, int *utmZone, bool *utmSouthernHemisphere, QString &errorString) |
| SHPHandle | _loadShape (const QString &shpFile, int *utmZone, bool *utmSouthernHemisphere, QString &errorString) |
| ShapeFileHelper::ShapeType | determineShapeType (const QString &file, QString &errorString) |
| int | getEntityCount (const QString &shpFile, QString &errorString) |
| Get the number of entities in the shapefile. | |
| bool | loadPolygonsFromFile (const QString &shpFile, QList< QList< QGeoCoordinate > > &polygons, QString &errorString, double filterMeters=ShapeFileHelper::kDefaultVertexFilterMeters) |
| bool | loadPolylinesFromFile (const QString &shpFile, QList< QList< QGeoCoordinate > > &polylines, QString &errorString, double filterMeters=ShapeFileHelper::kDefaultVertexFilterMeters) |
| bool | loadPointsFromFile (const QString &shpFile, QList< QGeoCoordinate > &points, QString &errorString) |
| Load all point entities. | |
| SHPHandle SHPFileHelper::_loadShape | ( | const QString & | shpFile, |
| int * | utmZone, | ||
| bool * | utmSouthernHemisphere, | ||
| QString & | errorString | ||
| ) |
| utmZone[out] | Zone for UTM shape, 0 for lat/lon shape |
| utmSouthernHemisphere[out] | true/false for UTM hemisphere |
Definition at line 219 of file SHPFileHelper.cc.
References _validateSHPFiles(), and errorString.
Referenced by determineShapeType(), getEntityCount(), loadPointsFromFile(), loadPolygonsFromFile(), and loadPolylinesFromFile().
| bool SHPFileHelper::_validateSHPFiles | ( | const QString & | shpFile, |
| int * | utmZone, | ||
| bool * | utmSouthernHemisphere, | ||
| QString & | errorString | ||
| ) |
Validates the specified SHP file is truly a SHP file and is in the format we understand.
| utmZone[out] | Zone for UTM shape, 0 for lat/lon shape |
| utmSouthernHemisphere[out] | true/false for UTM hemisphere |
Definition at line 154 of file SHPFileHelper.cc.
References errorString.
Referenced by _loadShape().
| ShapeFileHelper::ShapeType SHPFileHelper::determineShapeType | ( | const QString & | file, |
| QString & | errorString | ||
| ) |
Definition at line 239 of file SHPFileHelper.cc.
References _loadShape(), and errorString.
| int SHPFileHelper::getEntityCount | ( | const QString & | shpFile, |
| QString & | errorString | ||
| ) |
Get the number of entities in the shapefile.
Definition at line 276 of file SHPFileHelper.cc.
References _loadShape(), and errorString.
| bool SHPFileHelper::loadPointsFromFile | ( | const QString & | shpFile, |
| QList< QGeoCoordinate > & | points, | ||
| QString & | errorString | ||
| ) |
Load all point entities.
Definition at line 500 of file SHPFileHelper.cc.
References _loadShape(), QGCGeo::convertUTMToGeo(), and errorString.
| bool SHPFileHelper::loadPolygonsFromFile | ( | const QString & | shpFile, |
| QList< QList< QGeoCoordinate > > & | polygons, | ||
| QString & | errorString, | ||
| double | filterMeters = ShapeFileHelper::kDefaultVertexFilterMeters |
||
| ) |
Load all polygon entities
| filterMeters | Filter vertices closer than this distance (0 to disable) |
Definition at line 294 of file SHPFileHelper.cc.
References _loadShape(), QGCGeo::convertUTMToGeo(), and errorString.
| bool SHPFileHelper::loadPolylinesFromFile | ( | const QString & | shpFile, |
| QList< QList< QGeoCoordinate > > & | polylines, | ||
| QString & | errorString, | ||
| double | filterMeters = ShapeFileHelper::kDefaultVertexFilterMeters |
||
| ) |
Load all polyline entities
| filterMeters | Filter vertices closer than this distance (0 to disable) |
Definition at line 407 of file SHPFileHelper.cc.
References _loadShape(), QGCGeo::convertUTMToGeo(), and errorString.