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

learn more… | top users | synonyms

0
votes
1answer
15 views

geotools decode featuretype

Encode: 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
23 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 ...
0
votes
0answers
19 views

How can I get a ModelAndView in geoserver's OWS? [on hold]

I'm Implementing a geoserver's OWS. I want to a specific method of the OWS get a ModelAndView as following: import java.io.IOException; import javax.servlet.ServletException; import ...
3
votes
1answer
37 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 ...
0
votes
0answers
27 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
14 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
26 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
37 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
28 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
27 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
48 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
13 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
77 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
19 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
83 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
32 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
13 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
51 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
19 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
93 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
23 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
47 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
17 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
36 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
26 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
41 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
24 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
74 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
27 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
20 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
18 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
68 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
7 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
48 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
45 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
0answers
35 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
93 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
50 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
21 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
68 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
21 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
32 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
33 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
22 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
75 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
14 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
33 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
82 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 ...