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

learn more… | top users | synonyms

1
vote
2answers
421 views

Get selected features on ArcMap in arcMap Addin (eclipse)

I am building a custom arcMap Addin button which onclick event tells info about selected features. Following is my java class --- public class Break extends Button { /** * Called when the button ...
-1
votes
0answers
15 views

Change Coordinates in GeoJSON with geojson-jackson

I have .geojon files that look like this: { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", ...
0
votes
0answers
22 views

What's the best way to break closed polyline using ArcObjects?

I have a polyline feature class with several closed lines (the start point = the end point). I need to break these lines in two features, using ArcObjects (doesn't matter Java, VB or C#). I have ...
-1
votes
0answers
17 views

How to work with Geo tools Java API's [closed]

I am new to Geo tools. Can anybody help me how to use Geo Tools hava API's.
0
votes
0answers
108 views

Geotools shapefile and geotiff displaying problem in JMapPane

I'm trying to get a JMapPane to show up in a JPanel, but without success. Below is the JPanel instance containing the map. I am importing a geotiff and a shapefile layered in that order. Not only does ...
0
votes
1answer
21 views

Geotools create/save shapefile has no geometry information

When I create and save a shapefile in GeoTools, then open it in ArcGIS or QGIS, it doesn't show up on the map, even though the features are there in the attribute table (and all attributes I added ...
1
vote
1answer
103 views

Displaying coordinate references in GeoTools?

I'm using this library to finish my final project and I have to say I'm no familiar with the maps worlds. My question is if geotools has a method to show automatically the coordinates references in ...
3
votes
1answer
69 views

Creation of tiled grid in JAVA with geotols

I am trying to create a grid using GeoTools in JAVA, covering specyfic area with resolution 50 m (distance between two points). To do so I have two points: the most nortwestern (let's call it NW) and ...
-1
votes
1answer
42 views

What application server or web framwork to use

I'm looking to make a webmapping app, which gonna use Geoserver as carto server, and Postgres/postgis as Dabatase, and Extjs as client UI. but i'm in dilemma in application server side, between PHP, ...
1
vote
0answers
10 views

Long delay when updating rows of a feature layer or modifying elements of a graphic layer using arcObjects in java

We are developing a simple AddIn for arcMap for the first time using arcObjects in java. The application consists basically on the following steps: 1. Obtain a Network layer which was loaded in ...
1
vote
4answers
154 views

Get “approximate” lat/long coordinate for UTM grid zone

I have data assigned with a UTM grid zone designators, such as 10S for example. Now I need an approximate latitude/longitude pair, preferably the center point of the given grid zone. Can you give me ...
2
votes
1answer
45 views

Read In SRTM HGT elevations using Java

I have read the following posts on reading in SRTM HGT elevations- How do you convert SRTM HGT elevations from WGS84 into meters above sea level? and How to extract elevation from .HGT file? I am ...
1
vote
1answer
540 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
30 views

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

I tried to use osm2po as library and to write a simple routing program based on the sample code listed in (http://osm2po.de/) However, when I try to load the .pbf file into the data structure ...
2
votes
0answers
34 views

how to get a feature from coordinates in geotools [closed]

I'm working on web services in Java and using GeoTools java api for wfs operations. I have a wfs store and a lot of features in it. I do some operations via geotools wfs api for example buffer, ...
2
votes
0answers
26 views

Geotools wfs getFeature

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 ...
1
vote
2answers
134 views

Create shapefile from data PostGIS or KML using Java

I'm working on a geographic information system project, whose products form shapefiles. I am using the Java programming language and a PostGIS database. Is there a way to generate a shapefile from ...
2
votes
1answer
26 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 ...
2
votes
0answers
21 views

inputing road network as nodes and arcs in java

I want to input a road network as nodes and arcs. Some of the nodes are intersections, others serve to describe the shape of the road. Road network should be modeled as an embedded graph consisting of ...
1
vote
2answers
318 views

From OSM to shape. Parsing problem

I'm working at OpenStreetMap project for android at the moment. I want to retrieve OSM data from my app(nodes, markers and paths) and convert it to shape file (.shp, .dbf and .shx). Later, I'll load ...
1
vote
1answer
18 views

Invoke OSGeo4W commands with Java

I want to use the command gdal_polygonize image.png bla in a Java for-loop, where image.png and bla changes in every iteration. How can I do this? I searched for it on google and stackexchange and I ...
3
votes
1answer
591 views

GeoTools WFS Feature retrieval

I am trying to use geotools to retrieve the list of features served by a WFS. I am following the tutorial provided at http://docs.geotools.org/latest/userguide/library/data/wfs.html. The code that I ...
1
vote
0answers
68 views

I have WIKI VGI Java based query doubts?

I have a code snippet in Java to query wiki volunteered GIS. This is first time I am using java and finding it difficult to answer some queries. package org.wikibrain.cookbook.MOOC; import ...
0
votes
1answer
70 views

How to use Intersect tool in ArcObjects

I'm trying to use the Intersect tool in ArcObjects SDK Java with two feature classes. Here is my code: public void intersectTwoFeatureClasses(Object in1, Object in2, Object out) throws ...
3
votes
1answer
35 views

How to set decimal precision in shapefile via javacode

we are using the below code : SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); builder.setName("Location"); String wkt = "GEOGCS[" + "\"GCS_WGS_1984\"," + " DATUM[" ...
1
vote
0answers
39 views

Extract polygons of PNG with GdalOgrInJava

I have PNG pictures with polygons of different colours on them. What I plan to do is to extract these Polygons using the polygonize function (see here) Then I will try to encode the polygons in ...
1
vote
1answer
102 views

Update Service config file with ArcIms java connector

We are using arcims java connector to create, update, delete services. it works fine for create and delete. However when we try to update the config file of service (ie : mxd file) the new mxd file is ...
2
votes
1answer
419 views

What software would be useful to create General Transit Feed Specification (GTFS)?

I am doing a project in which i am required to create GTFS. I look at transit google developer forum which provide a format to create feed but that completely have to done by hand (we have to write ...
0
votes
1answer
134 views

ArcGIS Custom Toolbox crashes ArcMap 10.0

I have prepared Custom ArcToolBox using ArcObjects in java. It was working fine before though was giving NullPointerException but this something java related error and that is fine. Later I have ...
2
votes
1answer
178 views

How to read each pixel of each band of a multiband GeoTiff with GeoTools Java

I am new to working with Raster in GeoTools-very experienced in java. My goal is to read in a geotiff that has multiple bands, then create a HashMap for each pixel, where the key is simply the lat/lon ...
2
votes
1answer
139 views

Geotools 8.4 CRS.decode invalid(?) reference to HTTP_URI_OGC

I'm trying to do a simple CRS.decode to lookup a CoordinateReference system: E.g. CoordinateReferenceSystem target_crs = CRS.decode("EPSG:4326"); However this fails with a reference to the ...
2
votes
2answers
97 views

Framework/software for dynamic WPS creation

We have some specific EO data processing facility and are about to provide an access to one using WPS-based interface. The are plenty of solutions for the task. However, it is hard to find one that ...
1
vote
2answers
52 views

Looking for an open-source Java based GeoTIFF library

I have written many programs for reading and writing various types of spatial data in the past but I must admit that the GeoTIFF format has often gotten the better of me. It's such a flexible format ...
2
votes
1answer
64 views

Suggestion for java based GIS sdk for desktop application

I am developing a desktop GIS application using JavaFX that needs to run on Linux. I have been using ArcGIS java sdk and it is really good for all my requirements. But when I started testing it on our ...
0
votes
1answer
58 views

osmosis library in java application

I want to do a navigation application OSM PBF files. I'm using the pbf files from the osm website. I was looking for a way to access the pbf files, I found that it can be accessed using the osmosis ...
0
votes
1answer
26 views

Exception error when enabling workspace specific services in Geoserver 2.5 OpenGeo suite

When I try and enable a workspace specific WMS in the bundled GeoServer app form boundless I get the following error. java.lang.reflect.InvocationTargetException This is running on OSX 10.9.5 with ...
2
votes
1answer
65 views

Whitebox GIS installation on linux

Can anybody give guidance to installing Whitebox GIS software on linux? I have already: set up a clean xfce4 machine installed java 8 successfully unzipped the latest version of whitebox (Iguazu ...
2
votes
0answers
125 views

Sqlite insert java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such column: SRID)

I'm trying to connect to two DBs and then copy tables by inserting rows from one table to another through java using JDBC. I'm using sqlite-jdbc-3.7.2.jar plugin.The setup is in Eclipse Luna. I'm ...
2
votes
1answer
52 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 ...
2
votes
1answer
69 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 ...
2
votes
0answers
26 views

Transforming from Java EE developer to GIS developer?

Currently i am working as Java Analyst programmer. But i want to transform from Java developer to GIS developer. I tried to pursue MS in SDSS but did not completed my Master Thesis. I have knowledge ...
3
votes
1answer
152 views

How to correctly configure OSGeo4W64 for Windows 7 64-bit?

I have successfully installed OSGeo4W64 on numerous new systems (actually EC2 instances) and had no issues. But I've run into an issue with it on a Windows 7 workstation that has a lot of JREs on ...
0
votes
1answer
162 views

Opening shapefiles with geotools

Trying to make a simple class that will read shapefiles and eventually be able to pull out the coordinates/attributes for each feature (working with points here). But can't quite figure out geotools. ...
0
votes
0answers
48 views

Geoserver ( Java.exe ) cause server to run 100%

Our server runs at 100% CPU when using map services build on geoserver + postgresql I can not find anything in geoserver logs. It is Java.exe takes 100% CPU and because of that server can not do ...
3
votes
2answers
54 views

Displaying a GeoServer Map from a Java Mobile Application

How can I display a Map generated by GeoServer from a Java Mobile Application? I would like to display it inside a Java App instead of a android application. Is this possible?
0
votes
1answer
30 views

GeoTools exception: failed to connect to EPSG database

I downloaded the GeoTools 11.2 binary and am attempting to get it to run in my Netbeans java application. I tried to run this part of code: ... SimpleFeatureSource source = ...
1
vote
0answers
34 views

How to use ArcGIS in JavaFX?

Can anyone help me use ArcGIS in JavaFX. I have a sample code but it's in swing application. Sample code for creating a map I would like to use it in JavaFX. Any suggestions?
0
votes
0answers
52 views

Problem with ArcGISRuntimeSDK for Java on CentOS 6.2 after Installing AMD Catalyst Driver

I am working to develop an application on CentOS 6.2 using the ArcGISRunetimeSDK for Java. The application works as expected when the default drivers are used (mesa, I believe), but immediately after ...
3
votes
1answer
136 views

Creating point in shapefile from latitude/longitude using GeoTools?

I m new to geotools and i find bit difficult to plot a point using the latitude and longitude values. can any one heple me out to solve my problem. GeometryFactory geometryFactory = ...
1
vote
0answers
67 views

How to check if a point is within bounded rectangle from Java

I make an AJAX request to retrieve data from a mysql database. I add the data to google.maps.Data layer as geojson. I would only like to load the data based on the viewport. To obtain the viewport ...