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

learn more… | top users | synonyms

1
vote
2answers
378 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 ...
0
votes
0answers
115 views

configure mozswing in Java

I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. My web map application is loading through "mozSwimg" in Java. While running application i'm ...
0
votes
1answer
148 views

Filter Vector Layer Features

I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. I have added some point features in one vector layer. It has id, name, address, etc. Can I ...
0
votes
0answers
22 views

Hotlinking Images using PickListener(MOJO)

I have a class class MyPickAdapter implements PickListener { public void beginPick(PickEvent pe) {} public void endPick(PickEvent pe) {} public void foundData(PickEvent pe) { } }; ...
1
vote
1answer
523 views

why I can not run hibernate-spatial (in eclipse)

I have a problem with Hibernate Spatial. I followed the tutorial 4.x, and I created my project using maven. after correcting some minor errors in pom.xml and in persistence.xml, executing the project ...
1
vote
1answer
116 views

GWT-OpenLayers - BoundingBox selection

I'm searching for a way to get the bounds of a bounding box a user can drag on a map with gwt-openlayers but i can't figure out how to translate the javascript stuff to the javaside of the wrapper ...
0
votes
2answers
404 views

Converting WKT to WKB

How can I convert a WKT string to a WKB byte[] in Java using postgis functions? I need to save that WKT string in a postgis database (geometry column. Thanks
0
votes
0answers
167 views

Looking for java (or python) APIs to read shapefiles

Consider a work flow which receives a data field, e.g. “basemap” as shown in the image, and fills polygons with color on the basis of its numeric values. I am interested in java programming to carry ...
1
vote
2answers
176 views

How to extract common outline of multiple polygons with code?

I'm not really asking for a chunk of code to do this, but more of an algorithm I can work with myself. For example, this is the state of Maine, obviously, and I have the points of each county ...
0
votes
2answers
126 views

MS4W (MapServer 4 Windows) - version 3.0.3 Crashes JVM and Tomcat frequently. How to fix this?

I am using MS4W (MapServer 4 Windows with Java Mapscript) - v 3.0.3 for a GIS web application hosted over Tomcat 6.0.33 with Java jdk1.6.0_13 and PostgreSQL 9.1 with PostGIS 1.5.2 @ the database end. ...
0
votes
0answers
182 views

How to define a BoundingBox when using GDAL's WCS Driver (Java API)?

Is it possible to define a bounding box when requesting a coverage subset using the GDAL WCS Driver, accessed using GDAL's Java API? I've read several mailing lists and related posts on ...
3
votes
0answers
327 views

Hibernate Spatial - 'Invalid endian flag value encountered' Exception

I'm trying to run a simple query in Hibernate Spatial 4.0 on PostgreSQL 9.3. I have a number of objects in a table with latitude/longitude values, and I'm trying to query objects that fall within a ...
1
vote
0answers
110 views

Hibernate Spatial - Query within an X kilometer radius?

I am new to Hibernate Spatial, and am trying to perform a simple query of objects within a given radius. I've created a number of entries in my database with properties corresponding to a latitude ...
3
votes
1answer
530 views

GeoTools WFS Feature retrieval

I am trying to use geotools to retrieve the list of features served by a WFS. I am following the tutorial provided at http://docs.geotools.org/latest/userguide/library/data/wfs.html. The code that I ...
0
votes
1answer
923 views

How to calculate centroid of a polygon defined by a list of longitude/latitude points? [duplicate]

I've imported some polygons (ways) from OpenStreetMap and now want to calculate the centroids of them. For this purpose I wrote following code: final List<Point2D.Double> points = ...
1
vote
1answer
29 views

Restricting access to geoserver module

I built an extension module for Geoserver 2.5 using Maven and Wicket. It places a Label to the left of the navigation list that calls a HTML-Page in Geoserver when clicked. It looks and works as it ...
5
votes
2answers
166 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
566 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 ...
0
votes
1answer
81 views

ArcSDE Java API: Find centroid of SeShape object?

I've inherited an ArcSDE 9.3 Java app that needs some fixing. The basic task is to find the centroid of a polygon retrieved from an SDE geodatabase, but lately it's been returning the 0th vertex ...
2
votes
1answer
139 views

Create image (TIFF/PNG) from geodetic (lat/long) data

Using Java, I need to render a bunch of geodetic data to an image, ideally TIFF or PNG. Specifically this is weather data, with each sample having a latitude, longitude, and amplitude value. I'd like ...
2
votes
1answer
177 views

netCDF-java has trouble reading this netCDF file(format) and fetching values from the latlon dimension

I'm developing an application where I need to extract variable-values from netCDF files. I'm processing several different formatted netCDF files and now one format seems to be creating some issues. ...
2
votes
0answers
405 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 ...
2
votes
1answer
176 views

geotools parsing kml with multigeometry only gives me first geometry

I'm trying to parse the states.kml file (http://docs.geotools.org/latest/userguide/_downloads/states.kml) on the geotools website using the following code: Parser parser = new Parser(new ...
5
votes
2answers
93 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 ...
1
vote
0answers
139 views

Getting tiles from WMTS document

I was wondering if there is a library which I can use to retrieve TileMatrix/Tile information from a WMTS Capabilities document. I have been trying to use geotools but it seems as though it does not ...
0
votes
2answers
327 views

storing images in mysql from WebGIS applications

I'm a complete amateur at writing code. I would like to make an application for storing LNG, lat, and other data, as well as images in mysql. I've set up, I made a separate application for storing ...
0
votes
0answers
82 views

import tile into PostGIS through java dll

i have used this command to import tiles from directory to postgis data base but it show error in command line please help me if any one know ?. thank advance to share knowledge C:>java -jar ...
1
vote
0answers
29 views

How to reproduce the gdal utility programs in Java by GDAL Java bindings [duplicate]

Can anyone tell me how can I reproduce the gdal utility programs gdal_translate, gdalwarp and gdal2tiles in java by GDAL Java bindings? Thanks!
1
vote
0answers
120 views

How to use ArcGIS to reverse geocode and get road segment number?

I am now in a project which need to make reverse geocoding , namely ,given the latitude and longitude(assumed that the location is in a street), I want to get the road segment it is located in. What I ...
3
votes
1answer
2k 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
146 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
111 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
120 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
102 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
160 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
271 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
328 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
160 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
118 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
211 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
161 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 ...
1
vote
1answer
1k 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
40 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
507 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
69 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
618 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
113 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
104 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
570 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 ...