コード例 #1
0
 internal OperatorUnionCursor(com.epl.geometry.GeometryCursor inputGeoms1, com.epl.geometry.SpatialReference sr, com.epl.geometry.ProgressTracker progress_tracker)
 {
     //for each dimension there is a list of bins sorted by level
     m_inputGeoms        = inputGeoms1;
     m_spatial_reference = (com.epl.geometry.SpatialReferenceImpl)(sr);
     m_progress_tracker  = progress_tracker;
 }
コード例 #2
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null)
     {
         return(false);
     }
     if (GetType() != obj.GetType())
     {
         return(false);
     }
     com.epl.geometry.SpatialReferenceImpl sr = (com.epl.geometry.SpatialReferenceImpl)obj;
     if (m_userWkid != sr.m_userWkid)
     {
         return(false);
     }
     if (m_userWkid == 0)
     {
         if (!m_userWkt.Equals(sr.m_userWkt))
         {
             // m_userWkt cannot be null here!
             return(false);
         }
     }
     return(true);
 }
コード例 #3
0
 public static com.epl.geometry.SpatialReferenceImpl CreateImpl(string wkt)
 {
     if (wkt == null || wkt.Length == 0)
     {
         throw new System.ArgumentException("Cannot create SpatialReference from null or empty text.");
     }
     com.epl.geometry.SpatialReferenceImpl spatRef = new com.epl.geometry.SpatialReferenceImpl();
     spatRef.m_userWkt = wkt;
     return(spatRef);
 }
コード例 #4
0
 public static com.epl.geometry.SpatialReferenceImpl CreateImpl(int wkid)
 {
     if (wkid <= 0)
     {
         throw new System.ArgumentException("Invalid or unsupported wkid: " + wkid);
     }
     com.epl.geometry.SpatialReferenceImpl spatRef = new com.epl.geometry.SpatialReferenceImpl();
     spatRef.m_userWkid = wkid;
     return(spatRef);
 }
コード例 #5
0
 internal OperatorOffsetCursor(com.epl.geometry.GeometryCursor inputGeometries, com.epl.geometry.SpatialReference sr, double distance, com.epl.geometry.OperatorOffset.JoinType joins, double bevelRatio, double flattenError, com.epl.geometry.ProgressTracker progressTracker)
 {
     m_index            = -1;
     m_inputGeoms       = inputGeometries;
     m_spatialReference = (com.epl.geometry.SpatialReferenceImpl)sr;
     m_distance         = distance;
     m_joins            = joins;
     m_miterLimit       = bevelRatio;
     m_flattenError     = flattenError;
     m_progressTracker  = progressTracker;
 }
コード例 #6
0
 internal OperatorClipCursor(com.epl.geometry.GeometryCursor geoms, com.epl.geometry.Envelope2D envelope, com.epl.geometry.SpatialReference spatial_ref, com.epl.geometry.ProgressTracker progress_tracker)
 {
     m_index = -1;
     if (geoms == null)
     {
         throw new System.ArgumentException();
     }
     m_envelope            = envelope;
     m_inputGeometryCursor = geoms;
     m_spatialRefImpl      = (com.epl.geometry.SpatialReferenceImpl)spatial_ref;
     m_tolerance           = com.epl.geometry.InternalUtils.CalculateToleranceFromGeometry(spatial_ref, envelope, false);
 }
コード例 #7
0
 internal OperatorBufferCursor(com.epl.geometry.GeometryCursor inputGeoms, com.epl.geometry.SpatialReference sr, double[] distances, double max_deviation, int max_vertices, bool b_union, com.epl.geometry.ProgressTracker progress_tracker)
 {
     m_index         = -1;
     m_inputGeoms    = inputGeoms;
     m_max_deviation = max_deviation;
     m_max_vertices_in_full_circle = max_vertices;
     m_Spatial_reference           = (com.epl.geometry.SpatialReferenceImpl)(sr);
     m_distances = distances;
     m_currentUnionEnvelope2D = new com.epl.geometry.Envelope2D();
     m_currentUnionEnvelope2D.SetEmpty();
     m_dindex           = -1;
     m_progress_tracker = progress_tracker;
 }
コード例 #8
0
 // Note: We use writeReplace with SpatialReferenceSerializer. This field is
 // irrelevant. Needs to be removed after final.
 /// <summary>
 /// Creates an instance of the spatial reference based on the provided well
 /// known ID for the horizontal coordinate system.
 /// </summary>
 /// <param name="wkid">The well-known ID.</param>
 /// <returns>SpatialReference The spatial reference.</returns>
 /// <exception cref="System.ArgumentException">if wkid is not supported or does not exist.</exception>
 public static com.epl.geometry.SpatialReference Create(int wkid)
 {
     com.epl.geometry.SpatialReferenceImpl spatRef = com.epl.geometry.SpatialReferenceImpl.CreateImpl(wkid);
     return(spatRef);
 }