/// <summary>
        /// Get a ISelectionSet from the feature class (Paolo, march 2007)
        /// </summary>
        /// <param name="QueryFilter"></param>
        /// <param name="selType"></param>
        /// <param name="selOption"></param>
        /// <param name="selectionContainer"></param>
        /// <returns></returns>
        public ISelectionSet Select(IQueryFilter QueryFilter, esriSelectionType selType, esriSelectionOption selOption, IWorkspace selectionContainer)
        {
            log.enterFunc("Select");

            if (log.IsDebugEnabled)
            {
                log.Debug(Helper.objectToString(QueryFilter) + "," + selType.ToString() + "," + selOption.ToString() + "," + Helper.objectToString(selectionContainer));
            }

            ISelectionSet retVal = null;

            try
            {
                //retVal = new PostGisSelectionSet(this);

                //2 cases, with null QueryFilter and without
                if (QueryFilter == null)
                {
                    retVal = new PostGisSelectionSet(this);
                }
                else
                {
                    string sql    = "";
                    string fields = "";
                    string where = "";
                    GeomHelper.aoQryToPostGisQry(QueryFilter, postGisLayer, out fields, out where);
                    AutoDataReader dr = postGisLayer.doQuery(fields, where);
                    retVal = new PostGisSelectionSet(this, dr);
                }
            }
            finally
            {
                log.leaveFunc();
            }

            return(retVal as ISelectionSet);
        }
Beispiel #2
0
 public PostGisEnumIds(PostGisSelectionSet postGisSelectionSet)
 {
     m_ss = postGisSelectionSet;
     Reset();
 }
Beispiel #3
0
 public PostGisEnumIds(PostGisSelectionSet postGisSelectionSet)
 {
     m_ss = postGisSelectionSet;
     Reset();
 }
		/// <summary>
		/// Get a ISelectionSet from the feature class (Paolo, march 2007)
		/// </summary>
		/// <param name="QueryFilter"></param>
		/// <param name="selType"></param>
		/// <param name="selOption"></param>
		/// <param name="selectionContainer"></param>
		/// <returns></returns>
        public ISelectionSet Select(IQueryFilter QueryFilter, esriSelectionType selType, esriSelectionOption selOption, IWorkspace selectionContainer)
        {
            log.enterFunc("Select");
            
            if (log.IsDebugEnabled) log.Debug(Helper.objectToString(QueryFilter) + "," + selType.ToString() + "," + selOption.ToString() + "," + Helper.objectToString(selectionContainer));

            ISelectionSet retVal = null;

            try
            {
				//retVal = new PostGisSelectionSet(this);

				//2 cases, with null QueryFilter and without
				if (QueryFilter == null)
				{
					retVal = new PostGisSelectionSet(this);
				}
				else
				{
					string sql = "";
					string fields = "";
					string where = "";
					GeomHelper.aoQryToPostGisQry(QueryFilter, postGisLayer, out fields, out where);
					AutoDataReader dr = postGisLayer.doQuery(fields, where);
					retVal = new PostGisSelectionSet(this, dr);
				}
				
            }
            finally
            {
                log.leaveFunc();
            }

			return retVal as ISelectionSet;

        }