Class GeoJsonLoader
java.lang.Object
gaiasky.data.AbstractSceneLoader
gaiasky.data.GeoJsonLoader
- All Implemented Interfaces:
ISceneLoader
GeoJSON data loader.
-
Field Summary
Fields inherited from class AbstractSceneLoader
datasetDirectory, dataSource, filePaths, index, loggedArchetypes, parentName, scene -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][][]convertToDoubleArray(com.badlogic.gdx.utils.JsonValue json, int size, int d) com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadData()Performs the loading and returns an array with the entities loaded.voidsetDescription(String description) voidvoidMethods inherited from class AbstractSceneLoader
initialize, initialize, initialize, setIndex, setParentNameModifier and TypeMethodDescriptionvoidinitialize(String[] files, Scene scene) voidinitialize(String[] files, String dsLocation, Scene scene) voidinitialize(uk.ac.starlink.util.DataSource dataSource, Scene scene) voidvoidsetParentName(String parentName)
-
Constructor Details
-
GeoJsonLoader
public GeoJsonLoader()
-
-
Method Details
-
loadData
public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> loadData() throws FileNotFoundExceptionDescription copied from interface:ISceneLoaderPerforms the loading and returns an array with the entities loaded.- Returns:
- The loaded entities.
- Throws:
FileNotFoundException
-
convertToDoubleArray
public double[][][] convertToDoubleArray(com.badlogic.gdx.utils.JsonValue json, int size, int d) -
setName
-
setDescription
-
setParams
-