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

learn more… | top users | synonyms

0
votes
2answers
89 views

JTS Vividsolutions API: compute First (direct) geodetic problem

I'm using the popular JTS Vividsolutions API for Java. I'm struggling to find if I can perform calculation of the First (direct) geodetic problem with the API. Is there a way to calculate this with ...
3
votes
1answer
1k views

How to edit a given version of geodatabase?

I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I ...
1
vote
1answer
20 views

Does openJump or Jump support the embedding of videos or images?

I've been tasking with writing a plugin for openJump that does precisely that. The idea is that you have some points/markers and when you click on them a video/image is presented (whether in a dialog, ...
1
vote
0answers
43 views

Arcobjects event on featurelayer symbology change

I am working on an Java AddIn project for ArcMap. I need to find the event when user changes the symbology for a layer added in TOC. So far my best bet is to useIActiveViewEvents class on map, and ...
1
vote
0answers
39 views

Converting coordinate obtained from google maps to be used with gdal_translate in java or cs2cs?

this is a follow on question from Geo-Referencing an image from google maps with gdal_translate I am trying to get cs2cs to work but I am getting the following error. My command is as follows: ...
1
vote
2answers
1k views

Getting time dimension from GRIB file?

I have a GRIB file from NOAA that contains several variables for a specific subregion in Norht-East Atlantic. I'm using ECMWF grip-api Python library to parse the file. While I'm able to get the ...
2
votes
2answers
280 views

Java packages for landsat 8 processing?

I am looking for the same packages as outlined in this question - Are there Python packages for Landsat 8 processing? except that I want these in Java. Any Open Source packages out there that can do ...
2
votes
4answers
580 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 ...
4
votes
3answers
4k views

converting/parsing geojson into com.vividsolutions.jts geometry

Does any has any experience with converting string geojson into com.vividsolutions.jts geometry object (point, polygon, etc). Maybe there is some java library I cannot find. Greets!
1
vote
1answer
23 views

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = (IWorkspaceFactoryLockControl)...
0
votes
0answers
100 views

GeoServer java classes for database connection

I am new to java and geoserver, I have setup a postgis database of osm.xml data using osm2pqsql . My task now is to create a java module that will connect to an existing postgis database along with an ...
1
vote
1answer
129 views

Given a collection of polygons, how do you find which one contains a given point? Java or Python

I'm looking for Java or Python libraries that will help me answer this question efficiently: given a collection of polygons (via shape files or GeoJSON), which one of them contains a given point? The ...
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, ...
0
votes
0answers
12 views

Save JPlotLayout as image

package test.sgt; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import gov.noaa.pmel.sgt.ColorMap; ...
0
votes
0answers
183 views

How to convert world coordinates to screen coordinates (pixels)

I am trying to export and display an SVG file, the exporting works, I even added some custom grouping. However the image is either not displayed at all or not displayed properly (very small and lines ...
0
votes
2answers
199 views

Given a GeoJSON file how do I calculate the area of the embedded features?

We have a GeoJSON file that contains an array of features each with their associated geometry. How can I calculate the area of each feature? Are there any Java or Swift libraries to help me? Any ...
2
votes
0answers
51 views

What are the geotiff limitations of geotools?

I'm trying to process globcover, which is a .tif file of 374mb. Running the following code: File tiffFile = new File("C:\\Users\\CAA\\Desktop\\test.tif"); GeoTiffReader reader = new ...
0
votes
0answers
9 views

Project netcdf data to a non-greenwich central meridian java [duplicate]

How to project -180.0º - 180.0º to 0.0º - 360.0º longitude in netcdf java.
0
votes
0answers
40 views

SST(Time,Lat,Lon) from NetCDF File [java] [jfreechart]

I want to plot data from netcdf file like an ocean model. Is there any way to transform LatLonProjection (-180.0 to 180.0): to this range (ocean model): And plot like this: I am using java ...
0
votes
1answer
42 views

My osm2po java program compiles but gives a runtime error

I need road distances and I'm trying to use osm2po to do this. After downloading the OSM files and converting them to gph format, using the osm2po program, I start at the very beginning with the ...
2
votes
1answer
304 views

Creating OGC Services via GeoServer automatically?

I am new to GeoServer and wonder how I can create OGC Services via Geoserver automatically. I have to publish my data (Shapefiles) with a Java program as OGC Services. How can I do that? I checked ...
0
votes
0answers
53 views

Sr Lock on created gdb is not releasing

My problem is sr lock is not releasing on gdb , also please see that code can be improved? Below is my code public String exportGDB(String whereClause,IServerObjectHelper serverObjectHelper) // ...
0
votes
0answers
67 views

Can't read GeometryCollection from Json String with java 8

I've got a problem with geotools and Java 8: since I started working with it, GeometryJSON can't read jts GeometryCollection from a Json String. Here an example: import java.io.ByteArrayInputStream; ...
1
vote
0answers
156 views

GeoTools: Lambert72 to WGS84

I am trying to convert coordinates (and polygons from com.vividsolutions.jts.geom) in Lambert72 (EPSG:31370) to WGS84 (or the other way around). I'm using the org.geotools.referencing CRS and ...
0
votes
1answer
388 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
0answers
119 views

How to get image coordinate and corresponding location coordinate of a geo-referenced image in andriod

In my android app, I have a geo-referenced image which I am going to use as map. So I need to divide it into tiles. For that I want its top left and bottom right image coordinate(x,y) with location ...
1
vote
0answers
19 views

GeoTools FeatureCollection to Filter (make Filter from a FeatureCollection)

I have a FeatureCollection and I want to make a Filter of them. One way is that I may use FilterFactory#id(Set<Identifier> set) to make a filter. FilterFactory ff = CommonFactoryFinder....
1
vote
0answers
36 views

Performing Geographic Weighted Regression (GWR) in Java?

Is there any existing GWR (Geographic Weighted Regression) packages in Java? The packages should be able to conduct the basic GWR, the bandwidth optimation and some significance test.
1
vote
0answers
44 views

html file not loading google maps and current location

I have a html file that when I click on it, it should open in a browser but it does not load. The link of the html opens and loads the image. Below is the link: http://cambridgeaviation.org/location/...
1
vote
1answer
50 views

Why modes are represented with numbers, that are powers of 2.? [closed]

In TraverseModeSet class of org.opentripplanner.routing.core package, Modes are represented using integer numbers , those are powers of 2. Why? private static final int MODE_BICYCLE = 1; private ...
1
vote
0answers
40 views

Create a Geotiff with different colors

I have a geotiff raster image. I have estracted the WritableRaster, the envelope, and the gridsampleDimension I need to create a new geotiff using Geotools. GridCoverageFactory gcf = new ...
0
votes
1answer
32 views

An interactive, animated deliverable (i.e. in PDF)? How?

I'm wondering if it's possible to make something like this: http://tipstrategies.com/geography-of-jobs/ But in the form of a deliverable? Like a PDF? I'd like to make something similar that I could ...
1
vote
0answers
60 views

Route between two coordinate points via line

I tried to search for an answer but couldn't find any so I decided to ask. I would like to ask which would be the best way to get the shortest (and the only one) route between two points from a part ...
0
votes
0answers
54 views

Change color of feature by ID (GeoTools)

I am trying to change the color of a specific object, by ID (or another feature). Currently I am able to extract data about an shapefile and display that data. However, I want to be able to change the ...
1
vote
0answers
71 views

Error on Map Style Tutorial

Trying to follow the Map Style tutorial, as the functionality of changing color of objects selected is one thing I am trying to add to my project. However, after running the code from the tutorial I ...
1
vote
0answers
28 views

Error in: org.geotools.swing.MapLayerTableCellRenderer.getListCellRendererComponent

Getting this error while exporting an shapefile to svg (courtesy to iant): The weird thing is I wasn't getting this error before, but I just suddenly starting getting it after running my application, ...
1
vote
2answers
151 views

PostGIS: ST_Within returns “t”/“f” letters instead of “true”/“false” booleans

I have simple query which contains among others: SELECT ST_Within(ST_GeomFromText('POINT(lon lat)', 4326), buildings.geom) AS is_within So I expect the result column is_within to be Boolean value. ...
1
vote
0answers
35 views

Export shapefile layers to svg [closed]

I have an application that exports an SVG after reading in a shapefile (thanks to iant for the exporting bit). You can view the code here: Exporting Shapefile to SVG using Java & GeoTools? What ...
0
votes
0answers
110 views

JSF2Leaf - JSF page parameters to bean

I'm using jsf2leaf framework to draw trajectories between two markers, like example. I need to send two parameters (id of point) to search possible trajectories between both. At the moment the ...
0
votes
0answers
14 views

Geoserver+AIS+adsb [duplicate]

I am trying to make a web application with a map server and two receivers one for ais and the other for planes. The project will be without the use of internet maps inside LAN. Is it possible to do ...
3
votes
1answer
306 views

Exporting Shapefile to SVG using Java & GeoTools?

I am currently working on how to read in ESRI shapefiles, parse/edit layers and then export out to SVG (Scalable Vector Graphic) file type. I have been using GeoTools primarily for reading/loading ...
16
votes
5answers
9k views

Geocoding API Comparison

Is there a good updated source for comparing existing Geocoding APIs (i.e. Google, Mapquest) and their features? I'm really interested in their language support as well. For example, Google has ...
0
votes
0answers
42 views

How to draw traffic line in small two-way street like google traffic?

I am making an app with some function same as a traffic map. But I have been stuck with below problem for weeks I have used the "Snap to roads" method to match GPS data from mobile device to road ...
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 ...
2
votes
1answer
92 views

Small GeoTiff of the world very slow when zoomed in to city level

I'm new to GeoTools and as a start I'm trying to display a small GeoTiff file on a map . The GeoTiff files I'm using are under 10MB (for example a 1MB file at 720x360 pixels) and covers the entire ...
1
vote
0answers
45 views

How to use ST_fromGDALRaster correctly with a given GeoTIFF

I am trying to import gdal raster data (a GeoTIFF) to a Postgis database, using the ST_FromGDALRaster method (http://postgis.net/docs/manual-2.1/RT_ST_FromGDALRaster.html). The question is that I don'...
4
votes
0answers
132 views

What is the structure of Standard Interchange Format (SIF) used by spatial data providers?

What is the structure of Standard Interchange Format(SIF) used by navteq and other spatial data providers? Any documentation/sample files? Is there a SIF parser available in C/C++/Java/PHP ?
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
35 views

Geoserver: Problem with default styles

Somehow, many of the layers in Geoserver got misconfigured. I can not say how this exactly happend, since this also applies to layers I have not even touched in a while. When I try to query the ...
2
votes
2answers
84 views

How to use IDatabaseConnectionInfo3 Interface ArcObjects!

I try to retrive the connected users from an entreprise geodatabase using ArcObjects . first I tried to cast My workspace to IDatabaseConnectionInfo3 but it throws ClassCastException ...