public GeoShapeData(GeoShape ashape) { for (double [] da: ashape.points) { points.add(new GeoPointData(da)); } }
/// <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; }
public BVHObject3(GeoShape shape) : base(shape) { }
public GeometricObject() { mShapeType = GeoShape.NONE; }
public GeometricObject(GeoShape shape) { mShapeType = shape; }
protected void applyTo(GeoShape shape) { shape.setSpatialReference(this); }
/** * 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);
/** * 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);
internal Geo(Tweet tweet) { Tweet = tweet; _shape = tweet.GeoShapeType.GetValueOrDefault(GeoShape.Point); Coordinates = tweet.Coordinates; }
/// <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(); }
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; }
/** * 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);