예제 #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) }))
 {
 }
예제 #2
0
 private Feature(FeatureFactory <T> factory, T oid, IGeometry geometry, FeatureAttributes <T> attributes)
 {
     _factory    = factory;
     _attributes = attributes;
     Geometry    = geometry;
     Oid         = oid;
 }
예제 #3
0
 protected FeatureTest(FeatureFactory <TEntity> featureFactory)
 {
     _featureFactory    = featureFactory;
     _featureCollection = new FeatureCollection <TEntity>(featureFactory);
 }
예제 #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);
 }
예제 #5
0
 public FeatureCollection(FeatureFactory <T> factory)
 {
     _factory = factory;
 }
예제 #6
0
 protected FeatureCollection(FeatureCollection <T> collection)
     : base(collection)
 {
     _factory = (FeatureFactory <T>)collection.Factory;
 }