Skip to content

perezale/Java2GeoJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java2GeoJSON

Your geographic information model, exported to valid GeoJSON

Usage

A GeoFeature describes a container of layers. Each of these layers may contain a set of geographic elements.

  • Building a linestring
GeoFeature[] parsePath(Node[] path){
	//Generate GeoJson objects
	GeoFeature pathLayer = new GeoFeature();
	GeoPolyline path = new GeoPolyline();		
	for (Node node : path) {						
		float lat = node.getLat();
		float lng = node.getLng();
		path.addCoordinate(lat, lng);									
	}
	pathLayer.setGeometry(path);
	return new GeoFeature[]{pathLayer};
}

Dependencies

For more information visit: www.geojson.com.ar

About

Your geographic information model, exported to valid GeoJSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages