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

learn more… | top users | synonyms

2
votes
1answer
20 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 ...
0
votes
1answer
21 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
10 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 ...
5
votes
1answer
734 views

How to sort a SimpleFeatureCollection using GeoTools?

I have a featurecollection: SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(dbFeatureType); SimpleFeatureCollection collection = FeatureCollections.newCollection(); while (mifReader....
2
votes
1answer
506 views

Query all Object within n kilometer Radius with Hibernate Spatial?

I use hibernate spatial attach a geolocation to a car. My card domain class looks like this: import com.vividsolutions.jts.geom.Point class Card { String name Point location } My program is ...
3
votes
1answer
91 views

Whitebox GAT not starting under Windows 10 - General JAVA or Whitebox problem?

I am currently running the DEM preprocessing on a relatively large (50000 km2 at 30 m resolution) and steep DEM. The objective is to extract the stream network and some morphologic attributes (e.g., ...
1
vote
1answer
24 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
2answers
192 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 ...
2
votes
0answers
26 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
1answer
41 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
13 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?...
5
votes
1answer
672 views

Algorithm to find N nearest points to point?

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 solution is to ...
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
141 views

Using Geotools union() method (to combine LineStrings)

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/...
4
votes
2answers
508 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 ...
0
votes
2answers
195 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 ...
0
votes
2answers
101 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 ...
0
votes
1answer
253 views

Using Leaflet: How do I get it to display one popup based on a condition?

Using Leaflet: How do I get it to display one popup based on a condition. See below. basemap_0.addTo(map); var layerOrder=new Array(); function pop_thunder(feature, layer) { ...
2
votes
1answer
209 views

Generate a game world using planet.osm (in .pbf format)

I've recently downloading openstreetmap's Planet.osm for use in an experiment whereby I plan to generate a video game world based off of the planet. openstreetmap's wiki hasn't been very useful, and ...
0
votes
0answers
38 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
26 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
8 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
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 ...
2
votes
1answer
131 views

Solving java.lang.RuntimeException: No osm2po-GraphFile?

I tried to use osm2po as a library and write a simple routing program based on the sample code at (http://osm2po.de/) However, when I try to load the .pbf file into the data structure "Graph". The ...
0
votes
1answer
158 views

ArcGIS WMS in Android. ArrayIndexOutOfBoundsException

I have a simple Android application that used the ArcGIS SDK to render a map, that works fine, but when I try to use a WMSLayer to render over my map, it generates me an ArrayIndexOutOfBoundsException ...
1
vote
1answer
20 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
71 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 ...
1
vote
1answer
24 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 ...
1
vote
1answer
65 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 ...
0
votes
1answer
63 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 ...
0
votes
0answers
16 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
388 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
59 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
49 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 ...
3
votes
1answer
40 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
36 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 ...
2
votes
0answers
76 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. ...
1
vote
1answer
15 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
75 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
0answers
60 views

How to configure HTTP requests between two applications on OpenShift

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 ...
1
vote
1answer
37 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 ...
-3
votes
1answer
58 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<...
0
votes
0answers
368 views

java.lang.IllegalStateException: Form too large 326482>200000

I have a problem with Geoserver style creator! When I want upload a SLD file that I create it by QGIS I will see this error! Geoserver 2.6-SNAPSHOT, QGIS 2.8 HTTP ERROR 500 Problem accessing /...
1
vote
2answers
469 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
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 ...
0
votes
1answer
1k views

Offline entire planet in Java Desktop app [closed]

Sorry if this question has already been asked, but I need your help. In program that we are developing we need to integrate maps. Here are the requirements that are put for integration: Maps should ...
2
votes
0answers
290 views

How to prevent an IllegalArgumentException with GeoTools WFS GetFeature request?

I want to retrieve the feature Collection from a WFS server with the java library GeoTools. I tried this code, but unfortunately the program fails to execute. public class App { public static void ...
0
votes
2answers
305 views

MS4W (MapServer 4 Windows) - version 3.0.3 Crashes JVM and Tomcat frequently. How to fix this?

I am using MS4W (MapServer 4 Windows with Java Mapscript) - v 3.0.3 for a GIS web application hosted over Tomcat 6.0.33 with Java jdk1.6.0_13 and PostgreSQL 9.1 with PostGIS 1.5.2 @ the database end. ...
2
votes
2answers
121 views

Can I use “Web Map Service Module” and “Web Feature Service Module” of Geoserver in my project?

I'm developing a GIS application with java Spring Framework and GeoTools library. I have some vector layer. I want to get this layers with wms and wfs protocols. I've downloaded geoserver code. It ...
2
votes
1answer
125 views

Integrating application security with GeoServer security?

I'm going to develop a map server with my own logic and entities. It will have a Postgres database, user management, specific layers with certain types, WFS, WMS, etc. I'm going to use springframework ...