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

learn more… | top users | synonyms

1
vote
1answer
8 views

Geotools - Create a line layer

I am using the Geotools library to develop a Java Swing application. I am having a problem creating a layer with lines between points. Can someone help me? Here my code: import com.vividsolutions....
0
votes
0answers
12 views

Error while publishing layer from spatialite store in GeoServer [duplicate]

I've installed Spatialite extension on GeoServer(2.5) successfully. I created a new Spatialite database (*.sqlite file) and loaded some sample shapefiles into it. Then I added a new Spatialite data ...
0
votes
0answers
15 views

Find out if a coordinated is ahead of other [closed]

I would like to know if is there a practical way to find out if a coordinated A is leading a coordinated B , knowing that the direction that the coordinate is moving. I have an idea that compares the ...
1
vote
1answer
17 views

Interpolation in Geoserver

I am new to use Java and Geoserver. I have a point sampling location (N,P,K Nutirients value for few fields spanning acroos few acres) on which I want to execute IDW or Natural Neighbourhood ...
1
vote
1answer
21 views

ExternalGraphics - gray squares instead

I am creating point symbolizer with external graphic, and it works great if I load an image/png, but when I try to load svg file I get gray squares on map StyleFactory sf = CommonFactoryFinder....
1
vote
0answers
22 views

using java to get ways from osm [closed]

I just try to figure out how to query all ways within a radius of let's say 1km from a defined point. Here is an example of what I mean: I've already read about overpass api, GeoTools and ...
2
votes
2answers
35 views

is it possible to store empty geometries in an Oracle Database?

I'm trying to fix a GeoTools issue but I'm running into problems putting empty geometries into my Oracle database. Basically executing: select SDO_UTIL.FROM_WKTGEOMETRY('POINT EMPTY') from ...
2
votes
0answers
16 views

set bounds for pointLayer based on another layer size

I am creating a simple method for drawing Points on map, and have problem with full extent. I create a new point layer and add it to mapContent, and the problem is that it set bounds somewhere around ...
0
votes
1answer
23 views

Why can't osm2po router find vertexIds when I use Graph.SUPPORT_EDGEFLAGS?

I am using the Osm2po.router in Java, trying to find the clazz of roads from this Get road type (clazz) in osm2po. When I am using the router without any supports, I am able to find the vertex Ids. ...
2
votes
0answers
28 views

Coordinate Reference Systems error CRSAuthorityFactory

When I try to set CRS in geotools application first time it works great but after that I get FactoryNotFoundException it shows me this in console Exception in thread "AWT-EventQueue-0" java.lang....
0
votes
0answers
15 views

Can't get a response from a wfs2.0.0 using Geotools

I have some issues with the WFS-NG extension of Geotools 14.3. I am using the code below to get a data store from a distant server : String getCapabilities = "http://ids.craig.fr/wxs/public/wfs?...
1
vote
1answer
27 views

Choosing opengis or geotools imports dealing with geotools library?

In some cases, I have to use some classes of GeoTools library. Most of class names are duplicated in org.geotools and org.opengis package. for example, StyleVisitor, Symbolizer, PointSymbolizer, etc....
1
vote
0answers
26 views

Read a shapefile and write an identical one using GeoTools

How would one go about reading a shapefile using GeoTools and then writing it to disk so that the read and written are as identical as possible (idempotent)? I do not feel familiar enough with ...
1
vote
1answer
221 views

How to combine LineStrings using JTS

I want to combine LineStrings with common points. The scenario looks like this: I tried it using the GeometryCollection.union() method like suggested here: http://docs.geotools.org/latest/userguide/...
0
votes
1answer
43 views

MultiSelectionTool - selecting multiple content in multiple layers

I am trying to create MultiSelectionTool that will work in multi, and have a problem with extending selection if Ctrl is pressed while selecting, it just deselect the everything else before and start ...
0
votes
0answers
43 views

Displaying Dijkstra's result as a path in a map

I have implemented a Java Program that asks for two points X and Y and then run Dijkstra algorithm to find the shortest path from X to Y. The returned path is represented as a sequence of nodes each ...
1
vote
1answer
31 views

JSON Error? - Unfolding library - Bug or something else?

While trying to make use of GeoJSONReader from the Unfolding Library, while compiling I got the following error: A JSONObject text must begin with '{' JSON Error: Expected a ':' after a key org.json....
0
votes
0answers
9 views

Strip characters in Java/QML in App Studio for Arc GIS

I'm trying to change the display text for attachments in the Arc GIS App Studio. I want to strip a number of characters from the front of the string, and a number of characters from the end and keep ...
1
vote
1answer
25 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
27 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
87 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
90 views

Parsing and rendering JSON data in Java with GeoTools [closed]

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
21 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
71 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
52 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
70 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
50 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
37 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
16 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
80 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
52 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
78 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
60 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 i=0;i<...
1
vote
1answer
23 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
32 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
47 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] socketname=/var/run/...
0
votes
0answers
83 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
16 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
86 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
14 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" java.lang....
1
vote
0answers
38 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
26 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
82 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
94 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
126 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
66 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 trouble....
2
votes
1answer
56 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
35 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
227 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
38 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 ...