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

learn more… | top users | synonyms

2
votes
1answer
110 views

UnsatisfiedLinkError caused by org.gdal.ogr.ogrJNI.GetDriverCount()

I am developing in Java on Windows 7 with Eclipse (Luna). I am using gdal for some ogr processes and running the application from eclipse is fine, but running from command line on the same machine ...
1
vote
0answers
102 views

How add two coverages with different bounding-box and different resolution using geotools

I'm developing a Java application with some spatial analysis operations. One of the operations is to add two coverages. But how can I add two coverages with different bounding-box and different ...
0
votes
0answers
172 views

Calculating intersection between lines with GeoTools (java)

I have ArratList<Segment> (N segments - array size is N) when: public class Segment { Node vertex_1; Node vertex_2; } public class Node { double latitude; double longitude; } ...
1
vote
0answers
44 views

Create compressed GeoTiff in Java

I've got a typical two-dimensional array in Java with values which represent a grid. Rows, columns, coordinate system (latlon), origin and cell size are known. I am able to export this data as ASCII ...
0
votes
0answers
272 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 ...
1
vote
1answer
235 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
225 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
76 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 ...
3
votes
0answers
64 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" standalone="yes"...
5
votes
1answer
664 views

Algorithm to find N nearest points to point?

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 solution is to ...
1
vote
1answer
129 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
212 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
23 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
210 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 ...
3
votes
1answer
91 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., ...
1
vote
0answers
48 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 (...
3
votes
1answer
90 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 ...
0
votes
1answer
41 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
2answers
289 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 ...
0
votes
0answers
56 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 ...
2
votes
1answer
109 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
1answer
144 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
275 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 ...
1
vote
0answers
65 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
272 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
2answers
296 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. I'...
1
vote
1answer
86 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
248 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) { ...
0
votes
0answers
35 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 ...
3
votes
3answers
372 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 ...
2
votes
1answer
501 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 ...
1
vote
2answers
1k 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
87 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
43 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
0answers
45 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 ...
1
vote
2answers
683 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
1answer
81 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
0answers
144 views

Establishing direct connection to ESRI geodatabase on Oracle hangs while not in debug mode

Recently I have been trying to establish direct connection to oracle geodatabase using Java API. The problem is, that when I execute the code, the connection works fine only in debug mode when I ...
3
votes
1answer
142 views

How do I produce a GeoJSON with 1 point at a certain lon/lat?

I need to create a GeoJSON string, which contains exactly one point at lon/lat 132.159633, 43.350116. I'm trying to use GeoTools 12-RC1 for that. Let's say I have following method, which is supposed ...
1
vote
0answers
78 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
0answers
187 views

How can I manage geoserver requests and my page requests in web.xml file? [closed]

I'm developing an GIS application. I need wfs and wms protocol in my application. I want to use Web Feature Module, Web Map Module and Geoserver Web Modules of Geoserver's modules. For using these ...
0
votes
1answer
282 views

How to do a coordinate transformation with EPSG codes in CTS?

Let's say I want to convert the following WGS84 (EPSG:4326) coordinate to UTM32N (EPSG:25832): 54.321, 9.876 Is there any tool to reproject x,y coordinates, apart from Proj4? links to the CTS wiki. ...
0
votes
1answer
641 views

What simple and light Java library to use for WGS84 to UTM conversion?

Geotools and Geotoolkit are huge and complicated. CTS (1.3.3 from Maven) failed on me by not even being able to run its own test example (slightly modified https://github.com/orbisgis/cts/blob/master/...
1
vote
0answers
36 views

How do I add my code to Geoserver?

I get geoserver 2.8-SNAPSHOT code from github. I delete some madules of it. Geoserver developed with Spring framework, Now I want to add my Controllers to this project. Some of My controllers have ...
2
votes
2answers
119 views

Can I use “Web Map Service Module” and “Web Feature Service Module” of Geoserver in my project?

I'm developing a GIS application with java Spring Framework and GeoTools library. I have some vector layer. I want to get this layers with wms and wfs protocols. I've downloaded geoserver code. It ...
2
votes
1answer
125 views

Integrating 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 ...
2
votes
2answers
204 views

Using Geotools: How to convert these strange coordinates from a shapefile into regular lat and long?

I use this dataset from the European Union: http://www.eea.europa.eu/data-and-maps/data/administrative-land-accounting-units Opening the shapefile with Java' Geotools, I see coordinates like: ...
1
vote
0answers
237 views

lat lon to ease-grid 2.0 using proj4j

I’d like to use PROJ4J to project wgs84 lat lons to the Equal-Area Scalable Earth (EASE) 2.0 Grid. It seems the EASE 2.0 grid uses the Behrmann projection which is just an Cylindrical equal-area ...
0
votes
0answers
54 views

How to access an ArcGIS Server secure service from java

I want to call an ArcGIS Server service through Java. The service is locked and only the publisher and administrator can access it. If I know the credentials, what sort of authentication should I use?...