@Test @Ignore public void testRealClient() throws Exception { final Double z = 3451.0; final RenderDataClient renderDataClient = new RenderDataClient("http: final CoordinateClient client = new CoordinateClient("v13_align_tps", z, renderDataClient, 1); final TileCoordinates worldCoord = TileCoordinates.buildWorldInstance(null, new double[]{49600.0, 135500.0}); final List<TileCoordinates> worldList = new ArrayList<>(); worldList.add(worldCoord); final List<List<TileCoordinates>> worldListOfLists = client.getWorldCoordinatesWithTileIds(worldList); Assert.assertEquals("invalid number of world lists returned", 1, worldListOfLists.size()); final List<TileCoordinates> returnedWorldList = worldListOfLists.get(0); Assert.assertEquals("invalid number of coordinates in first world list", 3, returnedWorldList.size()); final TileCoordinates returnedWorldCoord = returnedWorldList.get(0); Assert.assertFalse("returned world coordinates have error: " + returnedWorldCoord.toJson(), returnedWorldCoord.hasError()); Assert.assertEquals("invalid tileId returned", "150226193751108009.3451.0", returnedWorldCoord.getTileId()); }
public List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList) throws IOException { return renderDataClient.getTileIdsForCoordinates(worldCoordinatesList, stack, z); }
CoordinateClient { public List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList) throws IOException { return renderDataClient.getTileIdsForCoordinates(worldCoordinatesList, stack, z); } }
CoordinateClient { public List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList) throws IOException { return renderDataClient.getTileIdsForCoordinates(worldCoordinatesList, stack, z); } CoordinateClient(final String stack,
                            final Double z,
                            final RenderDataClient renderDataClient,
                            final int numberOfThreads); }
CoordinateClient { public List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList) throws IOException { return renderDataClient.getTileIdsForCoordinates(worldCoordinatesList, stack, z); } CoordinateClient(final String stack,
                            final Double z,
                            final RenderDataClient renderDataClient,
                            final int numberOfThreads); static void main(final String[] args); @Override String toString(); StackVersion getStackVersion(); List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList); List<List<TileCoordinates>> worldToLocalInBatches(final List<TileCoordinates> loadedWorldCoordinates); List<List<TileCoordinates>> worldToLocal(final List<List<TileCoordinates>> worldListOfLists,
                                                    final ResolvedTileSpecCollection tiles); List<TileCoordinates> localToWorldInBatches(final List<List<TileCoordinates>> loadedLocalCoordinates); List<TileCoordinates> localToWorld(final List<List<TileCoordinates>> localListOfLists,
                                              final ResolvedTileSpecCollection tiles); static List<TileCoordinates> loadJsonArrayOfCoordinates(final String path); static List<List<TileCoordinates>> loadJsonArrayOfArraysOfCoordinates(final String path); static List<Integer> getBatchIndexes(final int numberOfThreads,
                                                final int size); }
CoordinateClient { public List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList) throws IOException { return renderDataClient.getTileIdsForCoordinates(worldCoordinatesList, stack, z); } CoordinateClient(final String stack,
                            final Double z,
                            final RenderDataClient renderDataClient,
                            final int numberOfThreads); static void main(final String[] args); @Override String toString(); StackVersion getStackVersion(); List<List<TileCoordinates>> getWorldCoordinatesWithTileIds(final List<TileCoordinates> worldCoordinatesList); List<List<TileCoordinates>> worldToLocalInBatches(final List<TileCoordinates> loadedWorldCoordinates); List<List<TileCoordinates>> worldToLocal(final List<List<TileCoordinates>> worldListOfLists,
                                                    final ResolvedTileSpecCollection tiles); List<TileCoordinates> localToWorldInBatches(final List<List<TileCoordinates>> loadedLocalCoordinates); List<TileCoordinates> localToWorld(final List<List<TileCoordinates>> localListOfLists,
                                              final ResolvedTileSpecCollection tiles); static List<TileCoordinates> loadJsonArrayOfCoordinates(final String path); static List<List<TileCoordinates>> loadJsonArrayOfArraysOfCoordinates(final String path); static List<Integer> getBatchIndexes(final int numberOfThreads,
                                                final int size);  }