Exemplo n.º 1
0
 public Int64FeatureTest()
     : base(FeatureFactory.CreateInt64(NetTopologySuite.NtsGeometryServices.Instance.CreateGeometryFactory(4326),
                                       new FeatureAttributeDefinition { AttributeName = "Attribute1", AttributeDescription = "1st Attribute", AttributeType = typeof(int) },
                                       new FeatureAttributeDefinition { AttributeName = "Attribute2", AttributeDescription = "2nd Attribute", AttributeType = typeof(double) },
                                       new FeatureAttributeDefinition { AttributeName = "Attribute3", AttributeDescription = "3rd Attribute", AttributeType = typeof(string) }))
 {
 }
Exemplo n.º 2
0
 private Feature(FeatureFactory <T> factory, T oid, IGeometry geometry, FeatureAttributes <T> attributes)
 {
     _factory    = factory;
     _attributes = attributes;
     Geometry    = geometry;
     Oid         = oid;
 }
Exemplo n.º 3
0
 protected FeatureTest(FeatureFactory <TEntity> featureFactory)
 {
     _featureFactory    = featureFactory;
     _featureCollection = new FeatureCollection <TEntity>(featureFactory);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a feature
 /// </summary>
 /// <param name="factory">The factory that created the feature</param>
 internal Feature(FeatureFactory <T> factory)
 {
     _factory    = factory;
     _attributes = new FeatureAttributes <T>(this);
 }
Exemplo n.º 5
0
 public FeatureCollection(FeatureFactory <T> factory)
 {
     _factory = factory;
 }
Exemplo n.º 6
0
 protected FeatureCollection(FeatureCollection <T> collection)
     : base(collection)
 {
     _factory = (FeatureFactory <T>)collection.Factory;
 }