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

learn more… | top users | synonyms

1
vote
1answer
6 views

Getting trouble with prefix clause for an ArcObjects Java query filter

I'm using ArcObjects/Java for ArcGIS 10.2.2 and I'm trying to get unique values of a field for a feature class. Here's my current code: List<String> values = new ArrayList<String>(); ...
1
vote
1answer
17 views

Getting data from postgis with hibernate is returning an hash instead of the rows

Is the first time that i use spring and hibernate starting from the basics, i need to get geometries from a postgis table populated with Qgis. I generate a persistence mapping of the table with ...
0
votes
1answer
19 views

Read WKT geometry using JTS 1.13 in java

I want to create a shape file from coordinates, in the client side I take the coordinates of a polygon by opelayers, it send to a java class, in this class read the geometry of the polygon, when the ...
1
vote
1answer
41 views

Parsing and rendering JSON data in Java with GeoTools

I'm working on a Web Map Service written in Java and using the GeoTools library. My goal is to make the data parsing json format, so I'm using the form Unsupported GeoTools. This is the parsingJSON ...
0
votes
0answers
14 views

Transforming GML into image?

I am looking for a simple way to transform a GML file into an image. I have a number of SLD files to provide the formatting. In the past we used an XSLT style sheet to transform the GML into a SVG ...
1
vote
1answer
38 views

Representing json data on a map with GeoTools (Java)

I'm working on a Web Map Service in Java. Practically this WMS allows me to represent the map of open data type (shp, kml and gml). I'm going to start working even with data in json format, and for ...
3
votes
1answer
29 views

Geotools 12.3 creating shape file from coordinates

I want to export a vector layer to a shape file (create a zip file with .dbf, .fix. prj and .shp), but when the exported .shp file is opened in a Desktop GIS it doesn't show anything. For the ...
0
votes
0answers
32 views

Geoserver not starting

I have downloaded Geoserver 2.8.3 on a fresh Ubuntu installation which I access via SSH. I installed Java 8 and setted up JAVA_HOME and GEOSERVER_HOME to the right locations. When i run ./startup.sh ...
3
votes
1answer
30 views

How to get latitude and longitude of Point plotted on the map using mapbox

How can I retrieve longitude and latitude of Point plotted on map ? I am testing one website in which I need to verify longitude and latitude of Point plotted on the map. Map has been developed using ...
0
votes
0answers
26 views

Insert shapefile drawn features into PostgreSQL

Sorry my question is repeated, unfortunately i didn't get the proper solution for the problem. I have a LeafLetjs map on which I draw features like: points, polygons, markers, lines etc and I am ...
1
vote
1answer
12 views

Getting the feature information under the mouse (geotools)

I'm interested in programmatically finding out information of the the features (of a map) under the mouse. I'm using geotools for drawing the map using a shape file. I've first used the following code ...
1
vote
1answer
57 views

LeafLetjs: GeoJSON invalid object error

I am getting GeoJSON data from postgresql, but it seems to be invalid. How can I validate it? After getting GeoJSON format data I want to put on map for projection. I am using LeafLet, java EE, ...
1
vote
1answer
26 views

How to embed a GeoTools map in a existing java swing application

I have a java GUI swing application with three frames. I want to load a map from a shape file and draw the map on an existing application frame. For this I use GeoTools framework. I've looked at the ...
2
votes
0answers
60 views

Insert shapefile draw features into PostgreSQL database using java EE (pragmatically)

I am working with PostgreSQL 9.4 and Java EE i want to insert shapefile or layer's features into PostgreSQL, is there any solution so i can insert the whole shapefile into database. OS Windows10. ...
-3
votes
1answer
40 views

How to get midpoint of polyline in java arcobjects

Here I want the midpoint of every polyline and add that point to List. List<IPoint> pList = new ArrayList<IPoint>(); Polyline polyline = null; IPoint point = null; for(int ...
1
vote
1answer
18 views

How to create buttons with Javascript that set a new view (extent and zoom)?

I am creating a web map using CartoDB, and am having trouble creating buttons that will set a new view when clicked. I am a novice when it comes to coding but i do have some basic knowledge. I'm ...
1
vote
0answers
26 views

Free UK Geocoding with Java

Is there any free solution for geocoding UK with Java? I would like to avoid APIs, like for example Google's Geocode service as I have over 1 million addresses to geocode.
1
vote
0answers
37 views

How to build OpenSeaMap/renderer on ubuntu 14.04? [closed]

I have set up a tile server on ubuntu 14.04, downloaded the openstreetmap-carto style and compliled it with carto. Then I customized the renderd.conf file like this: [renderd] ...
0
votes
0answers
52 views

Print a map with Geotools

I want to print a map with a raster image as base-map using Geotools. The problem is that the raster image doesn't take the margins into consideration and starts always at the point (0,0) as you can ...
0
votes
0answers
10 views

Geoserver homebrew memory problems

I have installed Geoserver 2.7.1 with homebrew on OS X 10.10.5. I have problems with the server crashing almost daily. A restart of the launchctl scripts does not always work so I have to do a full ...
1
vote
1answer
49 views

How to insert raster in PostGIS from java JDBC

I have been looking for a solution to store dynamically generated raster data into PostGIS from java and PostGIS JDBC. I am working with geotools toolkit but i am unable to find any documentation ...
1
vote
0answers
9 views

Running into Java Heap Size issues with OpenTripPlanner

I'm trying to load up OpenTripPlanner on my PC and utilize it. I get everything set to run, then it gets about two minutes into the OSM file nad icks out "exception in thread "main" ...
1
vote
0answers
27 views

S57 Ecdis extract data

I have multiple S57 Ecdis files and would like to extract some data out of them. In specific some 'depth' data which is bound to lat/lon coordinates. I will need to bulk process all the data and group ...
2
votes
1answer
17 views

GeoWebCache Upgrade Error

I'm attempting to upgrade to a new version of GeoWebCache from 1.3. I'm trying to upgrade to version 1.7.2. I blew away the geowebcache directory under the Tomcat webapps and also deleted the ...
1
vote
2answers
42 views

Extract border polygon from a geometry

I am wondering if there is a way, algorithm, tools, to create, from a geometry, another one that is the border with a certain thickness. The idea is to get something similar to that : This looks ...
0
votes
1answer
40 views

KML 2.2 parsing with a group of point Geotools

I am doing a viewer with geotools and I am trying to read a kml file. I am using PullParser class for parsing and also I am using KML and KMLConfiguration classes from org.geotools.kml.v22 package. If ...
1
vote
1answer
77 views

Reverse Geocode latitude longitude with Geotools using Natural Earth Shapefiles in Java

I am trying to perform reverse geocoding in Java using GeoTools and Natural Earth Shapefiles. I just want to pass latitude longitude and get the corresponding country name + state name. I have ...
0
votes
0answers
42 views

Runtime error R6034 running a java/arcobjects program

I made several programs using ArcObjects for Java always getting this error at different times of execution: If this error occurs, we just have to click OK and the program continues without ...
2
votes
1answer
28 views

(Geotools) Get 2 Selected Layer out of the MapTableLayer

I have a Method that calculates the Area of 2 Layers of different topologic Relations, which needs 2 collections. In the Button where I use this method, I want to get just 2 of the selected Layers in ...
1
vote
0answers
20 views

Is there a native JAI implementation for Ubuntu 14.04 64 bit? I'm trying to boost geoserver performance

Is there a native JAI implementation for Ubuntu 14.04 64 bit? I can't find it anywhere.
0
votes
2answers
112 views

Android Google Maps average polyline paths

I'm making an android app that maps my path through plotting polylines using the google map API. If I have several of these paths, it just looks like a bunch of paths plotted on top of each other. Is ...
1
vote
0answers
24 views

Creating a data store from a GetCapabilities WFS URL

I'm coding a geoserver manager with geoserver rest api (version 1.7) and I'm looking for a function that can create a data store from a GetCapabilities WFS URL. Inside Geoserver, I go to "Store - Add ...
1
vote
1answer
57 views

Geotools create shapefile in memory

Is it possible to convert between shapefile and geojson using geotools without access to file system? I have that restriction in my web app, but I need to create shapefile as byte array and then do ...
0
votes
0answers
93 views

How to find a polygon from coordinates provided

I am really new with PostGIS, and I need to find a polygon providing (lat - long) coordinates. My goal is, get the coordinates x and y passed by parameters, and find the polygon which where this ...
1
vote
0answers
32 views

Why do I get incomplete answers using google maps api in java?

I'm using google maps API in java to check wether some places are correct, but I don't get all possible responses: GeocodingApiRequest req = GeocodingApi.newRequest(context).address("Sydney"); try { ...
1
vote
0answers
26 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 ...
0
votes
1answer
41 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
34 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
208 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
18 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
34 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
25 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
51 views

GPRS data receiving in Java [closed]

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
50 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
1answer
54 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
19 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
36 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
66 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

How to Use IWorkspaceFactoryLockControl in Java

I have tried to convert the interface but failed. IWorkspaceFactory2 pWorkspaceFactory; pWorkspaceFactory = new CadWorkspaceFactory(); ipWsFactoryLock = ...
1
vote
1answer
98 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 ...