23 #ifndef vtkGeoJSONFeature_h 24 #define vtkGeoJSONFeature_h 28 #include "vtkIOGeoJSONModule.h" 29 #include "vtk_jsoncpp.h" 34 #define GeoJSON_POINT "Point" 35 #define GeoJSON_MULTI_POINT "MultiPoint" 36 #define GeoJSON_LINE_STRING "LineString" 37 #define GeoJSON_MULTI_LINE_STRING "MultiLineString" 38 #define GeoJSON_POLYGON "Polygon" 39 #define GeoJSON_MULTI_POLYGON "MultiPolygon" 40 #define GeoJSON_GEOMETRY_COLLECTION "GeometryCollection" 55 vtkSetMacro(OutlinePolygons,
bool);
56 vtkGetMacro(OutlinePolygons,
bool);
57 vtkBooleanMacro(OutlinePolygons,
bool);
64 void ExtractGeoJSONFeature(
const Json::Value& root,
vtkPolyData* outputData);
90 void ExtractGeoJSONFeatureGeometry(
const Json::Value& root,
vtkPolyData* outputData);
115 bool IsPoint(
const Json::Value& root);
116 bool IsMultiPoint(
const Json::Value& root);
117 bool IsLineString(
const Json::Value& root);
118 bool IsMultiLineString(
const Json::Value& root);
119 bool IsPolygon(
const Json::Value& root);
120 bool IsMultiPolygon(
const Json::Value& root);
126 bool CreatePoint(
const Json::Value& coordinates,
double point[3]);
128 void InsertFeatureProperties(
vtkPolyData* outputData);
135 #endif // vtkGeoJSONFeature_h void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Represents GeoJSON feature geometry & properties.
bool OutlinePolygons
Set/get option to generate the border outlining each polygon, so that the output cells are polyine da...
a simple class to control print indentation
char * FeatureId
Id of current GeoJSON feature being parsed.
Json::Value featureRoot
Json::Value featureRoot corresponds to the root of the geoJSON feature from which the geometry and pr...
general representation of visualization data