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

learn more… | top users | synonyms

0
votes
1answer
37 views

Error in using gdal java binding

I am using the java binding of gdal to project a set of coordinate points from UTM to lat/log using the CoordinateTransformation Class of gdal. I have written the code as follows: ...
1
vote
1answer
1k views

ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server

I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
1
vote
0answers
10 views

How delete feature from layer using Gdal binding java

I am trying delete one feature from layer using GDAL in java https://trac.osgeo.org/gdal/wiki/GdalOgrInJava But nothing happens. ogr.RegisterAll(); Driver driver = ogr.GetDriverByName("ESRI ...
2
votes
2answers
2k views

Programmatically converting arbitrary XML data to shapefile?

Based on the answers below I decided to do some programming. I'll be using GEOtools for this, a java lib: http://www.geotools.org/ I have the following XML: <shapes ...
1
vote
1answer
146 views

Create shapefile based on geojson data with geotools (Java)

I'm using Geotools 14.0 for Java and I'm trying to generate shapefile based on data from GeoJSON. Here is my code: try { String url = "geojson.json"; File geojson = new File(url); ...
0
votes
0answers
17 views

building a web application that uses gtfs feeds to display bus position dynamicly

In the context of my final project study , i think to build a web application that present a map that display shifting of the bus dynamaclly with a marker where the application consumes gtfs feeds ...
0
votes
1answer
12 views

Geotools filterfactory not found exception

Can anyone help me out of this exception. In a geotools query program i am using Filter filter = CQL.toFilter("CONTAINS(the_geom,POINT(-115.56,67.567))"); and when am running the program using ...
1
vote
1answer
44 views

Plot the longitude and latitudes on map using geotools

I am new to geotools and i find bit difficult to plot a point using the latitude and longitude values. can any one help me out to solve my problem. I tried the following code but not helpful.By ...
5
votes
1answer
636 views

Convert Lat/Long to UTM specifying which zone to use (Java)

I have a set of coordinates in decimal degrees spread across two UTM zones in my Java application that I want to export to use in Petrel, so they need to be in the same UTM zone. Is there a java ...
0
votes
0answers
12 views

geotools shapefile does not support utf-8 for dbf header

I create a ShapefileDataStore to create a new shapefile and call dataStore.createSchema(...) . But it does not work for utf-8 header fields. I checked the geotools source code and realized that it ...
3
votes
1answer
578 views

JTS - Java Topology Suite - Calculate radius from a given point

From point A, I want to check if a point B is within a certain radius from A. How calculate it usindo JTS? I tried this: Coordinate posicaoAtual = new Coordinate(-12.974900375893823, ...
2
votes
1answer
1k views

Add-in installed, but its elements not appearing in ArcMap

I'm creating an Add-in for ArcMap 10.1. When I export file testproject.esriaddin and install (whether double-click or from Customize Mode > Add From File dialog), message of success appears. But ...
0
votes
0answers
9 views

gettting Protocol version error in arcgis runtime java api

I am using Netbeans IDE 8.0.2 to develop a small Java application with ESRI java APIs. I donwloaded ArcGIS_Runtime_Java.jar from net and attached it to my java application. Running the following ...
0
votes
0answers
14 views

Copy specfic layer to new datasource using OGR Swig Java bindings

Is it possible to efficiently copy a specific layer from one datasource to a different datasource using GDAL/OGR Java bindings? I know it is possible to create a new layer in the target data source ...
3
votes
1answer
409 views

Read DGN file in java or c#

I'm looking solution to read DGN file in java or c# without any success. Gdal makes many problem and doesn't support all element eg. complex element. Does anyone know of a library that supports the ...
2
votes
0answers
16 views

No Exception Handling in GDAL/OGR java bindings: ogr.UseExceptions() has no effect

When a GDAL/OGR 2.0.1 swig/java operation encounters an error, the message is written to stderr but no exception is thrown within the application -allowing it to continue, which is highly ...
2
votes
1answer
251 views

Adding INDEX to IFeatureClass with ArcGIS SDK for Java?

I want to add an index to a feature class. To do so, I used the very short and complete example given there: ...
1
vote
2answers
401 views

Convert GPS coordinates to EPSG:54004

I need to convert GPS coordinates to EPSG:54004 on android. Are there any libraries or formulas to acomplish the task? Thanks in advance.
1
vote
0answers
16 views

GPRS data receiving in Java

i am creating a java program that will receive data from GPS tracker device and will store it in MySQL. for this purpose i need to create a GPRS connection for receiving data. Can anyone help me how ...
4
votes
5answers
747 views

What software would be useful to create General Transit Feed Specification (GTFS)?

I am doing a project in which i am required to create GTFS. I look at transit google developer forum which provide a format to create feed but that completely have to done by hand (we have to write ...
1
vote
1answer
38 views

Can't create PNG file with “st_png” function PostGIS and Java

I have this code in Java: conn = DriverManager.getConnection ("jdbc: postgresql: // localhost: 5432 / postgis_23_sample" "postgres", "admin"); conn.setAutoCommit (false); String s = "SELECT ...
0
votes
2answers
50 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
0answers
26 views

How to return coordinates of my location using LocationDisplayManager (ESRI API)?

I'm trying to create an application which works with lat and long of a device position. I'm using LocationDisplayManager class to find and to map a location. MapView mMapView = null; public void ...
0
votes
1answer
41 views

How to clear JMapFrame with multiple layers

Is there any way to clear a JMapFrame and all of its layers before opening a new file? I currently am running into an error (exception no stack trace) while opening a file with one already open that ...
1
vote
1answer
17 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
30 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
23 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
860 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
252 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 ...
5
votes
1answer
362 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 ...
2
votes
4answers
473 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
3k 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
2answers
51 views

Creating a raster file from a shapefile using GeoTools with different colours for different features

The shapefiles that I am processing display information on an operation of a piece of equipment over an area, where the information is stored in steps as polygon features with various attributes and ...
1
vote
1answer
15 views

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = ...
0
votes
0answers
55 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
61 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
28 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
7 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
106 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
74 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
34 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
30 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
25 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
294 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
35 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) // ...
4
votes
4answers
2k views

How can I find closest point on a polygon from a point

I have a point that may be inside or outside of a polygon, I need to find the nearest point on the polygon boundary from the point. Point(x,y) may be inside or outside of the polygon, shortest ...
0
votes
0answers
35 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; ...
0
votes
0answers
23 views

Openshift, http requests between two applications

I have deployed a Geoserver and a Java EE REST API on Openshift as non scalable applications. From the REST API I'm trying to connect to Geoserver using apache httpclient. When I'm requesting ...