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

learn more… | top users | synonyms

3
votes
0answers
176 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 ...
5
votes
2answers
299 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 ...
1
vote
2answers
927 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?
4
votes
2answers
2k views

How to develop WMS services in java?

Can anyone point me to any resources regarding developing a custom WMS service in java? I am seeking for a tutorial for an experienced programmer, but including the details of setting up the server ...
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
1
vote
2answers
430 views

Using java with mapinfo for integrated mapping?

Can we use integrated mapping with java? Are there any examples?
1
vote
1answer
217 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
0answers
463 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 ...
1
vote
1answer
134 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 ...
5
votes
2answers
4k views

How to parse KML data using geotools?

Geotools contains some packages dealing with KML: org.geotools.kml and org.geotools.kml.bindings. I assume it was designed to parse KML data. Do you know how to use it?
1
vote
0answers
162 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 ...
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.
4
votes
1answer
4k 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
0answers
82 views

MultiPolygon from database

I would like to know how to create an instance of a Multipoint from a PostGIS database.. I do the query , then got the ResultSet named "area" , the column with MultiPolygon attributes is named "geom" ...
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
96 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 ...
2
votes
1answer
171 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 = ...
0
votes
1answer
359 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
0answers
76 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 ...
6
votes
1answer
929 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 ...
2
votes
0answers
325 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 ...
-2
votes
1answer
238 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
184 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
2answers
501 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. ...
0
votes
1answer
474 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
210 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 ...
2
votes
3answers
4k views

Displaying Google Maps and OpenStreetMap map in Java?

Is there any Java API that is like OpenLayers ? I would like to display google Maps and Openlayers Maps in a java application
1
vote
1answer
108 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
157 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 ...
4
votes
1answer
910 views

Write out a WKT file from a loaded shapefile

We are looking to load and display a shapefile, simple polygons, then write out a WKT string of that shapefile and have the user save it somewhere. Does anyone have some code snippets of that very ...
2
votes
0answers
31 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. ...
1
vote
1answer
176 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
4answers
422 views

What GIS tools and packages are needed to find out nearby users in android application?

I'm building a location based android application with following requirements: Need to find out nearby users(i.e users using the same application) Need to find out users in the state Need to find ...
2
votes
2answers
622 views

How do you create a button in ArcGIS and have it run code?

I'm brand new to ArcGIS and have only a year or two of programming experience. I know Java and a little C#. I have a Java app that processes geographical data. I need to have a button in ArcMap that, ...
1
vote
2answers
599 views

looking for open source Java SE map viewer library that work with osm files or osm pre-downloaded tiles

I am new here and I hope I can find answers to my question here! I am developing a mapping platform for desktop, web, mobile (Android). I finally finished embedding mapping into my android software ...
1
vote
0answers
213 views

When I try to do a WMS request to geoserver using the leaflet API I am getting a format related error

This XML file does not appear to have any style information associated with it. The document tree is shown below. <ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
3
votes
0answers
409 views

How to sort a SimpleFeatureCollection using GeoTools?

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

What is the best practice for reading data from a raster band with Java and GDAL?

After using GDAL with Python for a year or so now, I'm getting back into Java and trying to figure out how to use GDAL with it. I am wondering if anyone has had experience with reading data from a ...
2
votes
1answer
979 views

Java client for WFS-T?

I have a geoserver with a postgis database on one server and an Java application on a different server. Now I need to connect these two servers so that the Java application can manage (create, alter ...
3
votes
1answer
371 views

OSS java approach to convert Shapefile to GML

We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ...
1
vote
2answers
325 views

Convert HMR to GeoTiff

I've got gigs of .hmr raster files from our customer and I need them to be converted into GeoTiffs or something else which can be nicely imported into Geoserver system. I wonder if I can do it with ...
2
votes
1answer
1k views

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS Java script API

I am new to programming in JSAPI. I have two dynamic layers and I want to set the property setMinScale(scale) and setMaxScale(scale) to layers so how do I Set ? ex. I tried using ...
3
votes
0answers
375 views

Convert Lat/Long to UTM specifying which zone to use (Java)

I have a set of coordinates in decimal degrees spread across two UTM zones in my Java application that I want to export to use in Petrel, so they need to be in the same UTM zone. Is there a java ...
2
votes
1answer
117 views

Java or .net platform is good for creating interactive web page [closed]

I have just now completed my degree in Spatial Information Technology, and learned how to use the ARCGIS platform and QGIS. Now I wanted to create a server/client webpage using mapserver for a project ...
4
votes
3answers
870 views

Java or .net for gis application

I currently use python for GIS scripting in arcgis and image processing using GDAL library. Now, I want to improve my programming skills for GIS application development both for desktop as well as ...
2
votes
3answers
1k views

how to extract lat long from WKT data?

i want to extract lat long form WKT data and stores into arary list i have tried one solution which is proposed by a user but it has some problems String str = tv.getText().toString(); str = ...
0
votes
1answer
905 views

How current is GDAL in Java

I have used the ogr2ogr to import various formats to Postgres and have used GDAL utilities. Is there a complete Java port for these tools? Or are they simply wrappers calling JNI to C++ code? I have ...
1
vote
2answers
336 views

Looking for material for learning geospatial development in Java

I want to begin using Java for geospatial development. For the purpose of learning I am interested in suggestions on some books, web sites, etc. (i.e. reference materials) that would help me out. ...
2
votes
0answers
214 views

How to get a AddIn to appear in customize mode categories?

I was hoping that someone here might have tried this, it seems like it could be a simple error somewhere. I was running the sample AddIn that was provided by ESRI and it worked fine until I tried to ...