Skip to main content

Questions tagged [geotools]

GeoTools is an open source Java library that provides tools for geospatial data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

I have a layer (PostGIS table) that I load into JMapFrame. When I zoom to the layers extent I use this: featureLayer.getBounds(); If I add an object in this layer outside the current exten, it will ...
Paul Malm's user avatar
  • 123
1 vote
2 answers
94 views

I'm currently working on a client application written in Java, using the org.geotools library in version 33.2 (released July 17th 2025) to request Features from a WFS layer. The code below establishes ...
Nico's user avatar
  • 13
0 votes
0 answers
42 views

I have a PDF with a small vector map which I would like to georeference with 4 "GroundControlPoins". When I open the georeferenced PDF file I JMapFrame as a GridCoverage2D layer, it will be ...
Paul Malm's user avatar
  • 123
0 votes
0 answers
30 views

I´m trying to retrieve capabilities using GeoTools with this function: private WebMapServer getWms() { try { URL url = new URL("https://my-geoserver.com/geoserver/PROJECT/wms?REQUEST=...
Tercera Colina's user avatar
3 votes
1 answer
62 views

I'm trying to make a GeoTIFF file with an envelope at longitude -124.1. It works, but when I load the file into QGIS, all of the longitudes are positive. At a point that should have longitude -124.05, ...
John Malpas's user avatar
0 votes
0 answers
52 views

I have a RGB GeoTIFF with an offset of each band = 44. Without offsets it works fine. I can view the raster file in QGIS, but when I try to view it in my "GeoTools" viewer I get the ...
Paul Malm's user avatar
  • 123
-1 votes
1 answer
91 views

I would like to read GTGN turbulence data from a GRIB file (rectangular area with equidistant points) and create contours(iso-lines) to be stored into a list of GeoJson Objects. I already read "...
Isidora Mateu's user avatar
0 votes
2 answers
70 views

I'm trying to use geotools to render a Web Mercator GeoTIFF of the United States under a shapefile, using this projection for the GeoTIFF: PROJCS["WGS 84 / Pseudo-Mercator", GEOGCS["...
Tony's user avatar
  • 1
1 vote
1 answer
61 views

I have changed the brightness on an image, but I can't get the the changes to follow when writing to a TIFF file on disc. The stored file will look exactly as the original TIFF file. This is my ...
Paul Malm's user avatar
  • 123
1 vote
0 answers
66 views

I'm getting an exception when using Jiffle functions, must I do something else with my script sent to Jiffle? GridCoverage2DReader reader = lr.getReader(); try { Path fileToDeletePath = Paths.get(...
Paul Malm's user avatar
  • 123
0 votes
0 answers
49 views

I try update feature geometry in GeoServer using GeoTools library in my application, but was not success. public static boolean updateGeometry(String typeName, Geometry geometry, String sid, String ...
kfgisbis's user avatar
1 vote
1 answer
106 views

if I e.g. set value 0.5 for the red band in a style for a rgb raster file like this: ContrastEnhancement ce1 = sf.contrastEnhancement(ff.literal(0.5), ContrastMethod.NORMALIZE); sct[0] = sf....
Paul Malm's user avatar
  • 123
1 vote
1 answer
161 views

In another toolset I have used PostgreSQL to get the distance in meters text: CREATE OR REPLACE FUNCTION length_text(geometry geometry) RETURNS text AS $$ SELECT CASE WHEN ST_IsValid(geometry) ...
Nic Hubbard's user avatar
1 vote
1 answer
42 views

I have a GridReaderLayer where I changed the corresponding Style. The style is an RGB Style and I have changed the ContrastEnhancement values of R, G and B. Now I would like to save the ...
Paul Malm's user avatar
  • 123
0 votes
1 answer
52 views

I am using GeoTools filter to query data: String park_id = 'xxxxx'; //got from requset Filter f = FF.equal(FF.property("park_id"), FF.literal(park_id)); SimpleFeatureCollection ...
giser's user avatar
  • 813

15 30 50 per page
1
2 3 4 5
53