public static void main(final String[] args) throws IOException { System.out.println("GShapeLoader 0.1"); System.out.println("----------------\n"); final GFileName samplesDirectory = GFileName.absolute("home", "dgd", "Desktop", "sample-shp"); final GFileName fileName = GFileName.fromParentAndParts(samplesDirectory, "shp", "great_britain.shp", "roads.shp"); // final GFileName fileName = GFileName.fromParentAndParts(samplesDirectory, "cartobrutal", // "world-modified", "world.shp"); // final GFileName fileName = GFileName.fromParentAndParts(samplesDirectory, "shp", // "argentina.shp", "places.shp"); final IGlobeFeatureCollection< IVector2, ? extends IBoundedGeometry2D<? extends IFinite2DBounds<?>>> features = GShapeLoader.readFeatures(fileName, GProjection.EPSG_4326); System.out.println(features); }
@Override public Icon getIcon(final IGlobeApplication application) { return application.getSmallIcon(GFileName.relative("panoramic.png")); }