Exemplo n.º 1
0
 public GeoShapeData(GeoShape ashape)
 {
     for (double [] da: ashape.points)
     {
         points.add(new GeoPointData(da));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// GeoCoordinatesOrGeoShape as a GeoShape.
 /// </summary>
 /// <param name="geoShape">GeoCoordinatesOrGeoShape as a GeoShape.</param>
 public GeoCoordinatesOrGeoShape(GeoShape geoShape)
 {
     AsGeoShape = geoShape;
 }
 /// <summary>
 /// GeoShapePlaceOrText as a GeoShape.
 /// </summary>
 /// <param name="geoShape">GeoShapePlaceOrText as a GeoShape.</param>
 public GeoShapePlaceOrText(GeoShape geoShape)
     : base(geoShape.Name.AsText)
 {
     AsGeoShape = geoShape;
 }
Exemplo n.º 4
0
 public BVHObject3(GeoShape shape)
     : base(shape)
 {
 }
Exemplo n.º 5
0
 public GeometricObject()
 {
     mShapeType = GeoShape.NONE;
 }
Exemplo n.º 6
0
 public GeometricObject(GeoShape shape)
 {
     mShapeType = shape;
 }
Exemplo n.º 7
0
 protected void applyTo(GeoShape shape)
 {
     shape.setSpatialReference(this);
 }
Exemplo n.º 8
0
 /**
  * Transforms a shape into this SRS (modifying the input data).
  *
  * @param input
  *      Shape to transform into this SRS
  * @return
  *      True upon success, false upon failure.
  */
 public abstract bool transformInPlace(GeoShape input);
Exemplo n.º 9
0
 /**
  * Returns a shape transformed into this SRS.
  *
  * @param input
  *      Shape to transform into this SRS
  * @return
  *      Transformed shape, or GeoShape::invalid() upon failure
  */
 public abstract GeoShape transform(GeoShape input);
Exemplo n.º 10
0
 internal Geo(Tweet tweet)
 {
     Tweet = tweet;
     _shape = tweet.GeoShapeType.GetValueOrDefault(GeoShape.Point);
     Coordinates = tweet.Coordinates;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Area as a GeoShape.
 /// </summary>
 /// <param name="area">Area as a GeoShape.</param>
 public Area(GeoShape area) : base(area.Name.AsText)
 {
     AsGeoShape = area;
 }
 public override bool transformInPlace(GeoShape input)
 {
     throw new NotImplementedException();
 }
 public override GeoShape transform(GeoShape input)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 14
0
        public GeoShape AddShape(GeoShape AShape)
        {
            AShape.MouseRightButtonDown += MapControl.ProcessMouseRightButtonDown;

            // The position and size on the map will be set within the Redraw() method!
            this.Children.Add(AShape);
            AShape.ZoomLevel = this.MapControl.ZoomLevel;

            return AShape;
        }
Exemplo n.º 15
0
 /**
  * Creates a new feature store and returns a handle.
  *
  * @param uri
  *      Location at which to create the feature store.
  * @param shape_type
  *      Type of shapes in this feature store.
  * @param schema
  *      Attribute schema for features in this store.
  *
  * @return
  *      Connection to the new feature store. The caller is responsible
  *      for deleting the return object.
  */
 public abstract FeatureStore createFeatureStore(string uri,
     GeoShape.ShapeType type,
     AttributeSchemaList schema,
     int dimensionality,
     SpatialReference srs,
     Properties props);