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

learn more… | top users | synonyms

2
votes
0answers
21 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 ...
-2
votes
0answers
26 views

which is best programming on gis java or .net or any [on hold]

I am from India and working as a GIS Engineer(Cartographer). What is my next step to learn programming on GIS: Java or .NET or any?
1
vote
1answer
30 views

Unable to read different kind of shape files

I have written the java code to read the shapefile and insert it into the table. But the way I have written code it will accept only a multistring .shp file. It fails for other shapefile geometry ...
0
votes
0answers
9 views

How to display MrSid file on Openlayers map?

Currently i am implementing Graphical Information System using java tapestry. The problem is somehow i cant display SID file on a map. I'm using Openlayers to show the shp files i need without ...
1
vote
0answers
6 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 ...
0
votes
0answers
9 views

error using st_point with stored procedure (works in sqldeveloper but not in java)

A simple procedure: create or replace PACKAGE BODY TEST_PACK AS procedure test as begin insert into table_evw(shape) values (sde.ST_GeomFromText('point ('|| -73.16 || ' ' || 6.78 || ')', 4686)); ...
1
vote
0answers
16 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 ...
0
votes
0answers
28 views

Displaying measurements on a grid of the Earth

I'm developing an application where I need to draw the averaged results of some measurements on a map. Right now, I'm using Leaflet to draw the map with MapQuest/OpenStreetMap tiles, and have the ...
0
votes
0answers
10 views

Using ArcGIS SDK for Java to get Driving Directions

I'm very new to GIS and I may not know what I'm talking about at some points throughout this question so please bear with me. Currently I'm trying to make a Java application (using the ArcGIS SDK for ...
0
votes
0answers
23 views

ClassNotFound Exception: org.postgresql.Driver Using Geotool: gt-imagemosiac-jdbc-x.x.jar

I am a newbie to GIS, coming from a strict MIS background. Anyway, I have been having a little challenge for the past couple of days trying to import tiles and pyramids into my database. Using a ...
1
vote
0answers
12 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 ...
0
votes
1answer
22 views

Creating Shapefiles from MS SQL using ColdFusion/Java?

A client wants to export, from their MS SQL server, data into Shapefiles. I've looked around for a starting ground and have heard Ogr2Ogr mentioned and it seems intimidating. So I was wondering if ...
1
vote
0answers
25 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 ...
0
votes
0answers
23 views

Create RasterDataSet from 2d array

How i can create RasterDataset using a 2D double array : double[][] pixels OR float[][] i tried tow ways using IRasterDataset 1- IPixelBlock outBlock = outRawPixel.createPixelBlock(pnt); ...
3
votes
0answers
32 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 ...
0
votes
1answer
28 views

How can I convert bytes to geometry?

Recently I have reviewed that postgreSQL provides support for Geometry objects in database. But in my old sql servers I have bytes data type for shape in database. Now I want to convert those bytes ...
2
votes
0answers
31 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 ...
0
votes
1answer
18 views

connect gdal-java with tomcat

I am trying to run: SpatialReference poSourceSRS = new SpatialReference(); poSourceSRS.ImportFromEPSG(4326); String unit = poSourceSRS.GetAttrValue("UNIT"); System.out.println("unit: " + unit); on ...
0
votes
1answer
24 views

WFS response Format

I want to develop a WFS Server. When a client request read a layer, What the response of format should be? Note: The language of this project is java servlet.
1
vote
0answers
33 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, ...
-2
votes
1answer
55 views

Create an interactive map in java with shapefiles [closed]

How can I Create an interactive map in Netbeans by using a shape file of world map? Which of below options are suitable? OpenLayers, OpenStreepMap, GeoServer and WMP? How can them help me? Thank you. ...
0
votes
0answers
22 views

How to register a font (.TTF) to use for a GetLegendGraphic request in GeoServer?

The .TTF font in the data/styles folder & cleared my Resource Cache from GeoServer 2.5.2 but when I go to make the request it's not changing the font like one SE answer suggests. ...
0
votes
0answers
35 views

ESRI ST_Geometry struct parse in java

I am trying to read and parse the ESRI ST_Geometry which is an oracle user defined type in java manually, and I follow this instructions, and it said that: .... Points: Contains the byte stream of ...
0
votes
0answers
18 views

.ecw viewer in java

I am trying to implement a map feature in my Java app (it needs to be a component), the maps I'm using are orthophoto maps in .ecw format. The problem is that I can't find a proper viewer for that ...
0
votes
2answers
116 views

Read position from windows tablet GPS

I have a Lenovo Miix 2 tablet and I am developing a project with a Java servlet. I want to read GPS data in my project. Can I read this data using Java? and/or HTML5? update: In this project, I can't ...
1
vote
2answers
57 views

Load multi CSV files from local disc to Postgres

I want to load a lot of CSV files from a local disc in an already created postgres database. Which is the easiest way to do that? By using SQL or Java? I suppose that I need a loop for doing that, but ...
0
votes
1answer
29 views

ArcGIS WMS in Android. ArrayIndexOutOfBoundsException

I have a simple Android application that used the ArcGIS SDK to render a map, that works fine, but when I try to use a WMSLayer to render over my map, it generates me an ArrayIndexOutOfBoundsException ...
-1
votes
1answer
40 views

Partitioning Polygons layer to smaller partitions

I Have a huge polygon layer which contains many thousand polygons> i am going to operate an intersect loop for every point in the layer with near polygons. i use ITopologicalOperator op = ...
1
vote
1answer
55 views

How to transform data from a custom projection in JTS?

I have some data in NAD_1983_StatePlane_Texas_Central_FIPS_4203_Feet I wish to programmatically transform the coordinates to Lat long in WGS84 datum using JTS. I know that JTS can transform the ...
0
votes
0answers
6 views

Arcobjects Java event on featurelayer symbology change

I am working on an Java AddIn project for ArcMap. I need to find the event when user changes the symbology for a layer added in TOC. So far my best bet is to useIActiveViewEvents class on map, and ...
1
vote
2answers
82 views

Find unit of EPSG-Code

I need a way to find out the unit of an EPSG-Code (e.g: meter) from java (ogr, gdal, osgeo?) but any other approach would be fine as well. I want to do something like: if(epsg.unit==meter){ do ...
0
votes
0answers
14 views

How to obtain a `GridCoverage2D` from Geoserver raster layer?

I am learning java programming with geoserver. I see that in geoserver web services if you pick a raster layer as an input parameter (e.g. img1) from the web service builder interface, in the java ...
1
vote
1answer
70 views

How to Read&Write .tiff images in java using GDAL library

I searched many sites to learn about this but I didn't find anything. I need step by step process for reading .tiff monochromatic image in java using Gdal library.
0
votes
0answers
26 views

How to combine two `GridCoverage2D` to make a new `GridCoverage2D`

I was wondering if there is any GeoTools code example which combines two GridCoverage2D to make a third new GridCoverage2D? I can find examples for reading pixels from GridCoverage2D or writing a ...
0
votes
1answer
28 views

recommendation of map viewer

I am looking for software to present GIS files (OSM preferred) with these features: work offline (means I can download a map and present it online in the software). compatible with Windows 7, 32 ...
2
votes
1answer
42 views

How to programmatically partition a large Polygon in smaller parts within a given Area Threshold?

I'm looking for a Java library, or even an algorithm to do the following: I have a large polygon, about the size of a large city. I need to break it down into smaller polygons such that: The area ...
0
votes
0answers
28 views

Is there anyway to load a Geoserver map through a Rest Service that I have created?

I am in need of loading my geoserver map through a "proxy" which is my backend java. So I was wondering if it was possible to load the tiles through a rest service call. Here is what I have as a rest ...
0
votes
0answers
23 views

need help to learn coding in GIS [duplicate]

I did my masters in GIS, and I am looking forward to learn coding in java etc for GIS, need help in choosing the courses related to coding / development side of the GIS industry.
0
votes
0answers
38 views

ogr2ogr in java gdal

I would like to code ogr2ogr -f "GeoJSON" destination.geojson source.geojson -s_srs EPSG:3068 -t_srs EPSG:4326 in java-gdal. I tried to understand how it should work by looking at this example but ...
0
votes
1answer
35 views

Usage of gdal.Polygonize(,,,)

I am trying to code gdal_polygonize source.png -f "GeoJSON" destination.geojson with the java-bindings of gdal. I don't know how to make gdal.Polygonize(...) create the "DN"-Fields one obtains when ...
1
vote
1answer
45 views

Using Intersect tool Java

i am trying to pass polyline and polygon feature classes i am not sure how to pass the list of features to the Intersect object: i tried this method: ArrayList<Object> featuresList = new ...
0
votes
0answers
45 views

Creating WMS Tile images on server Programatically

I am using WMS services on client side applications, OpenLeyers. I am adding Tile service for base map, WMS service for road ways, cities etc. Javascript app is creating a view of services. Can I ...
0
votes
0answers
55 views

How to delete a feature class from a GDB using ArcObjects for Java?

I've seen this solution which may works in ArcObjects for VB/.Net: How to overwrite a shapefile or feature class using arcobjects When I try to convert it into Java, I get a ClassCastException on ...
1
vote
1answer
54 views

Use osm2po to extract additional tags

We would like to improve our bike routing to also incorporate, for example, the information on the surface of the used streets. I don't quiet get how I should use the Osm2Po plugin in mechanism. I've ...
0
votes
1answer
75 views

Using gdal-java of OSGeo4W

I would like to use gdal_polygonize and gdalinfo in java. This site says: "Note that OSGeo4W includes a gdal-java package and a Java runtime making it fairly easily to build local Java applications ...
3
votes
2answers
91 views

Finding the boundary polygon from a set of gridded points (no hole)

Let us consider a set of a 2-D points (longitude, latitude) each of which is centre of square grid (intersect point of the diagonals of the square). I try to make you understand what I want to do in ...
1
vote
0answers
31 views

Spatial and property search

We have a lot of polygons(some of them contain holes) and there are also a lot of points inside different polygon, these data are processed as ESRI geodatabase format. Now we have to do some spatial ...
2
votes
0answers
136 views

Advice needed on JavaFX Map Rendering

A few months ago I inherited an old (10+ years) Java Desktop application that used maps and simple icons to represent point data to various users. The application was writted in Swing and used Esri ...
2
votes
2answers
640 views

GeoJSON java library

I am creating a Java web service that receives GeoJSON. Does anyone know a java library to manage GeoJSON?
1
vote
0answers
15 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 ...