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

learn more… | top users | synonyms

1
vote
0answers
14 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 ...
0
votes
2answers
47 views

GeoServer failed to start on Tomcat 8.0.24

I am trying to get GeoServer up and running on an Amazon EC2 instance but it does not work. I am using Java 8 (Oracle) and Tomcat 8.0.24. The thing is I have got the same stack up and running on a ...
0
votes
1answer
25 views

How can I determine elevation levels for a region in Java?

I need to find out the elevation levels for a certain region (center is located at 132.159633, 43.350116). For this purpose I went to the Elevation finder and downloaded there the relevant part of ...
2
votes
1answer
21 views

JAVA GIS create shapefile from FeatureLayer

The title kind of saids it all. I am attempting to export a featurelayer to a shapefile and am not having any luck finding a library which includes this functionality or relevant code to see where to ...
0
votes
0answers
10 views

How can I use geoserver's user management for my application

I'm developing a gis application with java. My layers are in geoserver. Layers have different permissions, some layers have public permissions and some of them have private permissions. for private ...
1
vote
2answers
44 views

How to programmatically import a Shapefile into Oracle DB using Java?

What's the best approach to import a user uploaded shapefile into an Oracle DB? The dbf, shx and shp files of the Shapefile come in a ZIP Archive. Currently, we unzip programatically and then parse ...
-1
votes
1answer
43 views

GeoTools decode FeatureType

Encode: 1- A way of encoding a FeatureType is: SimpleFeatureType TYPE = DataUtilities.createType("Location", "geom:Point,name:String"); GML encode = new GML(Version.GML2); encode.setBaseURL(new ...
0
votes
0answers
38 views

Establishing direct connection to ESRI geodatabase on Oracle hangs while not in debug mode

Recently I have been trying to establish direct connection to oracle geodatabase using Java API. The problem is, that when I execute the code, the connection works fine only in debug mode when I ...
3
votes
1answer
42 views

How do I produce a GeoJSON with 1 point at a certain lon/lat?

I need to create a GeoJSON string, which contains exactly one point at lon/lat 132.159633, 43.350116. I'm trying to use GeoTools 12-RC1 for that. Let's say I have following method, which is supposed ...
1
vote
0answers
10 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 ...
0
votes
0answers
31 views

Gdal Polygonize Java

I tried to use the gdalPolygonize function within in java. What I did Installed gdal-111-1800-x64-core from the following link ...
1
vote
0answers
19 views

How can I manage geoserver requests and my page requests in web.xml file? [closed]

I'm developing an GIS application. I need wfs and wms protocol in my application. I want to use Web Feature Module, Web Map Module and Geoserver Web Modules of Geoserver's modules. For using these ...
0
votes
1answer
38 views

How to do a coordinate transformation with EPSG codes in CTS?

Let's say I want to convert the following WGS84 (EPSG:4326) coordinate to UTM32N (EPSG:25832): 54.321, 9.876 Is there any tool to reproject x,y coordinates, apart from Proj4? links to the CTS wiki. ...
0
votes
1answer
60 views

What simple and light Java library to use for WGS84 to UTM conversion?

Geotools and Geotoolkit are huge and complicated. CTS (1.3.3 from Maven) failed on me by not even being able to run its own test example (slightly modified ...
0
votes
0answers
30 views

How to read/write a DGN file with java?

I want to read/write a DGN file with java code. Is it possible?
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 ...
2
votes
1answer
56 views

How can I integrate my application security with GeoServer security

I'm going to develop a map server with my own logic and entities. It will have a Postgres database, user management, specific layers with certain types, WFS, WMS, etc. I'm going to use springframework ...
0
votes
0answers
31 views

Exception access violation while executing Java ArcObject application

I have developed an visual application using ArcObjects SDK for Java 10.2 which worked well until yesterday. Since, I'm facing a fatal error (full trace below) while I don't feel I have changed ...
0
votes
2answers
89 views

Using Geotools: How to convert these strange coordinates from a shapefile into regular lat and long?

I use this dataset from the European Union: http://www.eea.europa.eu/data-and-maps/data/administrative-land-accounting-units Opening the shapefile with Java' Geotools, I see coordinates like: ...
0
votes
0answers
21 views

Merging - Aggregation of Rasters

I'm a beginner in Java and a geomatics student. I'am using IntelliJ and I work in Java. I create two raster with the BufferedImage Java class. Raster1 Raster2 These images show for raster1 the ...
1
vote
0answers
100 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 ...
0
votes
0answers
35 views

How to access an ArcGIS Server secure service from java

I want to call an ArcGIS Server service through Java. The service is locked and only the publisher and administrator can access it. If I know the credentials, what sort of authentication should I ...
0
votes
0answers
14 views

How can I get back to the Feature that my Geometry is the geometry of?

Let's say I have some Feature and just got its Geometry out of it. Geometry geometry = feature.getGeometry(); Is there a way to get back to the "originating" feature if I did not have the variable ...
0
votes
1answer
55 views

Run the GUI of JTS 1.12

I've got an error in JSTS (JavaScript Topology Suite) library based on JTS (Java Topology Suite) v1.12 (r405). But there is no error in the last build of JTS on the same test case. So I want to check ...
0
votes
0answers
24 views

xml Response Document into OGC-WPS standard: a execute java process solution

I'm implementing some java process into Geoserver OGC-WPS standard. I start with the following simplest code: package org.geoserver.wps.nais; import org.geoserver.wps.gs.GeoServerProcess; import ...
0
votes
1answer
159 views

How can I see specific location on java desktop application?

I want to see a desired lat/lon point on the google maps on my java desktop application. I made some search so I think google map API is something which I looking for. Am I right? and Is there any ...
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 ...
0
votes
0answers
80 views

java.lang.IllegalStateException: Form too large 326482>200000

I have a problem with Geoserver style creator! When I want upload a SLD file that I create it by QGIS I will see this error! Geoserver 2.6-SNAPSHOT, QGIS 2.8 HTTP ERROR 500 Problem accessing ...
0
votes
0answers
22 views

GeoTiff error when building Jar with GeoTools

I'm seeking some help with GeoTools. I've been using it for a school's project, I had almost no problem until now. But now that my project is done, I've tried to build an executable jar with the ...
0
votes
0answers
43 views

“require” is not defined in GeoServer's community scripting extension (Javascript)

I'm attempting to use GeoServer's Community Scripting Extension for JavaScript. I've installed it according to the instructions, and when I try to reproduce the WPS Hook example, I receive the ...
0
votes
0answers
30 views

Problem Installing GDAL extension for Geoserver - java.lang.UnsatisfiedLinkError

As the title states im getting an error trying to install the GDAL extension for Geoserver 2.7 (My goal here is to enable MrSID support). The complete error message is: ...
1
vote
1answer
52 views

How save modified features in server side with java and geotools?

I'm developing a gis Application with java. I use Spring 4.0.1 and GeoTools-13-RC1 in server side and OpenLayers 2.13.1 in client side. In client side, I have a wfs layer and it is as follow: var ...
0
votes
0answers
25 views

mapinfo and java tools

I am hoping to develop a mobile application under android or my database is a card(map) produces by mapinfo professional version8.0 My questions are: To read this card(map) (the file containing ...
0
votes
0answers
89 views

Java error using iframes in IE11: The viewing session is not available or has expired

In IE11 I get an error message (see below) when calling a tomcat7 webapp (BIRT runtime viewer report) from a leafletjs popup inside an iframe. First of all everything works fine in firefox/chrome, ...
1
vote
1answer
33 views

Geotools geoTiff running slow

I am using following code to display geotiff file. Its only a small file 1,5MB but when I am moving map I have online white screen which gets loaded after I finish moving but it is a bit slow for me. ...
0
votes
0answers
23 views

How can I modify the records of geotable and non-geotable in app application with hibernate-spatial and geoTools

I want to develop a GIS application with JAVA. I want to use Spring-4.0.1, and Hibernate-4.3.x. The application’s Database have GeoTable and Non-GeoTable. The records of all tables are modified. I can ...
0
votes
0answers
11 views

Missing importfromURN method in gdal java wrapper

The java wrapper of gdal doesn't have the method importFromURN, and I want to use the projection system which is specified in the URN string format. Is there a way in which I can do that? Maybe I can ...
1
vote
1answer
23 views

Geotools loading MBTiles

is there a way to load MBTiles file using GeoTools? I need to work with huge map an so far I have tried PNG + world file which was unusable (slow speed due to large files - 150MB). So I am thinking ...
0
votes
1answer
77 views

How to convert citygml fo KML?

I am trying to render citygml files. I am using NWW for rendering purpose. I have used citygml4j library to extract the GroundSurface, roof, and walls geometry, and was able to render them. But due to ...
0
votes
0answers
10 views

Error in using gdal java binding

I am using the java binding of gdal to project a set of coordinate points from UTM to lat/log using the CoordinateTransformation Class of gdal. I have written the code as follows: ...
0
votes
1answer
67 views

Extract geometry from citygml data using citygml4j

I have a citygml file with some buildings. And I am trying to extract the geometry of the polygon in that building using the citygml4j library. I have looked at the FeatureWalker class but I am unable ...
1
vote
0answers
51 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 ...
0
votes
1answer
44 views

Points contained in envelopes that cross date-line - java

I'm using the ESRI Geometry Java API https://github.com/Esri/geometry-api-java I want to construct an envelope and see if it contains certain points. It's possible the envelope crosses the ...
1
vote
0answers
20 views

How get geoJson layer whit geoTools? [duplicate]

I have a class in java: "MyPoint" Class: @Entity @Table(name="MyPoint") public class MyPoint{ @id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long Id; @Column ...
3
votes
0answers
101 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 ...
1
vote
1answer
53 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
22 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
78 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
26 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
40 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 ...