Skip to main content

Questions tagged [java]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
43 views

GeoServer Tomcat 302 redirect loop or 500 error after attempted upgrade

I'm upgrading a dev instance of Geoserver 2.22.2 to 2.25.2 which is running under Tomcat 9. I can only reach the instance via HTTP. If I leave the default <session-config> in place in my webapp'...
Tom Chadwin's user avatar
  • 5,862
0 votes
0 answers
22 views

Issue with Opening Sentinel-1 Product in SNAP: GDAL Data Type Error

I am encountering an error when trying to open a Sentinel-1 product in SNAP (Sentinel Application Platform). The error message is as follows: I am looking for guidance on how to resolve this issue. ...
DMAGAS SENAVIRATHNA's user avatar
-2 votes
1 answer
27 views

Why are my layers not showing up in MapContent?

I'm entering the last few hours to defend my thesis (for college). I have written everything, but a huge problem is happening, why are the Layers not displayed when I add them to the MapContent from ...
Sergej Lav Bojanić 2022's user avatar
-1 votes
1 answer
32 views

Why is my CursorTool not working?

Now I want to draw lines, and I tried the advice from @ianturton, but the extension of CursorTool doesn't work for me. The onMouseClicked method does nothing when the mouse is pressed, I check this by ...
Sergej Lav Bojanić 2022's user avatar
0 votes
1 answer
35 views

GDAL-info with Java bindings not working correctly

When making a gdalinfo call on a drone-photo via the GDAL java-bindings api, the resulting string is sometimes being cut-off prematurely. I.e. the last part of result is missing. However if I run the ...
PeteHegn's user avatar
0 votes
2 answers
76 views

Identify outer wall of the floorplan or building [closed]

For the floor plan of the building with 2 rooms (it can have more as well) Is there Python or Java library which I can use to identify outer-wall (facade) of the building as polygon (a closed shape ...
Arpit's user avatar
  • 111
0 votes
0 answers
46 views

Creating constrained Delaunay triangulations for polygons

I have a set of polygons, some of them are connected, but most are not. Some of them are convex, some are not. Now I want to build a navigation mesh based on the polygons, and I find most of the ...
giser's user avatar
  • 761
0 votes
1 answer
30 views

How to calculate the shortest geodetic(orthodomic?) distance from a Point to LineString using GeoTools?

First of all, sorry if used wrong terms. I have a LineString on and I need to calculate the shortest distance to it from a Point using java GeoTools library. I don't need just geometric distance, ...
acanthite's user avatar
1 vote
0 answers
46 views

Transforming from one CRS to another in Java

I'm trying to have some code that is able to convert a 3D point from one CRS to another using Java. I want to be able to convert data from a compound CRS to another: for instance, a source CRS based ...
linx's user avatar
  • 19
0 votes
2 answers
45 views

Cannot parse OGC WKT2 file

I am trying to parse a OGC WKT 2 string downloaded from https://epsg.io/5822 (shows in the Export - OGC WKT 2 section of the page) I tried to parse it using geotool's org.geotools.geometry.jts....
Vladimir Smogitel's user avatar
0 votes
0 answers
28 views

Can't launch GeoServer on my Mac

Starting my career as a GIS dev, I'm dealing with problems on GeoServer. I have jdk version 1.8.0_402 installed on my MacBook. I'm using Tomcat 10.0.8, the last version launched which supports JDK ...
Tulio Assad's user avatar
0 votes
1 answer
40 views

How to discard midpoints or only get borders of polygon

I have a List of LatLng objects that I use to make a polygon to represent a road with a buffer, but sometimes exist returns as next image: shared typescript implementation: The points in this area ...
tracking Systems's user avatar
1 vote
1 answer
31 views

Java API for changing Tile Caching settings in GeoServer

I am looking for Java APIs to change the highlighted part in the image in the Tile Caching tab in the configuration of a layer. This is the tab. This is the filter function that I am interested in. ...
Luigi's user avatar
  • 113
1 vote
1 answer
82 views

GeoNetwork 4.2.8 and Azure Kubernetes Service catalogue-data not persisting

I am trying to run GeoNetwork 4.2.8 on Azure Kubernetes Service but am experiencing an issue with the catalogue-data not being persisted when the pod is restarted. In Kubernetes I have created a ...
oport's user avatar
  • 13
0 votes
1 answer
73 views

'java' is not recognized as an internal or external command, operable program or batch file

When I open the Windows 10 command line and write "java -version" at the cursor, the response is: java version "1.8.0_391" Java(TM) SE Runtime Environment (build 1.8.0_391-b13) ...
MLourdes's user avatar
  • 198
0 votes
0 answers
46 views

How I can know if a point is inside of polygon from Android using Java

I have an app that use osmdroid and previously I make a polygon that is represented as array of points latlng. I would like know if a point is inside of my polygon from Java Android. Any option for ...
carlos vazquez's user avatar
0 votes
0 answers
108 views

Oracle Spatial operator SDO_ANYINTERACT does not work well

DB: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 I have a table called GRID_POINT_BOUNDARY and one column I am using SDO_GEOMETRY Oracle Spatial type. ...
Kensin's user avatar
  • 1
0 votes
0 answers
17 views

Maven error compiling GeoServer custom WPS [duplicate]

I'm attempting to build a custom GeoServer WPS plugin using Maven but I'm encountering issues during compilation. I've updated my POM file and added all the required dependencies, including GeoServer ...
Niko's user avatar
  • 1
0 votes
1 answer
72 views

Maven Dependency Resolution Issue for GeoServer GS:WPS

I am encountering an issue while building a GeoServer wps using Maven, and I could use some guidance. Error Description: I am attempting to build a GeoServer wps using Maven (mvn clean install). ...
Niko's user avatar
  • 1
1 vote
1 answer
66 views

How i can get the intersection of lines in java?

I have two rect lines Line 1 with coordinate1 and coordinate2 Line 2 with coordinate1 and coordinate2 I need found the intersection of lines. i tryed using funtions but the result is not real :( ...
carlos vazquez's user avatar
0 votes
0 answers
44 views

Add database connection DB2/400 (iSerie / IBM i)

We are finding it difficult to connect to the DB2/400 database, it is the same DB2 for IBM i. Usually we use a Java package called jt400.jar that encompasses the JDBC driver to DB2 for IBM i. The ...
MARCELO's user avatar
2 votes
0 answers
154 views

Format used by GDAL ReadRaster

I'm trying to display a GeoTIFF raster in a Java SWT widget. Here is a sample of the original TIFF file, opened in QGIS: I'm using GDAL to get the information out of the image, but I'm struggling to ...
Hans's user avatar
  • 21
0 votes
1 answer
34 views

Java - GeoServer WPS - how to return TIFF file?

I'd like to return a TIFF created with a Java WPS process (this part works fine) but GeoServer seems don't recognize byte[] or File response type as I expected. If I return a base64 encoded string, ...
Gaet's user avatar
  • 309
1 vote
0 answers
57 views

Geotools coverage warp

I have some small JPEG images that I wish to load as an image mosaic. I have programmatically created JGW files for each JPEG, and the files display correctly in QGIS. However, the affine transform ...
Chris Morgan's user avatar
0 votes
1 answer
36 views

Does Geotools support isobaric and isotherm lines drawing?

Is there any way to draw isobaric and isotherm lines with Geotools? Are there any examples how to do this in the official documentation or not?
rishab's user avatar
  • 3
0 votes
2 answers
368 views

GeoServer 2.24.0 JavaError at accessing ServerStatus

i recently set up geoserver 2.24.0 with Eclipse Temurin JDK with Hotspot 17.0.8.1+1 (x64) on a newly installed Windows Server 2019 Standard (fully patched). The installation succeeded without any ...
Holgi's user avatar
  • 9
0 votes
2 answers
107 views

Array: No numbers in 'values', must provide a type

I'm trying to extract the pixel value of the first image of the Modis Aqua chlor_a product but when applying the code I used to do this with the Landsat dataset I'm having an error : Error in map(ID=...
Aurélien Lengrand's user avatar
0 votes
1 answer
43 views

Exporting pixel value of a dataset

I'm trying to export the value of a dataset for each pixel. I made it this way : var chloa_4kmOnly = chloa_4km.select("Chloa_OC3").clip(geometry) print(chloa_4kmOnly) var chloaFeatures = ee....
Aurélien Lengrand's user avatar
0 votes
1 answer
127 views

Expected type : List<element> Actual type ; List<Float>

I'm facing an issue while extracting each pixel value of a band: And here's the code I'm using : var chloaFeatures = ee.FeatureCollection(ee.List(chloa_4kmOnly .reduceRegion({ reducer : ee....
Aurélien Lengrand's user avatar
0 votes
0 answers
70 views

How to print a map with gridlines and lables with geotools

I have create a map with geotools but the gridlines i don't know how to lable it. I saw a similar links Print a map with Geotools by @Youssef but did not get the full source code. Here is my code. 1. ...
John Assiamah's user avatar
0 votes
1 answer
84 views

Get the IP address of GeoServer from WPS

I am creating a custom WPS process. The process needs to do WFS and REST requests to the same server (GeoServer). Currently, the client needs to provide the IP and port of the server as a parameter. ...
Vignesh M's user avatar
0 votes
0 answers
29 views

Geoserver WMS breakpoint

I just started developing geoserver extension and i need help about WMS requests. I want to print hello to the terminal when a WMS request comes. Context of my class: package org.geoserver.wms.cluster;...
Furkan's user avatar
  • 1
2 votes
1 answer
52 views

Geospatial data quality check and business rules in GeoServer WFS-T

I need to check Geospatial and alpha numeric data quality and check spatial business rules before to update/insert/delete the data. Actually we have postgis and geoserver deployed and java devloppers ...
jlSta's user avatar
  • 1,096
1 vote
1 answer
1k views

Solve invalid endian flag value encountered exception on PostGIS and Quarkus

I am trying to run a simple example with PostGIS but I am getting the error: Caused by: java.lang.NoSuchMethodError: 'void org.hibernate.dialect.PostgreSQL81Dialect.registerColumnType(int, java.lang....
Luciano Borges's user avatar
0 votes
0 answers
111 views

How to convert byte array to a shapefile in Java

I have a function that is calculating/creating Isogonic lines for certain area. This function returns array of type byte[]. I would like to convert this array into a shapefile (not single .shp file ...
Max's user avatar
  • 1
0 votes
1 answer
81 views

GeoTools error NumericConverterFactory and GeoServer 2.22.2 with Java 17

We've upgraded to GeoServer 2.22.2 (GeoTools 28.2, Java 17, Postgres 12.7 RDS, PostGIS 3.0.3, Tomcat 9.0.10). Everything runs well except that we get a GeoTools error for a WFS request with a Filter ...
Aleda Freeman's user avatar
0 votes
0 answers
52 views

MaxEnt error java.util.NoSuchElementException

I am new to using MaxEnt (and Java) and after selecting my presence-only data in .csv and my environmental variables in .asc, when I try to run the analysis, I get this error message: Error reading ...
smartinm's user avatar
1 vote
1 answer
179 views

Geotools GeoJSONWriter setEncodeFeatureCollectionCRS not giving any output

I have a very simple Test Class where I try to parse a simple Shapefile (just a few points) to a GeoJson. public class ShapefileToGeoJSON { public static void test() throws IOException { /...
geoidiot's user avatar
0 votes
0 answers
110 views

A minimalistic Python\Java library for HOSTING WMS content

Colleagues of mine have developed an algorithm that, given a bunch of parameters, outputs a colormap. The initial version was integrated as a QGIS plugin. However now we need to create an ArcGIS ...
rbaleksandar's user avatar
0 votes
0 answers
88 views

Draw an area having only a point and distances to the 4 borders

Using Geotools with Swing GUI. Is it possible to somehow create a shape having only one coordinate (Lat,Lon) and four distances in meters to the borders? Lets say we have only the "C" point ...
Magno C's user avatar
  • 2,150
-1 votes
1 answer
1k views

GeoServer Error 500 Javax.servlet.ServletException [closed]

I installed GeoServer 2.22.2 and Java 17 as recommended. I have connected and the admin functions is available, but if I want to acced in the servers status, there is error HTTP ERROR 500 Javax....
user221856's user avatar
0 votes
0 answers
222 views

GeoServer does not display images of layers in layer preview

Problem - no images appear in 'Layer Preview' screens - just the frame. I have had no previous installation of GeoServer on Windows - so I followed the steps recommended. First, I installed Java using ...
Anthony Avengerland's user avatar
1 vote
0 answers
87 views

Open zipped shapefiles in Java GDAL [closed]

I have a .zip shapefile containing all the formats (cpg, dbf, prj, shp, shx) and I wanted to access them using GDAL. I've tried: ogr.RegisterAll(); Driver driver = ogr.GetDriverByName("ESRI ...
Enzo Nakamura's user avatar
2 votes
1 answer
178 views

GeoTools WFS Transaction modifyfeatures problem: WFSException: Invalid value for property the_geom

I'm using GeoTools WFS package to update features in GeoServer. I don't have any problem with updating literal attributes, but when I tried to modify the geometry of features I got the following error ...
Mohsen Saber's user avatar
1 vote
0 answers
447 views

Expose list of GeoJSON through REST API in a Java Spring Boot project

We need to expose APIs which would list uploaded GeoJSONS at S3 bucket for a particular user. I plan to take below steps Storing all GeoJSONs to S3 bucket As USER logs in Read his GeoJSONs from S3 ...
Aditya Rewari's user avatar
0 votes
0 answers
41 views

Error when opening GeoMondrian schema file and using MDX query in GeoMondrian Workbench

I'm having trouble using the GeoMondrian Workbench on my Ubuntu 18.04 LTS system. I've followed the installation instructions and have installed the following: Oracle Java 8 PostgreSQL 9.5 PostGIS 2....
tariktt5300447's user avatar
1 vote
0 answers
151 views

Java GDAL: Permission denied when trying to open an file geodatabase (gdb)

I'm trying to get the layers of a file geodatabase (.gdb), but I'm having problems with permissions. My Java code is like this: import org.gdal.gdal.gdal; public static void main(String[] args) { ...
Enzo Nakamura's user avatar
1 vote
1 answer
160 views

Geotools unable to transform EPSG:5359 to EPSG:4326 , returns NAN for coordinates

I am using geotools to transform a set of point in chile EPSG:5359 to world EPSG:4326 I am using below code transform("6884327.77", "447076.76"); static Coordinate transform(...
Vaibhav Kumar's user avatar
0 votes
1 answer
286 views

Create a 256x256px tile with Geotools like GeoServer

I have a TIFF file and add it to GeoServer. A WMS request is as follows: http://localhost:8080/geoserver/Qadir/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png8&...
Morteza Malvandi's user avatar
0 votes
1 answer
201 views

NIR.subtract is not a function?

var image = S2.filterBounds(lago) .filterDate('2022-07-20', '2022-07-22'); //[1 image] var RED = image.select('B4'); var NIR = image.select('B8'); var NDVI = NIR.subtract(RED).divide(NIR.add(RED));...
Gianmarco Tenani's user avatar

1
2 3 4 5
18