Пример #1
0
        public GeoJsonTile(TileAddress address, byte[] data)
        {
            this.address = address;
            var dataAsString = System.Text.Encoding.Default.GetString(data);

            tileNode   = JSON.Parse(dataAsString);
            projection = LocalCoordinateProjectionForTile(address);
        }
Пример #2
0
 public GeoJsonFeature(JSONNode node, LocalCoordinateProjection project)
 {
     featureNode         = node.AsObject;
     propertiesNode      = featureNode["properties"].AsObject;
     geometryNode        = featureNode["geometry"].AsObject;
     type                = TypeFromString(geometryNode["type"].Value);
     projectToLocalPoint = project;
 }
Пример #3
0
 public GeoJsonFeatureCollection(string name, JSONNode node, LocalCoordinateProjection projection)
 {
     this.name = name;
     this.featureCollectionNode = node;
     this.projection            = projection;
 }