0
votes
0answers
22 views

Extract BoundingBox with Osmosis Java API

I'm am trying to use the Osmosis Java API to extract reasonably sized blocks from the OSM planet file using the BoundingBoxFilter. Note: I'm using maven Osmosis packages NOT the command line ...
0
votes
0answers
73 views

Nearest road in the vicinity of a point without queries (openstreetmap)

I know that many similar questions about map fitting have been asked. Everywhere there were answers about sql queries like this: SELECT ST_AsText (ST_ClosestPoint (pt, line)) AS cp_pt_line, ...
0
votes
1answer
122 views

Extract specific amenity Osmosis with Java api

I need to extract restaurants from a planet.osm.pbf file. I assume the best way to do this is with Osmosis, however I need to save this data in my own database format. (Not something standard like ...
1
vote
1answer
43 views

how to retrieve ATMs List from OSM

I am using this command to get the ATMs list osmosis --read-xml my_map.osm --tf accept-nodes amenity=atm --write-xml output-nodes.osm But it is giving the list of nodes and ways also...I want only ...
1
vote
2answers
268 views

Offline entire planet in Java Desktop app

Sorry if this question has already been asked, but I need your help. In program that we are developing we need to integrate maps. Here are the requirements that are put for integration: Maps should ...
5
votes
2answers
133 views

How to order points of a polygon?

I want to create a polygon, which represents the administrative boundary of a city. It is specified by a relation, which consists of ways <member type="way" ref="25657490" role="outer"/> ...
5
votes
2answers
425 views

Overpass XML query for finding all buildings inside a polygon

I want to run following Overpass QL query in order to get way IDs of all buildings inside a polyon: way(poly:"50.7 7.1 50.7 7.2 50.75 7.15")[building]; >; out ids; Since I'm using the osm-common ...
2
votes
0answers
349 views

Building java based desktop map application using embedded database such as spatialite

I am relatively very new to building GIS based applications and have a very limited understanding in this area. So I need some help in building a java based desktop application which would generate ...
5
votes
2answers
88 views

How to read all IDs of all ways inside a polygon?

I have an OSM map of a larger region. Inside that region is a city with a boundary specified by a polygon. I want to retrieve IDs of all ways (ideally - of all buildings) inside that boundary (inside ...
3
votes
1answer
1k views

How to use OpenStreetMap in Java?

I have a requirement of GIS to be implemented using Java. I have read the developer guide for OpenStreetMap but there is insufficient information for its setup technically. I am completely new to ...
2
votes
1answer
125 views

Easiest way to read roads, railroads, buildings from an OSM map

I'm prototyping a Java application, which uses an OSM map of a small city. I need to extract from the OSM map the coordinates of roads, railroads, power lines and buildings. At the moment I'm ...
3
votes
1answer
105 views

How to mark a particular point in MapPanel?

There is a component called MapPanel, which displays OpenStreetMaps. I want to mark some places on the displayed map, without changing the underlying map. Those marked places are identified by ...
2
votes
1answer
300 views

Get coordinates of a building with geocoding

I want to get the coordinates of a building with geocoding. At the moment I use the GeoCoder class for android to get from the selected address the coordinates, but these are not corresponding to the ...
1
vote
2answers
278 views

From OSM to shape. Parsing problem

I'm working at OpenStreetMap project for android at the moment. I want to retrieve OSM data from my app(nodes, markers and paths) and convert it to shape file (.shp, .dbf and .shx). Later, I'll load ...
2
votes
1answer
292 views

What is the best API to use GeoTools or uDig (for the context of my application)?

I am trying to develop a java application that displays : Google maps, Openstreetmap and Bing Map Data. So which is the best SDK to use in this contet Geotools or uDig ?
1
vote
2answers
587 views

looking for open source Java SE map viewer library that work with osm files or osm pre-downloaded tiles

I am new here and I hope I can find answers to my question here! I am developing a mapping platform for desktop, web, mobile (Android). I finally finished embedding mapping into my android software ...
1
vote
2answers
1k views

Collecting street data to populate a graph stucture for routing

I'm implementing a basic digraph with weighted edges for street routing in a small geo area (600mx600m). How and where can I get the required data to populate such a structure? I've been reading about ...
7
votes
4answers
6k views

How to build tile server from Openstreetmap data for beginner?

I am a beginner at GIS and I am developing a Java Application which needs a map. (The map would specifically be of just one city in the Philippines.) I have researched on different ways to do this and ...
2
votes
2answers
711 views

How to add a background map to a java project?

I'm new at GIS. I am trying to make a java application that can display a map with certain points. I have achieved this using the geotools library. However, I want to put the map from OpenStreetMap or ...
2
votes
0answers
473 views

How to limit viewing to map boundary on Android? [closed]

I have an offline map of a city displaying on Android. Since my map is just small, when you scroll beyond the the boundaries of the map you see only a gray screen and you will probably be lost and ...
6
votes
1answer
2k views

Find nearest POI of given GPS coordinates

I am new to GIS and need to achieve the following: Find the nearest train station or bus stop of given GPS coordinates in a Java application. Since there are many coordinates to be checked, an ...
2
votes
3answers
2k views

Starting a GIS project in java with OSM data

I am starting a new GIS project in Java. Till now, I used JTS and geotools to load shape files - these data were then displayed on a swing interface. For this new project, I would like to use OSM ...