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

learn more… | top users | synonyms

1
vote
1answer
19 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
7 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" ...
5
votes
1answer
68 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
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
32 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 ...
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., ...
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 ...
3
votes
1answer
25 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
0answers
8 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
32 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
28 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 ...
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
1answer
48 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
39 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
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
52 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
73 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
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) { ...
0
votes
0answers
15 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
47 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 ...
1
vote
0answers
35 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
134 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
28 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
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
0answers
15 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
65 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
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
0answers
51 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
47 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
15 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 ...
0
votes
0answers
38 views

Gdal Polygonize Java

I tried to use the gdalPolygonize function within in java. What I did Installed gdal-111-1800-x64-core from the following link ...
1
vote
0answers
24 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
51 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
88 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 ...
0
votes
0answers
33 views

How to read/write a DGN file with java?

I want to read/write a DGN file with java code. Is it possible?
1
vote
0answers
28 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
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 ...
0
votes
0answers
48 views

Exception access violation while executing Java ArcObject application

I have developed an visual application using ArcObjects SDK for Java 10.2 which worked well until yesterday. Since, I'm facing a fatal error (full trace below) while I don't feel I have changed ...
1
vote
2answers
103 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: ...
0
votes
0answers
23 views

Merging - Aggregation of Rasters

I'm a beginner in Java and a geomatics student. I'am using IntelliJ and I work in Java. I create two raster with the BufferedImage Java class. Raster1 Raster2 These images show for raster1 the ...
1
vote
0answers
110 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
37 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 ...
0
votes
0answers
14 views

How can I get back to the Feature that my Geometry is the geometry of?

Let's say I have some Feature and just got its Geometry out of it. Geometry geometry = feature.getGeometry(); Is there a way to get back to the "originating" feature if I did not have the variable ...
0
votes
1answer
58 views

Run the GUI of JTS 1.12

I've got an error in JSTS (JavaScript Topology Suite) library based on JTS (Java Topology Suite) v1.12 (r405). But there is no error in the last build of JTS on the same test case. So I want to check ...
0
votes
0answers
29 views

xml Response Document into OGC-WPS standard: a execute java process solution

I'm implementing some java process into Geoserver OGC-WPS standard. I start with the following simplest code: package org.geoserver.wps.nais; import org.geoserver.wps.gs.GeoServerProcess; import ...
0
votes
1answer
440 views

How can I see specific location on java desktop application?

I want to see a desired lat/lon point on the google maps on my java desktop application. I made some search so I think google map API is something which I looking for. Am I right? and Is there any ...
1
vote
0answers
25 views

Grow area in one direction

I am using GeoServer WPS process to process two geometries. I want to expand one of the geometries in the direction of the other. So far I am using the .buffer function but it expands the geometry in ...