Exemplo n.º 1
0
  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);
  }
Exemplo n.º 2
0
 @Override
 public Icon getIcon(final IGlobeApplication application) {
   return application.getSmallIcon(GFileName.relative("panoramic.png"));
 }