// constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonGeometryCollectionSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonGeometryCollectionSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "GeometryCollection",
         new SerializerHelper.Member("geometries", Flags.Geometries)
               );
 }
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonMultiPointSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonMultiPointSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "MultiPoint",
         new SerializerHelper.Member("coordinates", Flags.Coordinates)
               );
 }
Exemple #3
0
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonLineStringSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonLineStringSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "LineString",
         new SerializerHelper.Member("coordinates", Flags.Coordinates)
               );
 }
Exemple #4
0
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonPointSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonPolygonSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "Polygon",
         new SerializerHelper.Member("coordinates", Flags.Coordinates)
               );
 }
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonFeatureCollectionSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonFeatureCollectionSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "FeatureCollection",
         new SerializerHelper.Member("features", Flags.Features)
               );
 }
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonFeatureSerializer{TCoordinates}"/> class.
 /// </summary>
 public GeoJsonFeatureSerializer()
 {
     _helper = new GeoJsonObjectSerializerHelper <TCoordinates>
               (
         "Feature",
         new SerializerHelper.Member("geometry", Flags.Geometry),
         new SerializerHelper.Member("id", Flags.Id, isOptional: true),
         new SerializerHelper.Member("properties", Flags.Properties, isOptional: true)
               );
 }