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

learn more… | top users | synonyms

0
votes
0answers
16 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
7 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 ...
0
votes
0answers
11 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 ...
1
vote
1answer
40 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 ...
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
11 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 ...
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 ...
1
vote
0answers
13 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 ...
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 ...
1
vote
0answers
25 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 ...
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
22 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: ...
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
13 views

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = ...
1
vote
1answer
58 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 ...
1
vote
2answers
46 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 ...
0
votes
0answers
54 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 ...
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
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
29 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
2answers
73 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 ...
1
vote
0answers
32 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
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 ...
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 ...
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
22 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 ...
0
votes
0answers
34 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) // ...
1
vote
0answers
59 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 ...
1
vote
0answers
37 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
23 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
12 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 = ...
0
votes
0answers
103 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 ...
1
vote
0answers
28 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: ...
1
vote
1answer
48 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
26 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
25 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
37 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
26 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
45 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
20 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
92 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
23 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
43 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 ...
0
votes
0answers
25 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 ...
3
votes
1answer
165 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 ...
1
vote
0answers
26 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 ...
1
vote
1answer
139 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); ...
2
votes
1answer
68 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
25 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 ...