Exemplo n.º 1
0
 public ISelectionSet Select(IQueryFilter QueryFilter,
                             esriSelectionType selType,
                             esriSelectionOption selOption,
                             IWorkspace selectionContainer)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 ISelectionSet IDisplayTable.SelectDisplayTable(IQueryFilter pQueryFilter, esriSelectionType selType, esriSelectionOption selOption, IWorkspace pSelWorkspace)
 {
     return ((IDisplayTable)featureLayer).SelectDisplayTable(pQueryFilter, selType, selOption, pSelWorkspace);
 }
Exemplo n.º 4
0
 ISelectionSet ITable.Select(IQueryFilter QueryFilter, esriSelectionType selType, esriSelectionOption selOption, IWorkspace selectionContainer)
 {
     return ((ITable)featureLayer).Select(QueryFilter, selType, selOption, selectionContainer);
 }
Exemplo n.º 5
0
		/// <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;

        }
Exemplo n.º 6
0
		// Todo - implement this.
		public ISelectionSet Select(IQueryFilter QueryFilter, esriSelectionType selType, esriSelectionOption selOption, IWorkspace selectionContainer)
		{
			return null;
			//throw new NotImplementedException();
		}