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

learn more… | top users | synonyms

1
vote
2answers
130 views

How to use Advanced Symbology in ArcGIS for Android?

I try to use the advanced symbology in order to draw nato symbols in JAVA I need little help about it, What the parameters _WKID mean like in this command : lmessage.setProperty("_WKID", "3857"); ...
1
vote
0answers
117 views

How can I call gdal_translate from Java code?

How can I execute gdal_translate in Java? For example, will something like this work? gdal_translate "PG:host=localhost dbname='xyzy' schema=public' table='xyz'" "d:\xyx\ab.tiff"
1
vote
1answer
378 views

Simple WebMapping application with postgis Database

am very new to web-mapping, so this question may be a little misguided. I want to develop a simple web mapping application using OpenLayers which can display Cadastral information that are currently ...
2
votes
1answer
155 views

How to modify the coordinates of a SHP geometry using Geotools?

I have a shapefile with some polygons. I would like to change the height for this elements using Java. The rest of the attributes should be the same. I've thought using GeoTools but I haven't found ...
1
vote
0answers
120 views

add an INDEX to an IFeatureClass with ARCGIS Java sdk

I want to add an index to a feature class. To do so, I used the very short and complete example given there: ...
1
vote
1answer
282 views

tomcat 5.5.20 on geoserver 2.3

i know it is curious, but i want to run Geoserver 2.3.0 on Tomcat 5.5.20. When i deploy the war file, it deploys successful but i cant start the Geoserver. Message: FAIL - Application at context ...
2
votes
2answers
90 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
0answers
582 views

retrieve some info from GRIB2 file with JAVA

I've just started parsing some info inside GRIB2 file with NOAA weather forecast, and I am realizing this task is not as easy as I could think 'a priori'. I need to process some info inside JAVA ...
2
votes
2answers
559 views

GeoJSON to Shape file conversion with geotools

Can someone please provide me an example of how to convert GeoJSON to Shape file using geotools?
1
vote
1answer
268 views

ArcObjects Java Calculate Line Length

I'm relatively new to programming and ArcObjects. I'm trying to simply calculate the length of a line (test.shp) using ArcObjects and Java. I've tried the code below with no luck. This is simple in ...
1
vote
1answer
910 views

Convert latitude longitude coordinate to x y coordinate?

I'm using a postgis database and java to develop my application. I need to transform my geographic data currently in latitude/longitude format into a x/y format. I found solutions based on UTM ...
2
votes
1answer
1k views

Installing GDAL with Java Bindings (gdal.jar) on Ubuntu 12.10

I am trying to build a postgis importer for mutliple shapefiles. After geotools took orders of magnitude longer than shp2pgsql to import my data, I decided to attempt to use the java bindings to GDAL ...
3
votes
0answers
164 views

Illegal argument exception while reading tiff image using GeoTools

I am working on a Java swings based GIS application to project my tiff image as maps . But each time I run my application I get Illegal argument: "semiMajorAxis=�" . The tiff images I have are working ...
1
vote
2answers
854 views

How can I link java with QGIS?

I want to create a Desktop project on Java which shows radiation dispersion. How can i Link java with QGIS? Is there any tutorial site i can get reference from?
5
votes
2answers
296 views

Need an Algorithm to Determining Polygon Borders

I'm currently writing a program in Java and I'm dealing with polygon objects. I want to create a different color border between touching objects depending on their class (i.e. land, ocean, etc). I ...
0
votes
0answers
53 views

Getting started to Web GIS development using JAVA [duplicate]

I am a newbie in GIS web development with java. I am starting to chose the tools(open source) to start with. Can i use degree with eclipse or should i use geomajas instead. thank you
2
votes
3answers
218 views

Making tracking data available to Geoserver

I have tracking data from GPS, which gives latitude, longitude, heading, etc. Right now it's stored in a non-standard database (Accumulo) and I'm looking into how best to make the data available for ...
1
vote
1answer
215 views

hibernate spatial DDL creation with maven hibernate3 plugin

This is a very special question, I hope that somebody here already worked in a similar project setup. I am working with Netbeans and started a maven web project based upon the maven HS 4.x tutorial ...
1
vote
1answer
129 views

Use Java to automate the service creation and display up to date data on the map

Our team is using ESRI ArcGIS and our requirement is 1.To create a web application in JAVA with a map displaying various data from DB. 2.The data gets updated periodically in the DB and the map ...
2
votes
1answer
193 views

NASA World Wind Pick From A Group Of Icons

I am using an IconLayer in NASA World Wind (Java SDK) to show positioned items on a map which works fine except for when several are in a group and start to overlay one another. The display of the ...
1
vote
0answers
440 views

Geotools, output to kml and convert meters

I have a complex problem. I'm using geotools 10.* I have input data: latitude, longitude (WGS_84), radius in meters, start angle (12 o'clock), end angle (clockwise, i.e. turn to the right). I need ...
5
votes
1answer
1k views

Hibernate Spatial 4 and Postgis 2.0

I'm having some issues integratings this technologies: Hibernate Spatial 4.0-M1 Postgis 2.0.2 (with compiled jdbc 2.0.2) Hibernate 4.1.1 The specific error is: Caused by: ...
2
votes
1answer
188 views

how to create a web app in java(spring framework) with automated service publishing to the ArcGIS server?

I am a newbie and my requirement is to create a web application in java. The app depicts the data like success, failures of my orgainsation's ventures at various Geo locations. The geo data is stored ...
1
vote
0answers
157 views

Renaming Columns in Geotools FeatureType

I am attempting to build a simple java program that loads shapefiles into a Postgis 2.0 database. Everything is working out great except that I would like to be able to modify the FeatureType in the ...
2
votes
1answer
244 views

Creating shapefiles using Java and Accumulo

I have tracking data with latitude and longitude stored in an Accumulo database table. We want to move toward using Geoserver for some layer display features on the client side. Right now I'm ...
4
votes
3answers
1k views

How to access an wms layer that requires authorization via OpenLayers?

Is there a way to send username and password parameter to a wms layer that needs authorization? If not, I guess it's perhaps a non-spatial thing to solve so that you before the javascript sends a ...
0
votes
0answers
16 views

location name judger

I am making a project which requires me to find out if a particular word in a sentence is the name of a city/state/country/any location basically. Can you please help me with some app/ a database.
1
vote
1answer
245 views

Geocode service findAddressCandidates returns no candidates with 10.0 address locator

I posted this on an esri forum but nobody touched it. We've recently updated a geocoding service and I'm now unable to return addresses to my Java application. The old service is built with a 9.3 ...
2
votes
1answer
119 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 ...
1
vote
0answers
33 views

When a raster is described in general as either a double or an integer how do conversions work for that type

I know a raster format is essentially a grid of cell values that may have values associated with color, but I'm unsure of how the primitive types factor into the format. In addition if I need to write ...
2
votes
1answer
95 views

Are there any open source distribution raster merging functions within JTS or GeoTools

I'm looking for something similar to the combine function from the ISelectionSet interface from ArcObject's SDK 10 .NET framework on a more scaled down level. Ergo, I don't plan on using that ...
4
votes
1answer
3k views

How to draw polygons on an existing map?

If you want a map with some circles, squares, etc. representing cities or something else you can use the following code. Note that you can change the map and the coordinates with yours, and you'll ...
2
votes
1answer
165 views

ArcObject 10.1 Java : Raster Analysis

I have been working with ArcObjects Java for a short time and have not been able to find a solution to the following problems: How to get the Raster object from a IRaster reference? IRaster raster = ...
1
vote
0answers
75 views

ArcGIS Server 10.0 Java - Upgrading JAI

I am developing a SOE for ArcGIS Server 10 SP 5 in Java. The SOE makes use of some GeoTools functionality - specifically the HeatmapProcess. I have written a small api (with all GeoTools, no ...
2
votes
0answers
313 views

How to open image file saved with JAI in Geotools?

I need to find NDVI and other vegetation indices and then find changes in time with tif images. I've been using Geotools for this. I took 2 tiff images, then using QGIS I changed them to PNG because ...
3
votes
2answers
667 views

Merging Shapefiles With Geotools

I am trying to merge some shapefiles with different schemas in geotools. Im aware of ogr2ogr, but for now I would like to figure out this problem with Geotools. The steps I'm taking are: 1) Create a ...
-2
votes
1answer
216 views

How do I set the protocolVersion using the jdbc postgres driver? [closed]

I attempted to concatenate a string to the url parameter of the below in order to set the protocolVersion, but I'm not sure how to keep the string in the url without altering the name of the database, ...
1
vote
1answer
173 views

layers in opentripplanner webapp

I am customizing the opentripplanner webapp according to my needs. it has 5 different base layers. but in code (in map.js and OpenLayersUtils) i can't find where it adds these layers to map.
2
votes
0answers
102 views

Basic unit testing for ArcGIS 10.0 Java Add-in

I've been assigned the task of translating an old ArcGIS VBA script into a Java add-in. I finished the rough translation of the code, now I'm starting the debug process. The first unit test I want to ...
2
votes
2answers
471 views

How to work with GDAL/OGR in Tomcat?

I make web application in Eclipse using GDAL. In Eclipse in Debug Configurations i add variable path=path/to/gdal/folder. In project i add gdal.jar to build path and copy gdal folder in lib directory. ...
1
vote
1answer
129 views

using geocoder of opentripplanner

I am developing a webapp using opentripplanner. I have followed 2 and five minute tutorials at their websites, there is also a opentripplaner-geocoder.war webapp, but i am unable to figure out that ...
0
votes
1answer
437 views

What can I use to read MapInfo files in Java?

I want to read MapInfo files using Java. Before I used geotools for this but now I have problems with the GDAL library in Win7x64. Can i find geotools or gdal only for Java? To it not usede gdal's ...
0
votes
1answer
182 views

Column exists in DatabaseMetaData, but does not exist in relation?

I am using JDBC to query a PostgreSQL database. And I want to populate a column called wiki_url based on the value of another column, level which will determine which value of 5 columns to concatenate ...
0
votes
1answer
348 views

Eclipse can't find Driver.class from postgresql-9.2-1002.jdbc4.jar file nor AbstractJdbc4Connection class

I am using the jar file in my configuration path after following the example from postgresql/jdbc tutorial. But after I added the jar file and configured it for my reference library when I run it I am ...
1
vote
1answer
97 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 ...
1
vote
1answer
336 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 ...
1
vote
1answer
106 views

building opentripplaner gtfs.zip [closed]

I am building a journey planner app using opentripplanner. i have followed their two minutes tutorial in which we just run webapp which uses pre build graph.obj file, it works fine. But in next five ...
0
votes
0answers
149 views

Help with opentripplanner

I have started working with opentripplanner (i am developing a journey planner app). I am following the two & five minute tutorial given on opentripplanner website. but while starting server using ...
1
vote
1answer
170 views

Having trouble setting up Eclipse for ArcGIS 10.0 Java development

I'm trying to setup Eclipse for ArcGIS development. I've been reading for days and weeks through the documentation and through the forums here and elsewhere. It seems that no one has this same ...
2
votes
0answers
30 views

How to convert a shapefile to WKT with GeoTools snapshot 9? [duplicate]

Possible Duplicate: Write out a WKT file from a loaded shapefile I need to convert a shapefile to WKT to be read in OpenLayers. The shapefile is one that has been created by Geotools. ...