public GeoJsonTile(TileAddress address, byte[] data) { this.address = address; var dataAsString = System.Text.Encoding.Default.GetString(data); tileNode = JSON.Parse(dataAsString); projection = LocalCoordinateProjectionForTile(address); }
public GeoJsonFeature(JSONNode node, LocalCoordinateProjection project) { featureNode = node.AsObject; propertiesNode = featureNode["properties"].AsObject; geometryNode = featureNode["geometry"].AsObject; type = TypeFromString(geometryNode["type"].Value); projectToLocalPoint = project; }
public GeoJsonFeatureCollection(string name, JSONNode node, LocalCoordinateProjection projection) { this.name = name; this.featureCollectionNode = node; this.projection = projection; }