// Construct a C<foo>LayerHelper object according to its PostGIS type.
        public static CLayerHelperBase createLayerHelper(string postGisGeometryType)
        {
            CLayerHelperBase retVal = null;
            switch (postGisGeometryType.ToLower())
            {
                case "point":
                    retVal = new CPointLayerHelper();
                    break;

                case "linestring":
                case "multilinestring":
                    retVal = new CPolylineLayerHelper();
                    break;

                case "polygon":
                case "multipolygon":
                    retVal = new CPolygonLayerHelper();
                    break;
            }

            return retVal;
        }
Exemple #2
0
        // Construct a C<foo>LayerHelper object according to its PostGIS type.
        static public CLayerHelperBase createLayerHelper(string postGisGeometryType)
        {
            CLayerHelperBase retVal = null;

            switch (postGisGeometryType.ToLower())
            {
            case "point":
                retVal = new CPointLayerHelper();
                break;

            case "linestring":
            case "multilinestring":
                retVal = new CPolylineLayerHelper();
                break;

            case "polygon":
            case "multipolygon":
                retVal = new CPolygonLayerHelper();
                break;
            }

            return(retVal);
        }