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

learn more… | top users | synonyms

0
votes
0answers
4 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
35 views

Parsing and rendering JSON data in Java with GeoTools

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
0answers
33 views

Create shape with several features from vector layer [on hold]

In Geotools 12.3 when I export a vector layer to shape, it exports well when it has one feature (exporting .dbf, .fix. prj and .shp), but when the layer has more features the export process doesn't ...
1
vote
1answer
31 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
0answers
12 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
296 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
29 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
27 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
25 views

Why projection of shapefile is not as per requirement on map [closed]

I am working with Java EE and PostgreSQL. I have imported the shapefile into PostgreSQL manually, with "load into geography column" option. I am getting the shapefile on map by java coding but On ...
0
votes
1answer
199 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) { ...
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 ...
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 ...
1
vote
1answer
406 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 ...
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 ...
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. ...
1
vote
1answer
11 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
55 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
52 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
23 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
39 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 ...
4
votes
1answer
469 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
0answers
321 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 ...
2
votes
1answer
188 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 ...
1
vote
2answers
443 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
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 ...
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
262 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
288 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
114 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
115 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 ...
0
votes
2answers
202 views

Creating an INFO table using ITable in Arc (Java)

I'm trying to set up an info table in an addin for ArcGIS 10. I'm using Java and Eclipse IDE. The code I have is here: public class Tables { String database = "C:\\GIS"; String nameOfTable = ...
1
vote
0answers
25 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.
0
votes
1answer
99 views

getting scratch and current workspace ArcGIS10 using Java

I'm trying to get the scratch and current workspaces returned as path names (Strings) using java in ArcGIS10. however I can't seem to get anything returned. I'm guessing it's to do with accessing ...
3
votes
3answers
2k views

Java Contour Algorithm

Does anyone know if there is an open source project in Java that will take a set of (x, y, z) points and create a contour map for Google Maps/Earth? There does not seem to be a good contouring ...
2
votes
1answer
76 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., ...
0
votes
1answer
181 views

Polygonize a raster using GDAL JAVA bindings - passing raster pixel value to the resulting feature

I have a raster GeoTIFF file with values from 0 to let's say 5. When I run gdal.polygonize (I'm working with JAVA and GDAL bindings to JAVA) on it, I get features with corresponding polygons. The ...
0
votes
0answers
7 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
395 views

ArcGIS Routing on Android with Network Analyst module

I am currently developing an Android App for navigation purposes. It is based on the ArcGIS Android API. I have an ArcGIS server (with network analyst module) with all the needed data running. At the ...
1
vote
1answer
47 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
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
49 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 ...
2
votes
1answer
160 views

Point to Line Calculations

We are looking to take a point and compare it against the nearest point to an adjacent line. All values are in lat/long. We tried using some of the concept found on the board but found it did not ...
7
votes
2answers
2k views

Find Perpendicular Distance and Minimum Perpendicular Vector between a Point and a Line using GeoTools and JTS

I have a line formed by 2 lat/lon pairs, and the lat/lon of a point. I would like to find out the perpendicular distance between the line and the point on the Earth surface (can assume Earth as great ...
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" ...
3
votes
2answers
320 views

What does the values in column clazz (osm2po) mean?

I have a given table in postgreSQL with OSM data which is used for routing purposes in Java with PGRouting. There exist two columns which I don't understand. They belong to osm2po. They are labeled ...
1
vote
0answers
26 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
16 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 ...
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 ...
1
vote
2answers
39 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 ...