Exemplo n.º 1
0
        public IFeatureCursor Search(IQueryFilter Filter, bool Recycling)
        {
            log.enterFunc("Search");

            if (log.IsDebugEnabled)
            {
                log.Debug(Helper.objectToString(Filter) + "," + Recycling.ToString());
            }

            IFeatureCursor retVal = null;

            try
            {
                string where;
                string fields;
                GeomHelper.aoQryToPostGisQry(Filter, postGisLayer, out fields, out where);
                AutoDataReader dr = postGisLayer.doQuery(fields, where);
#if !STUB_BUILD
                retVal = new PostGisFeatureCursor(this, dr);
#endif
            }
            finally
            {
                log.leaveFunc();
            }
            return(retVal);
        }
Exemplo n.º 2
0
        public IFeatureCursor Search(IQueryFilter Filter, bool Recycling)
        {
            log.enterFunc("Search");

            if (log.IsDebugEnabled) log.Debug(Helper.objectToString(Filter) + "," + Recycling.ToString());

            IFeatureCursor retVal = null;
            try
            {
                string where;
                string fields;
                GeomHelper.aoQryToPostGisQry(Filter, postGisLayer, out fields, out where);
                AutoDataReader dr = postGisLayer.doQuery(fields, where);
#if !STUB_BUILD
                retVal = new PostGisFeatureCursor(this, dr);
#endif
            }
            finally
            {
                log.leaveFunc();
            }
            return retVal;
        }