12 #include "vtdata/Features.h"
21 void SetGeomType(OGRwkbGeometryType type);
22 OGRwkbGeometryType GetGeomType();
24 void SetFeatureSet(
vtFeatureSet *pSet) { m_pSet = pSet; }
30 bool OnSave(
bool progress_callback(
int) = NULL);
36 void GetPropertyText(wxString &strIn);
39 void AddPoint(
const DPoint2 &p2);
40 bool CreateFromOGRLayer(OGRLayer *pOGRLayer);
41 bool ReadFeaturesFromWFS(
const char *szServerURL,
const char *layername);
42 bool LoadWithOGR(
const char *filename,
bool progress_callback(
int) = NULL);
44 void ScaleHorizontally(
double factor);
45 void ScaleVertically(
double factor);
46 void OffsetVertically(
double amount);
48 void SetDrawStyle(
const DrawStyle &style) { m_DrawStyle = style; }
49 DrawStyle GetDrawStyle() {
return m_DrawStyle; }
54 return &(m_pSet->GetAtProjection());
58 wxString GetLayerFilename()
61 return wxString(m_pSet->GetFilename(), wxConvUTF8);
63 return vtLayer::GetLayerFilename();
65 void SetLayerFilename(
const wxString &fname)
68 m_pSet->SetFilename((
const char *) fname.mb_str(wxConvUTF8));
69 vtLayer::SetLayerFilename(fname);
73 bool ImportFromXML(
const char *fname);
76 void CreateIndex(
int iSize);
82 bool m_bExtentComputed;