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

learn more… | top users | synonyms

0
votes
1answer
13 views

PermGenSpace error in Tomcat with geonetwork 3.0

I'm running a geonetwork 3.0.1 instance on tomcat7. Regularly, i.e. every few actions of my only user, my tomcat runs into a PermGenSpace error. This especially occurs during harvesting of other ...
0
votes
0answers
21 views

draw a map from encoded polylines

I'm using the google maps web services service to find a route. From the json response I parse it encoded polylines and store it on coordinates String. private String parseJson(String s){ String ...
0
votes
0answers
17 views

Use postgis functions in restful web service java

I am trying to access Postgis functions in Restful web service JAVA. I am using netbeans 8.0.2, Glass Fish, J2EE 7 to create web service, PostGres 9.2 and postgis 2.1.1. Connection to postgres is ...
1
vote
1answer
34 views

Spatial and property search

We have a lot of polygons(some of them contain holes) and there are also a lot of points inside different polygon, these data are processed as ESRI geodatabase format. Now we have to do some spatial ...
1
vote
2answers
34 views

library to create static maps (an image) with custom map features

Do you know if there is a small library (preferably in python or java) around that allows the creation of static map. Something where you can specific the URL of your TMS server, width and height in ...
1
vote
3answers
322 views

Create shapefile from data PostGIS or KML using Java

I'm working on a geographic information system project, whose products form shapefiles. I am using the Java programming language and a PostGIS database. Is there a way to generate a shapefile from ...
1
vote
1answer
931 views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
5
votes
1answer
71 views

Algorithm to find N nearest points to point

My situation is that i'm trying to build a mobile app, and find the x number of points closest to a users location that satisfy certain conditions that the user chooses on the front end. My current ...
1
vote
1answer
20 views

How to pass custom data in GeoJSON point?

I have an application, which creates a GeoJSON stream on the server, which is then rendered on the client (using CesiumJS). GeoJSON is created using GeoTools. I want to pass some custom data to the ...
1
vote
0answers
8 views

Geoserver: Exception when importing KML

I have a KML that I would like to import into Geoserver. The KML originates from a Geoserver WFS getFeature Request itself and looks like this: <?xml version="1.0" encoding="UTF-8" ...
0
votes
1answer
197 views

osmosis library in java application

I want to do a navigation application OSM PBF files. I'm using the pbf files from the osm website. I was looking for a way to access the pbf files, I found that it can be accessed using the osmosis ...
1
vote
1answer
24 views

How to select from geometry column in postgresql?

I've got a table which it has a geometry column filed by some point (ex. "POINT Z (116.309627 39.991285 148)"). now I want to select point's id from the table. I wrote follow sql Code but I force an ...
2
votes
1answer
32 views

How to query a JTS QuadTree using a query envelope with holes

Hi I have a Java Topology Suite QuadTree containing Points, now I'm trying to query the QuadTree with a polygon that contains a hole. Here's how I create the polygon. //Method will create a ...
0
votes
0answers
22 views

Can we integrate QGis with Java? [duplicate]

Inegrateion of java with Qgis and its extensions? In case, If integration is possible can we use multi-threading qgis and java?
0
votes
1answer
56 views

GeoTools decode FeatureType

Encode: 1- A way of encoding a FeatureType is : SimpleFeatureType TYPE = DataUtilities.createType("Location", "geom:Point,name:String"); GML encode = new GML(Version.GML2); encode.setBaseURL(new ...
0
votes
1answer
34 views

Java library to compare shape files

I have county shape file & school district shape file. Once each school district file is overlay on county shape file I would like to know how much % of area of school district file covered by ...
2
votes
1answer
494 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
0answers
16 views

Whitebox GAT not starting under Windows 10 - General JAVA or Whitebox problem?

I am currently running the DEM preprocessing on a relatively large (50000 km2 at 30 m resolution) and steep DEM. The objective is to extract the stream network and some morphologic attributes (e.g., ...
3
votes
1answer
26 views

Add Features from KML to a GeoPackage using GeoTools

Using GeoTools v13.2 I need to add features to a GeoPackage from KML. So far I can get the features in a SimpleFeatureCollection which can be added to the GeoPackage: public void ...
1
vote
0answers
28 views

Creating shapefiles using java?

I have a running java service which gives me a count corresponding to every 5-digit zip code in Newyork state. Now i want to feed this input to QGIS programatically so that the color of every polygon ...
0
votes
0answers
9 views

Implementing WaterML2 output in my web service

I'm trying to implement WaterML2 output for my sensor network webservice. Currently I report sensor data where the data includes IDs for each sensor, time of sensor readings, units and, optionally, ...
1
vote
1answer
37 views

Testing if Geometry is convex using JTS?

I'm using the Java Topology Suite and I'd like to efficiently check if a Geometry (a Polygon in fact) is convex or not. I currently do if (geometry.convexHull().equals(geometry)) but obivously that ...
0
votes
0answers
29 views

How to transform ENVI Hdr to PNG using GDAL?

I am trying to transform a ENVI Hdr image into a PNG (or other RGB image format) in order to visualize this image. I am selecting the three default bands (55, 41, and 12). I am using GDAL by using ...
4
votes
7answers
6k views

How to get started on web GIS development with Java? [closed]

I am very new for GIS, I know java web development. I want to develop a GIS web application in Struts, can you suggest me how to start? My requirement are as - Any API/Tool should be open source. ...
2
votes
2answers
74 views

How to calculate the distance between a line and a point (using lat/lon coordinates)

In my Android app, I need to calculate the distance from a point (the device's location, which is a lat/lon coordinate) to a line (defined by two lat/lon coordinates), and get the result in meters. ...
0
votes
1answer
49 views

What is the best possible configuration for opensource GIS web application to generate a war file?

I have developed a GIS web application using OpenGeoSuite for Electricity Asset Management System. It uses Geoserver, PostGIS/PostgreSQL, PHP, GeoExplorer for normal functioning. However, I need to ...
0
votes
1answer
40 views

Is Geoserver mandatory for developing GIS web application in Java using Ol4JSF in NetBeans IDE?

I am developing a GIS web application which involves querying and creating map layers dynamically (like page getting refreshed for every 5 minutes) and also static querying etc... This application ...
10
votes
7answers
1k views

Java, GIS knowledge…What next?

I know programming in Java and I am familiar with GIS concepts as well. I do GIS programming using javascript and PHP. I want to now do it using Java. How should I go about it? PLease let me know ...
1
vote
1answer
115 views

How to use ArcGIS in JavaFX?

Can anyone help me use ArcGIS in JavaFX. I have a sample code but it's in swing application. Sample code for creating a map I would like to use it in JavaFX. Any suggestions?
1
vote
0answers
31 views

How to get speed and acceleration from trajectory data?

I am using Java and netbeans as a IDE to develop a project. I have got some trajectory data by applying a spatial query. My question is, how can I get speed and acceleration for these trajectory data? ...
0
votes
1answer
53 views

How do you calculate latitude and longitude of a point in a static map?

Background: I have generated a static map (map.png) of a particular city using mapnik and osm data of the highest zoom level. I am able to zoom in and zoom out successfully using my Java program. It ...
2
votes
1answer
280 views

Read DGN file in java or c#

I'm looking solution to read DGN file in java or c# without any success. Gdal makes many problem and doesn't support all element eg. complex element. Does anyone know of a library that supports the ...
2
votes
1answer
291 views

Advice needed on JavaFX Map Rendering

A few months ago I inherited an old (10+ years) Java Desktop application that used maps and simple icons to represent point data to various users. The application was writted in Swing and used Esri ...
0
votes
1answer
24 views

GeoTools modify a FeatureType to change its name

I have a featureCollection and I want to save it into PostGIS dataStore. So I'm going to create a database table by geotools. I want to name my table "ali". But I can't rename the schema! DataStore ...
0
votes
1answer
32 views

Using Leaflet: How do I get it to display one popup based on a condition?

Using Leaflet: How do I get it to display one popup based on a condition. See below. basemap_0.addTo(map); var layerOrder=new Array(); function pop_thunder(feature, layer) { ...
3
votes
3answers
50 views

Calculate distance with JTS

I'm trying to get the distance between two points with JTS. The problem is that this function with JTS new Coordinate(Lon1,Lat1).distance(new Coordinate(Lon2,Lat2)) Is giving a different result ...
0
votes
0answers
16 views

Clear usb gps logger with nmea or sirf

I am trying to clear a Canmore gps logger with hex commands but I dont understand how to do this, I am using java but I am also using other programs like RealityTerminal, but I dont understand how the ...
1
vote
0answers
38 views

Query all Object within n kilometer Radius with Hibernate Spatial?

I use hibernate spatial attach a geolocation to a car. My card domain class looks like this: import com.vividsolutions.jts.geom.Point class Card { String name Point location } My program is ...
0
votes
2answers
147 views

GeoServer failed to start on Tomcat 8.0.24

I am trying to get GeoServer up and running on an Amazon EC2 instance but it does not work. I am using Java 8 (Oracle) and Tomcat 8.0.24. The thing is I have got the same stack up and running on a ...
0
votes
1answer
135 views

Extending ArcGIS Desktop using Python vs Visual Basic vs Java? [closed]

I have to extend the features of ArcGIS. I've been asked to create a model written in Python that can run out of ArcGIS 10. This model will have a simple user interface where the user can drag/drop ...
0
votes
1answer
54 views

Points contained in envelopes that cross date-line - java

I'm using the ESRI Geometry Java API https://github.com/Esri/geometry-api-java I want to construct an envelope and see if it contains certain points. It's possible the envelope crosses the ...
3
votes
2answers
621 views

What software would be useful to create General Transit Feed Specification (GTFS)?

I am doing a project in which i am required to create GTFS. I look at transit google developer forum which provide a format to create feed but that completely have to done by hand (we have to write ...
2
votes
3answers
6k views

Displaying Google Maps and OpenStreetMap map in Java?

Is there any Java API that is like OpenLayers ? I would like to display google Maps and Openlayers Maps in a java application
2
votes
1answer
25 views

JAVA GIS create shapefile from FeatureLayer

The title kind of saids it all. I am attempting to export a featurelayer to a shapefile and am not having any luck finding a library which includes this functionality or relevant code to see where to ...
0
votes
1answer
29 views

How can I determine elevation levels for a region in Java?

I need to find out the elevation levels for a certain region (center is located at 132.159633, 43.350116). For this purpose I went to the Elevation finder and downloaded there the relevant part of ...
2
votes
1answer
508 views

Getting DataStore Problem with Geotools

I recently found an issue with Geotools and getting the datastore for a shapefile. If I try: FileDataStore dataStore = FileDataStoreFinder.getDataStore(file); -or- Map connect = new HashMap(); ...
1
vote
0answers
18 views

Making feature layer selectable in ArcObjects Java without getting AutomationException 0x80004005?

I am currently making a FeatureLayer from a resultset. The feature layer seems to work properly and will display on the map. However when I choose "select all" on my feature layer I get the ...
1
vote
2answers
73 views

How to programmatically import a Shapefile into Oracle DB using Java?

What's the best approach to import a user uploaded shapefile into an Oracle DB? The dbf, shx and shp files of the Shapefile come in a ZIP Archive. Currently, we unzip programatically and then parse ...
0
votes
0answers
17 views

How can I use geoserver's user management for my application

I'm developing a gis application with java. My layers are in geoserver. Layers have different permissions, some layers have public permissions and some of them have private permissions. for private ...
2
votes
1answer
62 views

How can I integrate my application security with GeoServer security

I'm going to develop a map server with my own logic and entities. It will have a Postgres database, user management, specific layers with certain types, WFS, WMS, etc. I'm going to use springframework ...