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

learn more… | top users | synonyms

0
votes
2answers
140 views

dijkstra_sp runs without error in postgres query terminal, but triggers an error in Java

I am running this simple query select id,gid from dijkstra_sp('roads',22,33) This works perfectly fine and returns results in postgres query terminal. However running exactly the same query in java ...
2
votes
2answers
613 views

OpenLayers WFS implementation in java for editing and saving data

I am new user in openlayers and want to implement WFS layer to edit and save data to postgis tables.am using netbeans as development environment and m very new in that.Can anyone to help me regarding ...
1
vote
0answers
183 views

Applying colormap to grayscale tiff image using java

I have a gray scale tiff image.Now i want to add some pseudo colors i.e for pixels whose DN from 0-140, red color;DN from 141-255 ,blue color.Please tell me how to modify the raster table.Otherwise if ...
5
votes
2answers
517 views

What does it mean to QI and how is it done?

I'm new to Esri's Arc* interfaces, and trying to figure out how to register an existing table using the ArcObjects API. The following question answers this to some extent: Is there any way to write a ...
2
votes
2answers
6k views

convert wgs84 coordinate to Google Map coordinate system(EPSG 3785) with geotools and java

Could you please point me out where can I make such a transformation: convert wgs84(EPSG 4326) coordinate to Google Map coordinate system(EPSG 3785), and vise versa. Thank you.
1
vote
2answers
1k views

Collecting street data to populate a graph stucture for routing

I'm implementing a basic digraph with weighted edges for street routing in a small geo area (600mx600m). How and where can I get the required data to populate such a structure? I've been reading about ...
2
votes
2answers
600 views

How to create hibernate layers at runtime?

We need to dynamically create hibernate layers from shapefiles. As far as we understand, the workflow is following: Import shapefile to database(creating new table for each shapefile?) Is it good ...
2
votes
0answers
172 views

Rerendering OpenLayers in JSF2

did anyone try rerendering OpenLayers in JSF2? I am using a4j:ajax events, I mark the render atribute with render="map" where map is naturally the id of the openlayers div tag, and I use ...
5
votes
1answer
436 views

GIS-based reporting and maintenance tool

Background Conceptually, I am looking for a tool, or suite of software tools that can be readily integrated to help browse data using a GIS-based map (such as Google Maps). The proposed architecture ...
1
vote
2answers
571 views

Java GIS framework with custom shaped markers

I am completely new to GIS theme and I found this board so I hope I can get good advices from experienced users. I need to find an open-source Java framework/library/api that would generate an map ...
2
votes
0answers
352 views

web service to find the shortest path

if you have any idea that can help me I would be grateful :):) So i should create a web service wich will communicate with my android application .in my android app the client choose two point start ...
6
votes
1answer
637 views

Data visualization and maintenance tool

Background Looking to leverage an existing GIS system for exploring organizational data. Architecture The following figure represents a high-level overview of the system's desired features: The ...
1
vote
0answers
102 views

Merge polygons into a single polygon [duplicate]

Possible Duplicate: How to aggregate detached polygons? Is there any open source java library to merge polygons? My use case is that i have a few building feature polygons close by. I need ...
0
votes
2answers
406 views

GeoTools 2.6.5: Cannot get JMapFrame to work because of problem with processStylers

I am trying to get JMapFrame to work to visualize some feature. Unfortunately I keep getting errors although this test app can be started. Toolbars etc. are shown. 18.02.2011 16:44:38 ...
0
votes
2answers
156 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
1answer
776 views

Create Geotiff from Tiff using java

Respected sir/madam, I want to add geo tags to existing TIFF file and make it to geotiff file. Otherwise, for bufferedimage is it possible to add geotags to make Geotiff file. Thanks in advance...
1
vote
0answers
463 views

Create a color scale/legend for choropleth map using geotools (or other open source Java library)?

I'm experimenting with choropleth maps using geotools. Is there an easy way to add a color scale to the map (using geotools itself or some other os library)? By a color scale I mean a bar that shows ...
1
vote
0answers
279 views

how do you create an editable combobox addin for ArciGIS using Eclipse

Arc have a walkthrough to take you through this. Looks like I'm still crawling. The walkthrough can be found here: ...
4
votes
1answer
461 views

Can PostGIS functions be written in Java?

I am wondering if there is a possibility of programming new functions for PostGIS using Java, so that you can refer them same way as classic PostGIS functions are. Something like this: CREATE OR ...
2
votes
1answer
614 views

Oracle spatial - check polygon vertices counter clockwise

I need to import a huge number of polygons from a third party (as a csv file- array of x,y's). I have to check whether the polygon vertices are in clockwise or counter clockwise, finally i have to ...
3
votes
1answer
1k views

Implementation of a tiled map service

I have been looking for solutions on the Internet for the last two days without finding answers. Currently, I have a Java web application that displays a map using OpenLayers. The problem is that the ...
1
vote
0answers
153 views

Get centroid of SimpleFeatures in GeoTools8

I've got some SimpleFeatureCollections and now I want to get the Centroid of every SimpleFeature in the collection. Unfortunally I've only found a centroid method for Geometry. Is there any way to ...
2
votes
3answers
668 views

Comparison of Java-based GIS Programs

Hi I want to develop GIS Application in java I found some of useful software like UDIg,Openjump,KOsmo & gvsig but i am unable to decide from which should i start as i want to create my ...
2
votes
2answers
833 views

How to add a background map to a java project?

I'm new at GIS. I am trying to make a java application that can display a map with certain points. I have achieved this using the geotools library. However, I want to put the map from OpenStreetMap or ...
1
vote
1answer
266 views

Can I create OGC Services via Geoserver automatically?

I am new to GeoServer and wonder how I can create OGC Services via Geoserver automatically. I have to publish my data (Shapefiles) with a Java program as OGC Services. How can I do that? BTW: I ...
2
votes
2answers
352 views

flex to java trying to get started on the plan

I have as suggested recently on this forum been "playing" with arcgis server. For reasons perhaps not obvious to "real" programmers I have built a fairly extensive series of web mapping applications ...
5
votes
2answers
2k views

How to use NASA Digital Elevation model data?

I've heard it is possible to use NASA elevation model to determine approximate elevation at (lat;lng) point. This might be really useful for my upcoming project since Google Elevation API has weird ...
5
votes
3answers
276 views

GIS Application for online map and journey planner

I am planning to implement an online map application with journey planner for a city. I don't have any experience in GIS development but I have a few years of experience in Java development. So ...
4
votes
2answers
336 views

How to register shapefiles to an image?

I'm generating images from various sources and the projections are not necessarily known ahead of time. The images are subject to interpolation and other alterations while being rendered, but I can ...
1
vote
1answer
163 views

How to merge multiple shapefile via ArcEngine 9.3 Java?

I try to merge the some shapefiles into one by using ArcEngine java platform. But it seem like that parameters of my merge class is wrong ,i google it a long time and got nothing. Pls figure my ...
2
votes
2answers
1k views

Formula to get polygon centroid

I need to compute the centroid position of an irregular polygon with lat and lon coordinates in Java. Which formula should I use to correctly compute a centroid?
1
vote
1answer
701 views

How to get elem_info array from WKT or JTS Geometry in Java?

I have Well Known Text (WKT) string with geometry. Now I want to create Oracle Mapviewer SdoGeometry, which needs sdo_elem_info array as one of arguments which is an array of doubles. How can I ...
5
votes
2answers
3k views

java vividsolutions jts wgs-84 distance to meters

my (java) project uses com.vividsolutions.jts.geom, which provides a distance function. After some googling I finally found that the return value from this function is in central angle degrees, when ...
6
votes
3answers
787 views

Add map making to java desktop software

In my project (a desktop application) I need to create a map with three layers, basic geographic layer at the bottom, a GSM coverage area layer on top of it, and then a location based services layer ...
1
vote
1answer
1k views

How to connect GeoServer with Java to a PostGIS/PostGres database?

I am having trouble using GeoServer to perform a shortest path analysis between two network points. My question is about connecting GeoServer with Java to a PostGIS/PostGres database. I know that in ...
0
votes
1answer
269 views

Any known problems after Tomcat-upgrade using oracle locator?

After trying to upgrade from Tomcat 5.5.28 to 5.5.29 or above I ran into a strange problem. We use a linux based gis system using an Oracle EE DB (without spatial license). Problem After the upgrade ...
5
votes
1answer
296 views

How to add Opencarto to a Geotools project?

I've installed geotools through maven (and m2ecplise) but i'm not able to add opencarto library to my project. (As you can guess, I'm new to java) I tried by adding opencarto's main folder as library ...
1
vote
1answer
291 views

Building orientation and simplification using Opencarto Java library

I need to find out orientation of buildings and perform simplification of sides of buildings with a tolerance. I came to know from StackExchange that OpenCarto has useful libraries for geometrical ...
2
votes
1answer
872 views

How to extract data from a POINT column in PostGIS using JAVA (jdbc)

How do you get a value from a column which has a point data type. I've just switched over from MySQL to PostGIS. I have a column which is called point and is of type Point. I want to get that value ...
3
votes
3answers
695 views

Looking for a Java library for tracking positions, and querying regions

I have a deceptively simple requirement to create a software component to record and update some mobile position information, then be able to perform simple queries concerning mobiles in a particular ...
3
votes
4answers
1k views

best browser framework

Dear all, I am building a GIS system. All my data is stuffed into geoserver. I need to have a front end able to do the following: Select one or several layers from geoserver and show it to the end ...
6
votes
1answer
2k views

Find nearest POI of given GPS coordinates

I am new to GIS and need to achieve the following: Find the nearest train station or bus stop of given GPS coordinates in a Java application. Since there are many coordinates to be checked, an ...
1
vote
1answer
545 views

Problems with gdal1.8 Java bindings gdal.ReprojectImage, produces no data

I have a problem with gdal.ReprojectImage from gdal1.8 Java bindings. When I perform the reprojection, the projected image is totally black. And the origin of the projected image is wrong too. There ...
3
votes
1answer
1k views

Is there a WFS and WFS-T Java library that plays nicely with Android?

I have a GeoServer database and various programs that query it and so forth using GeoTools. Now I'm making a map app for Android, but not only is GeoTools quite large with all it's dependencies (15 mb ...
3
votes
2answers
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 ...
1
vote
0answers
333 views

Argument is not a com object : null

With ArcEngine 9.3.1 in java (but I suppose, it's the same in .NET), I'm developping an application which loads a mxd file. This file contains about 20 layers with shapefile, JPG's, TIFF's files. This ...
3
votes
2answers
453 views

Is there a common interface for ST_Geometry SDO_Geomtry

I've worked a fair bit with Oracle Spatial and I've had some requests to transition to PostgreSQL Spatial. Is there a common interface for SDO_Geometry and ST_Geometry? I'm working in Java with ...
12
votes
3answers
4k views

Algorithm to find nearest point

I've a list of a few hundred cities with their latitude/longitude. Given another location (also in lat/long) I need to find the nearest city. As I don't use any GIS, by now the obvious algorithm is ...
4
votes
4answers
4k views

How do I remove Schema Locks from a File GeoDatabase in Java in ArcGis 9.3?

I have an application written in Java which uses ArcObjects 9.3. The application accesses a file GeoDatabase. The application produces output in the GeoDatabase that will be accessed by ArcMap. The ...
3
votes
1answer
715 views

Good Java-Based Raster Libraries

Can anyone suggest a good, Java-based raster library? By good, I mean a library that can read common raster formats (ex. tif, img...etc) and save them to other image formats (ex. png). I say ...