27 #include "../../../dataaccess/dataset/DataSet.h" 28 #include "../../../dataaccess/dataset/DataSetAdapter.h" 29 #include "../../../dataaccess/dataset/DataSetType.h" 30 #include "../../../dataaccess/dataset/DataSetTypeConverter.h" 31 #include "../../../dataaccess/datasource/DataSource.h" 32 #include "../../../dataaccess/utils/Utils.h" 33 #include "../../../geometry/GeometryProperty.h" 34 #include "../../../maptools/DataSetAdapterLayer.h" 35 #include "../../../qt/widgets/utils/ScopedCursor.h" 36 #include "../../../se/FeatureTypeStyle.h" 37 #include "../../../se/Utils.h" 40 #include "ui_DataPropertiesDialogForm.h" 41 #include "ui_DataPropertiesWidgetForm.h" 44 #include <boost/uuid/random_generator.hpp> 45 #include <boost/uuid/uuid_io.hpp> 49 const std::string& propertyName)
53 while(dataset->moveNext())
64 m_ui(new
Ui::DataPropertiesDialogForm)
72 QGridLayout* layout =
new QGridLayout(
m_ui->m_dataWidgetFrame);
74 layout->setContentsMargins(0,0,0,0);
75 this->layout()->setSizeConstraint(QLayout::SetFixedSize);
80 m_ui->m_helpPushButton->setPageReference(
"widgets/external_table/external_table.html");
89 static boost::uuids::basic_random_generator<boost::mt19937> gen;
90 boost::uuids::uuid u = gen();
91 std::string
id = boost::uuids::to_string(u);
TEDATAACCESSEXPORT te::gm::Envelope * GetExtent(const std::string &datasetName, const std::string &propertyName, const std::string &datasourceId)
void Union(const Envelope &rhs)
It updates the envelop with coordinates of another envelope.
TESEEXPORT Style * CreateFeatureTypeStyle(const te::gm::GeomType &geomType)
Try creates an appropriate feature type style based on given geometry type.
A layer with reference to a DataSetTypeConverter.
int getSRID() const
It returns the spatial reference system identifier associated to this property.
const Envelope * getMBR() const _NOEXCEPT_OP(true)
It returns the minimum bounding rectangle for the geometry in an internal representation.
An Envelope defines a 2D rectangular region.
GeomType getGeometryType() const
It returns the geometry subtype allowed for the property.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
boost::intrusive_ptr< DataSetAdapterLayer > DataSetAdapterLayerPtr
A dialog used to configure the properties of a new textual file based layer.
const std::string & getId() const
An identification value for the data source.
TEDATAACCESSEXPORT te::gm::GeometryProperty * GetFirstGeomProperty(const DataSetType *dt)
te::gm::Envelope & computeDataSetEnvelope(std::unique_ptr< te::da::DataSet > dataset, const std::string &propertyName)
const std::string & getTitle() const
A human descriptive title for the DataSetType.
const std::string & getName() const
It returns the property name.