1#ifndef ProcessPolygons_h
2#define ProcessPolygons_h
9#include <geos/geom/Coordinate.h>
10#include <geos/geom/MultiPolygon.h>
11#include <geos/geom/Polygon.h>
16#include "ProjectionFactory.h"
52 void SetStatCubes(
const QString ¶meter,
const int nsamps,
53 const int nlines,
int nbands = 1);
55 void SetStatCubes(
const QString &avgFileName,
const QString
57 const int nsamps,
const int nlines,
int nbands = 1);
61 const QString &countFileName =
"");
63 void Rasterize(std::vector<double> &samples,
64 std::vector<double> &lines,
65 std::vector<double> &values);
67 void Rasterize(std::vector<double> &samples,
68 std::vector<double> &lines,
69 int &band,
double &value);
76 void GetPolygonCoords();
79 std::vector<double> m_sampleVertices, m_lineVertices, m_dns;
83 geos::geom::Polygon *m_imagePoly;
Buffer for containing a three dimensional section of an image.
Manipulate and parse attributes of output cube filenames.
IO Handler for Isis Cubes.
Base class for all cube processing derivatives.
void SetIntersectAlgorithm(const bool useCenter)
Sets the algorithm for how output pixels are rasterized.
void FillPolygon(int Flag)
This method does the actuall reading and writing to the cube file.
Isis::Cube * AppendOutputCube(const QString &avgFileName, const QString &countFileName="")
This gives the option to append to the cube.
void Rasterize(std::vector< double > &samples, std::vector< double > &lines, std::vector< double > &values)
void SetStatCubes(const QString ¶meter, const int nsamps, const int nlines, int nbands=1)
void Finalize()
Cleans up by closing cubes and freeing memory for owned cubes.
This is free and unencumbered software released into the public domain.