Beispiel #1
0
 public override com.epl.geometry.Geometry Next()
 {
     com.epl.geometry.Geometry geometry;
     if ((geometry = m_inputGeometryCursor.Next()) != null)
     {
         m_index = m_inputGeometryCursor.GetGeometryID();
         return(com.epl.geometry.Clipper.Clip(geometry, m_envelope, m_tolerance, 0.0));
     }
     return(null);
 }
Beispiel #2
0
 public override string Next()
 {
     com.epl.geometry.Geometry geometry;
     if ((geometry = m_inputGeometryCursor.Next()) != null)
     {
         m_index = m_inputGeometryCursor.GetGeometryID();
         return(ExportToGeoJson(m_export_flags, geometry, m_spatialReference));
     }
     return(null);
 }
 public override com.epl.geometry.Geometry Next()
 {
     com.epl.geometry.Geometry geom = m_inputGeoms.Next();
     if (geom != null)
     {
         m_index = m_inputGeoms.GetGeometryID();
         return(Offset(geom));
     }
     return(null);
 }
 public override com.epl.geometry.Geometry Next()
 {
     com.epl.geometry.Geometry geom;
     if ((geom = m_inputGeoms.Next()) != null)
     {
         m_index = m_inputGeoms.GetGeometryID();
         return(DensifyByLength(geom));
     }
     return(null);
 }
 public override com.epl.geometry.Geometry Next()
 {
     if (m_bEmpty)
     {
         return(null);
     }
     com.epl.geometry.Geometry leftGeom;
     if ((leftGeom = m_inputGeoms.Next()) != null)
     {
         m_index = m_inputGeoms.GetGeometryID();
         return(com.epl.geometry.OperatorSymmetricDifferenceLocal.SymmetricDifference(leftGeom, m_rightGeom, m_spatial_reference, m_progress_tracker));
     }
     return(null);
 }
Beispiel #6
0
 public override com.epl.geometry.Geometry Next()
 {
     if (!m_b_done)
     {
         com.epl.geometry.Geometry geometry = m_inputGeometryCursor.Next();
         if (geometry != null)
         {
             m_index = m_inputGeometryCursor.GetGeometryID();
             return(Calculate_boundary(geometry, m_progress_tracker));
         }
         m_b_done = true;
     }
     return(null);
 }
Beispiel #7
0
 public override com.epl.geometry.Geometry Next()
 {
     if (m_bEmpty)
     {
         return(null);
     }
     com.epl.geometry.Geometry geom;
     if ((geom = m_inputGeoms.Next()) != null)
     {
         m_index = m_inputGeoms.GetGeometryID();
         return(com.epl.geometry.OperatorDifferenceLocal.Difference(geom, m_geomSubtractor, m_Spatial_reference, m_progress_tracker));
     }
     return(null);
 }
Beispiel #8
0
 public override com.epl.geometry.Geometry Next()
 {
     com.epl.geometry.Geometry geometry;
     if ((geometry = m_inputGeometryCursor.Next()) != null)
     {
         // if (geometry =
         // m_inputGeometryCursor->Next())
         m_index = m_inputGeometryCursor.GetGeometryID();
         if ((m_progressTracker != null) && !(m_progressTracker.Progress(-1, -1)))
         {
             throw new System.Exception("user_canceled");
         }
         return(Simplify(geometry));
     }
     return(null);
 }
 public override System.IO.MemoryStream Next()
 {
     com.epl.geometry.Geometry geometry = m_inputGeometryCursor.Next();
     if (geometry != null)
     {
         m_index = m_inputGeometryCursor.GetGeometryID();
         int size = ExportToESRIShape(m_exportFlags, geometry, null);
         if (m_shapeBuffer == null || size > m_shapeBuffer.Capacity)
         {
             m_shapeBuffer = new System.IO.MemoryStream(size);
         }
         ExportToESRIShape(m_exportFlags, geometry, new System.IO.BinaryWriter(m_shapeBuffer));
         return(m_shapeBuffer);
     }
     return(null);
 }
Beispiel #10
0
 public override com.epl.geometry.Geometry Next()
 {
     {
         com.epl.geometry.Geometry geom;
         while ((geom = m_inputGeoms.Next()) != null)
         {
             m_index = m_inputGeoms.GetGeometryID();
             if (m_dindex + 1 < m_distances.Length)
             {
                 m_dindex++;
             }
             return(Buffer(geom, m_distances[m_dindex]));
         }
         return(null);
     }
 }
Beispiel #11
0
		// dimension
		// mask
		// can
		// be
		// -1,
		// for
		// the
		// default
		// behavior,
		// or a
		// value
		// between
		// 1 and
		// 7.
		public override com.epl.geometry.Geometry Next()
		{
			if (m_bEmpty)
			{
				return null;
			}
			com.epl.geometry.Geometry geom;
			if (m_smallCursor != null)
			{
				// when dimension mask is used, we produce a
				geom = m_smallCursor.Next();
				if (geom != null)
				{
					return geom;
				}
				else
				{
					m_smallCursor = null;
				}
			}
			// done with the small cursor
			while ((geom = m_inputGeoms.Next()) != null)
			{
				m_index = m_inputGeoms.GetGeometryID();
				if (m_dimensionMask == -1)
				{
					com.epl.geometry.Geometry resGeom = Intersect(geom);
					System.Diagnostics.Debug.Assert((resGeom != null));
					return resGeom;
				}
				else
				{
					m_smallCursor = IntersectEx(geom);
					com.epl.geometry.Geometry resGeom = m_smallCursor.Next();
					System.Diagnostics.Debug.Assert((resGeom != null));
					return resGeom;
				}
			}
			return null;
		}
 public override com.epl.geometry.Geometry Next()
 {
     if (m_b_merge)
     {
         if (!m_b_done)
         {
             com.epl.geometry.Geometry result = CalculateConvexHullMerging_(m_inputGeometryCursor, m_progress_tracker);
             m_b_done = true;
             return(result);
         }
         return(null);
     }
     if (!m_b_done)
     {
         com.epl.geometry.Geometry geometry = m_inputGeometryCursor.Next();
         if (geometry != null)
         {
             m_index = m_inputGeometryCursor.GetGeometryID();
             return(CalculateConvexHull_(geometry, m_progress_tracker));
         }
         m_b_done = true;
     }
     return(null);
 }
 public override int GetGeometryID()
 {
     // TODO Auto-generated method stub
     return(m_geoms.GetGeometryID());
 }
Beispiel #14
0
 public override int GetGeometryID()
 {
     return(m_cur.GetGeometryID());
 }