Exemple #1
0
        private AC_Layers SetLayersToGet()
        {
            AC_Layers acLay = new AC_Layers();

            acLay.getAddress           = addressCheckBox.Checked;
            acLay.getBuildingFootprint = buildingFootprintCheckBox.Checked;
            acLay.getContours          = contoursCheckBox.Checked;
            acLay.getParcel            = parcelCheckBox.Checked;
            acLay.getStormWater        = stormwaterCheckBox.Checked;
            acLay.getImpervious        = imperviousSurfaceCheckBox.Checked;
            acLay.getWater             = waterCheckBox.Checked;
            acLay.getWasteWater        = wastewaterCheckBox.Checked;
            switch (spatialRefCBox.SelectedText)
            {
            case "Nztm":
                acLay.SpatialRef = AC_Layers.SpatialReference.Nztm;
                break;

            case "Mt Eden":
                acLay.SpatialRef = AC_Layers.SpatialReference.MtEden;
                break;

            case "WGS84":
                acLay.SpatialRef = AC_Layers.SpatialReference.WGS84;
                break;
            }
            return(acLay);
        }
Exemple #2
0
        private void downloadDataButton_Click(object sender, EventArgs e)
        {
            Tuple <double, double, double, double> bbox = new Tuple <double, double, double, double>(latTop, lngTop, latTop, lngBottom);
            AC_Layers layers = SetLayersToGet();

            ACDataService.GetACData.GetData(bbox, layers);
        }
Exemple #3
0
 public static void GetData(Tuple <double, double, double, double> bbox, AC_Layers layers)
 {
     if (layers.getParcel)
     {
         using (AC_Parcel ac = new AC_Parcel())
         {
             ac.GetData(bbox);
         }
     }
 }