An object-oriented cross-platform programming language developed by Sun Microsystems.

learn more… | top users | synonyms

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
126 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 ...
0
votes
0answers
107 views

Shapefile of points to grid

I am looking for a method/prog/library(java) to interpolate points from a shapefile to a grid (file). I have seen arcgis can do that but i am looking for something free. More specific: i have ...
3
votes
1answer
106 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 ...
1
vote
0answers
89 views

Csv To Shape Error

I have found a usefull tool to convert csv files into shape files with geotools: http : // docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html#create-a-shapefile-from-a-featurecollection ...
1
vote
0answers
139 views

GDAL in Java fails on ReadRaster()

To summarize, trying to read a raster keeps giving me an UnsatisfiedLinkError that makes sense, but looking into the compiled GDAL jar, I don't know how to fix. gdal.AllRegister(); TheFile = ...
2
votes
2answers
218 views

How do I generate SLD programmatically?

Is there any api,pulgin for generating SLD? Note: I want to generate SLD programatically. I have property stored in database from which i would like to generate sld. I also want to generate various ...
2
votes
1answer
302 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 ...
0
votes
1answer
110 views

Can I use GeoTools with Gradle?

I am going to implement shapefile uploading from a webform, and ingestion into PostGIS. One problem I am having is that my project is using Gradle for dependency management. I am unfamiliar with ...
0
votes
0answers
105 views

Create shape file with point

I am trying to create a .shp file with Point shapes. I am following this tutorial: http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html I create the project, no syntax error and ...
1
vote
2answers
184 views

Where is the open Java client for ArcGIS Server?

Short of hacking the Android SDK into your Java project, are there any Java clients that can consume and work with ArcGIS Server services? e.g. create Feature Sets, Geometries, perform ...
1
vote
0answers
40 views

giving a java program access to network analyst calculations

I have a fire department simulator written in Java that simulates a year of fire department responses. There is a Java method/function that calculates time between two coordinates using a fairly ...
0
votes
1answer
146 views

getDestinationGeographicPoint() in geotools returns wrong coordinates in South/West

I am trying to calculate a coordinate given an azimuth, distance and start point. If my code uses an start coordinate in North/East quadrant, all goes fine. But, by using 0,0 coordinates, an azimuth ...
0
votes
0answers
33 views

GDAL could not initalize class gdalconstConstants

Sorry, another GDAL issue. Just got the GDAL wrapper successfully working in Java. All goes well so far, opening a file with gdal.Open(), got the georeference data from GetGeoTransform(). In the next ...
1
vote
1answer
840 views

OpenLayers - Show a WMS Layer from GeoServer

I'm trying to acesses with OpenLayers code an example of the embedded GeoServer map (the map of tasmania), which acts as a local server on my machine. However, every time I open the .html, the map ...
2
votes
1answer
39 views

How to generate features to test different implementations of LinearRing?

I have some code that throws the following exception: Points of LinearRing do not form a closed linestring and I want to check if my code is calling this correctly by supplying some features that ...
2
votes
1answer
408 views

GeoServer - Show Maps in a Application Java

How can I display a GeoServer's Map inside a Java's Desktop Application? I would like to display it inside a Java App instead of a browser. Is this possible?
1
vote
1answer
63 views

Redcap Shapefile Error

For some reason I am unable to import shape files in the form of point data to REDCAP. Do these data points need projected coordinate systems? I am aware that the sample size is 500 when double ...
1
vote
1answer
492 views

combine several polygon objects in one polygon object with geotools (is it possible)?

I have several polygon objects and I need to "merge (or combine or dissolve)" them toghether into one polygon object. With a GIS tool like Quantum GIS, I do this with Geoprocessing option "Combine ...
3
votes
1answer
99 views

Generate WFS-T requests

I want to create WFS-T update/insert/delete requests in my java application. As a result I want to save the requests in XML encoding, as specified by the OGC standard. Does someone know a library ...
0
votes
0answers
84 views

Is it possible to load multiple OSM regions in osm2po?

I need to use a few smaller European countries (100MB). Is it possible to do this in osm2po? Or can some other tool be used to merge the maps into one pbf file?
2
votes
1answer
418 views

Lambert93 to WGS84, IGN algorithms, longitude problem

I'm looking for a Java-based solution to convert coordinates from Lambert93 to WGS84. I found this, "lambert-java", which is an implementation of the algorithms (PDF) published by IGN (French ...
3
votes
1answer
903 views

Difference between ArcObjects SDK for Java and ArcGIS Runtime SDK for Java and ArcGIS Engine

What is the difference between ArcObjects SDK for Java and ArcGIS Runtime SDK for Java and ArcGIS Engine. I have ArcGIS Desktop 10.1 on my laptop. What do I need to create ArcGIS desktop applications ...
3
votes
1answer
255 views

How to Choose Geoserver and GeowebCache Configuration Options?

I have two Win 2008 R2 Servers currently dedicated to running one instance of Geoserver each. We are looking at setting up geowebcache. Win Servers have 2Gb Ram and they do nothing but run Geoserver ...
1
vote
2answers
913 views

ArcSDE 10: How to read/write to Oracle with ST_GEOMETRY using Java

I found the following in the deprecation plan of ArcGIS 10.2: ArcGIS 10.2 will be the last major release to support the ArcSDE SDK with the ArcSDE C and Java APIs. Today many other options are ...
0
votes
0answers
35 views

Can't see custom Java toolbox in Arcmap10.1

I am trying to use custom toolbox created in Java (ArcObjects) in ArcMap10.1. I have added my custom jar and libs folder in C:\Program Files\ArcGIS\Desktop10.1\java\lib\ext and starting ArcMap10.1 ...
0
votes
0answers
82 views

Routing from individual start point to individual destination point

I'm doing routing on android using OpenStreetMap. The routing is working well. But the problem is that I do not know how to use the individual points of the user. I use osm2po to convert the OSM data ...
0
votes
1answer
115 views

ArcGIS Custom Toolbox crashes ArcMap 10.0

I have prepared Custom ArcToolBox using ArcObjects in java. It was working fine before though was giving NullPointerException but this something java related error and that is fine. Later I have ...
0
votes
1answer
54 views

Problem running mvn install for geoexplorer

What's the solution to this: http://www.paste.to/MjU5ODE= I'm getting the same error on Ubuntu 12.04. Installed with: Java 1.6.0_27 (OpenJDK), Maven 2.2.1 and Ant 1.8.2 Is the Ant version the ...
1
vote
0answers
124 views

Why use C# rather than Java API of ArcGIS Engine (or vice versa)?

I'm going to lead a development of an ArcGIS Engine application and facing the choice mentioned in the title. We have all licenses to develop our application in C#, so Microsoft's licences are out of ...
1
vote
0answers
261 views

JTS - Java Topology Suite - Calculate radius from a given point

From point A, I want to check if a point B is within a certain radius from A. How calculate it usindo JTS? I tried this: Coordinate posicaoAtual = new Coordinate(-12.974900375893823, ...
0
votes
1answer
106 views

Spatial query without spatial database module

I have the following scenario: Oracle database without the space module. Application in JEE2 with the following architecture: -- Entity -- Persistence (DAO / JPA + JDBC) -- Business (BC) -- Vision ...
0
votes
2answers
201 views

Destop application using arcobjects library

I develop a destop application with following environment - 1) Java jdk version 6 update 25 (for 32bit ). 2) Java Arcobjects Library. 3) Window Xp. Its working smoothly on 32 bit Computer , my ...
0
votes
1answer
59 views

What does `findCloseEdges` do in osm2po?

I have something like this: int[] edges = graph.findCloseEdges(lat, lon, 1); // returns only one element RoutingResultSegment rrs = graph.lookupSegment(edges[0]); LatLon[] latlons = rrs.getLatLons() ...
0
votes
1answer
111 views

Get road type (clazz) in osm2po

Can I get clazz of a segment in Java? For example, RoutingResultSegment rrs = graph.lookupSegment(path[j]) How can I get rrs's clazz?
0
votes
0answers
74 views

Does ArcGIS (arcObjects SDK for java) support multiline labels using TextSymbol?

Is it possible to add multline labels using textsymbols in ArcGIS 10.1 (SDK for Java) in a 3d model? In my system, even the spaces are getting omitted, for a String s="this is \n war" Label ...
1
vote
0answers
27 views

examples for Text3dElement

i am working in arcgis10. in java. can you all provide me with links to some sample program of Text3dElement. til now what i have implemented is given below Text3DElement td=new ...
0
votes
0answers
61 views

unable to insert newline and spaces in textelement in java

i am working in arcgis desktop with eclipse in java. i have created a textsymbol and added it to a textelement which i need to add on another layer(the model is a 3Dglobe and not a map). i am able to ...
0
votes
2answers
294 views

Get selected features on ArcMap in arcMap Addin (eclipse)

I am building a custom arcMap Addin button which onclick event tells info about selected features. Following is my java class --- public class Break extends Button { /** * Called when the button ...
1
vote
1answer
57 views

Does charactermarkersymbol work differently in linux?

I have just started working in GIS. i am trying to project an aeroplane glyph font (character index=111) using charactermarkersymbol but unable to do it in linux. I am getting the same spherical ...
5
votes
4answers
370 views

Migrate in a new programming GIS language

The last five years I have been working with VBA and ArcObjects for developing a specific application within ArcGIS. That project that began around 2008-2009 carried out with VBA and ArcObjects which ...
0
votes
3answers
282 views

REST backend framework for routing?

I'm looking for a framework in Java or PHP to use it as backend for a mobile application. It should (if possible) implement REST services, geo functions for routing and CRUD services. I found the ...
12
votes
4answers
2k views

Geocoding API Comparison

Is there a good updated source for comparing existing Geocoding APIs (i.e. Google, Mapquest) and their features? I'm really interested in their language support as well. For example, Google has ...
0
votes
0answers
207 views

Getting Subtypes of feature Classes using arc Object Java

I am developing a tool to demonstrate subtypes of feature classes in a geodatabase. My code works until printing feature classes. Can anybody assist me by providing a right way to print subtypes of ...
3
votes
1answer
249 views

How to parse ArcGIS Server generated output XML?

I have a use case in which I need to parse the XML generated by an ArcGIS server, then push that data to another API. The ArcGIS server sits behind the firewall at our customer's site and exposes a ...
1
vote
1answer
124 views

Access Personal geodatabase using java

Following example through ESRI is to access the features of file geodatabase (GDB) , ...
10
votes
3answers
819 views

How to build a portfolio for a GIS/Java career path?

I have been a GIS Analyst for over 10 years and am currently studying java (50% through the course). My plan is to develop GIS applications mainly focused towards open source solutions. I would like ...
1
vote
1answer
395 views

Display Shapefile on website (Java or PHP)

i have to write an application where similar to Google Maps where i have to display a shapefile in a web application. My available technologies are Java (frontend framework: Apache Wicket) or PHP. It ...
2
votes
0answers
336 views

How to start developing with Jeppesen C-MAP?

I've just downloaded all the contents from the FTP of Jeppesen for their product called C-MAP CM93. I've been reading the documentation contained in the SDK folders, but I can't figure out how to ...
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 ...