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

learn more… | top users | synonyms

4
votes
0answers
419 views

Hibernate Spatial - 'Invalid endian flag value encountered' Exception

I'm trying to run a simple query in Hibernate Spatial 4.0 on PostgreSQL 9.3. I have a number of objects in a table with latitude/longitude values, and I'm trying to query objects that fall within a ...
3
votes
0answers
106 views

Memory issue inserting a large dataset in GDB with ArcObjects

I am using the ArcObjects API for Java to load a very large dataset in a File Geodatabase in one feature class. The whole dataset I have to load is composed of 200 datasets of 30k polygons, and I ...
3
votes
0answers
56 views

Adjacency matrix for polygons using Java

I am trying to create an adjacency matrix from a set of polygons. That is, I have a bunch of polygons and I want to identify which polygons have a common edge or "touch" each other. Once I find this ...
3
votes
0answers
155 views

Rendering performance

I am using ArcGis Java SDK for creating a map in my JavaFX application. I have a requirement to plot up to 500,000 graphics on graphics layer. When I do 100,000 graphics its performance is really bad. ...
3
votes
0answers
401 views

Convert land-based camera image pixel x,y to ground lat/long or x,y,z

I have a number of cameras at various known locations (x,y,z) and directions that are above ground about 20 feet pointed at different ground locations about 100 feet away from each camera, and whose ...
3
votes
0answers
274 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 ...
3
votes
0answers
576 views

How to sort a SimpleFeatureCollection using GeoTools?

I have a featurecollection: SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(dbFeatureType); SimpleFeatureCollection collection = FeatureCollections.newCollection(); while ...
3
votes
0answers
544 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
0answers
81 views

PostGIS: What is the difference between regular R-tree and R-tree on top of GiST?

I have built a spatial index structure that I am trying to compare with other existing spatial index structures. I have to either code (in Java) the same logic that PostGIS uses or find a java library ...
2
votes
0answers
132 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 ...
2
votes
0answers
57 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 ...
2
votes
0answers
628 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
0answers
622 views

Building java based desktop map application using embedded database such as spatialite

I am relatively very new to building GIS based applications and have a very limited understanding in this area. So I need some help in building a java based desktop application which would generate ...
2
votes
0answers
538 views

How to start developing with Jeppesen C-MAP?

I've just downloaded all the contents from the FTP of Jeppesen for their product called C-MAP CM93. I've been reading the documentation contained in the SDK folders, but I can't figure out how to ...
2
votes
0answers
694 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 ...
2
votes
0answers
282 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
0answers
184 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
0answers
503 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
0answers
129 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
0answers
93 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" ...
2
votes
0answers
189 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 ...
2
votes
0answers
414 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 ...
2
votes
0answers
261 views

Developing maps using Tile Mill and Processing(.org)?

I had a small question. I actually would like to build an application which is very similar to this but as a map and not on “Multi touch Table Top”. The functionality I need is Plot different ...
2
votes
0answers
295 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 ...
2
votes
0answers
318 views

ArcObjects: How to get a reference to layer in a java add in

I am trying to implement a java add-in version of this solution: unique value symbolize layers from a lookup table. At the same time I want to start coding in Java for the ArcGIS Desktop, so I am ...
1
vote
0answers
7 views

Geoserver: Exception when importing KML

I have a KML that I would like to import into Geoserver. The KML originates from a Geoserver WFS getFeature Request itself and looks like this: <?xml version="1.0" encoding="UTF-8" ...
1
vote
0answers
27 views

Creating shapefiles using java?

I have a running java service which gives me a count corresponding to every 5-digit zip code in Newyork state. Now i want to feed this input to QGIS programatically so that the color of every polygon ...
1
vote
0answers
31 views

How to get speed and acceleration from trajectory data?

I am using Java and netbeans as a IDE to develop a project. I have got some trajectory data by applying a spatial query. My question is, how can I get speed and acceleration for these trajectory data? ...
1
vote
0answers
35 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 ...
1
vote
0answers
15 views

Making feature layer selectable in ArcObjects Java without getting AutomationException 0x80004005?

I am currently making a FeatureLayer from a resultset. The feature layer seems to work properly and will display on the map. However when I choose "select all" on my feature layer I get the ...
1
vote
0answers
28 views

How do I add my code to Geoserver?

I get geoserver 2.8-SNAPSHOT code from github. I delete some madules of it. Geoserver developed with Spring framework, Now I want to add my Controllers to this project. Some of My controllers have ...
1
vote
0answers
110 views

lat lon to ease-grid 2.0 using proj4j

I’d like to use PROJ4J to project wgs84 lat lons to the Equal-Area Scalable Earth (EASE) 2.0 Grid. It seems the EASE 2.0 grid uses the Behrmann projection which is just an Cylindrical equal-area ...
1
vote
0answers
25 views

Grow area in one direction

I am using GeoServer WPS process to process two geometries. I want to expand one of the geometries in the direction of the other. So far I am using the .buffer function but it expands the geometry in ...
1
vote
0answers
57 views

How can I change Java version for QGIS?

I have a custom made plugin for QGIS, which uses Java JDK (running on Win7x64). If the JAR file is run through command prompt, everything works great, but when the same command is used in plugin, it ...
1
vote
0answers
104 views

gdal.jar and .dll placement with gdal.Allregister();

I built gdal and java bindings for gdal. My environment variables I added (Windows 7 64 bit): CLASSPATH = C:\Program Files\Java\JDK1.8.0_40\lib; C:\gdal-1.11.1\swig\java\gdal.jar the dlls ...
1
vote
0answers
44 views

How do I generate a WorldWind importable image file with a transparent background using an SLD file with PointSymbolizers on Geoserver?

I've been tasked with visualizing a few types of metoc data onto Worldwind based on .grib files. I'm VERY new to the GIS world and I'm just beginning to figure out how a lot of these pieces go ...
1
vote
0answers
15 views

Replicate results from JSI using PostGIS

I am using OSM and facing an issue with finding the nearest road-segments to a given lat/lon point. I have a code that uses Java Spatial Index JSI which traverses the RTree index while computing the ...
1
vote
0answers
102 views

Unable to Load GloVIS using Java 8 due to Security Requirement (Windows 8, Java 8 v.40)

After migrating to a new PC running Windows 8.1 (64-bit), and updating to the most recent Java 8 version (update 40), I am unable to load the GloVis website (http://glovis.usgs.gov/); every time it ...
1
vote
0answers
58 views

Print two different maps object in one layout template in Arcgis javascript api

I'm trying to publish a print service that accepts two maps objects, sent by javascript and print them, I found PrintTask() wedjit, something like printTask.map=map, my goal is to try to send two map, ...
1
vote
0answers
21 views

TIFFDirectory.getAsMetadata() is not including GeoTIFFTagSet. Any solution to this problem? — JAI

The source code appears to simply copy the TagSet List object to the IFD and then the TIFFMetadata. I don't understand where it is losing the tagset as it is in the list before the call. Anyone ...
1
vote
0answers
107 views

Leaflet CRS.Simple or CRS.EPSG3857 conversion Problem

I'm using v-leaflet (0.61) , a vaadin plugin, to visualize some layers over a map. Clicking on the map, I create a wms query to geoserver. The query needs some parameters and one of them is the bbox. ...
1
vote
0answers
22 views

How to add buffer in geomajas

I am new user to geomajas.I have created geomajas plug in and I am using geotools to add shape files. and I want to create buffer on layer(road layer,or polygon layer) ,but i am not getting exact ...
1
vote
0answers
40 views

Geomajas Error“org.springframework.beans.factory.BeanNotOfRequiredTypeException”on Feature Info Tool

I am using use geomajas 1.12.0 version. I have with published road.shp file on map. i found this error when i use show feature information tool on my vector layer(road layer) with my road layerOsm ...
1
vote
0answers
35 views

how to integrate geomajas i.e. clientside gwt base framework and serverside

I am new to geomajas opensourse project.I have successfully build client-GWT maven project and server-side maven project.Now i want to integrate client side with server side project so that i can use ...
1
vote
0answers
139 views

Why does this Geotools Java reprojection to WGS-84/4326 cause offset?

I am using the block of code below. I am reading in a geotif with a UTM zone projection and converting it to 4326. I am pulling out certain multiband values and creating a new raster, when I plot the ...
1
vote
0answers
22 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
0answers
78 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
0answers
157 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 ...
1
vote
0answers
145 views

ArcGIS Server Error - ClientCommunicatorAdmin restart

I am seeing some strange behavior each night with our ArcGIS Sever installation where it will throw the following error and become unresponsive. Sep 01, 2014 4:03:06 AM ClientCommunicatorAdmin ...
1
vote
0answers
90 views

How to create schematic attribute as associated field using ArcObjects?

I'm trying to automate the complete creation of a schematic template with ArcObjects SDK for Java (10.2). I've managed to create the GDB, the schematic dataset and the schematic diagram class ...