An object-oriented cross-platform programming language developed by Sun Microsystems.
1
vote
1answer
6 views
converting/parsing geojson into com.vividsolutions.jts geometry
Does any has any experience with converting string geojson into com.vividsolutions.jts geometry object (point, polygon, etc). Maybe there is some java library I cannot find.
Greets!
0
votes
0answers
26 views
Nearest road in the vicinity of a point without queries (openstreetmap)
I know that many similar questions about map fitting have been asked.
Everywhere there were answers about sql queries like this:
SELECT ST_AsText (ST_ClosestPoint (pt, line)) AS cp_pt_line,
...
2
votes
2answers
44 views
Are there any web services providing country border data?
I am an Android developer (working in Java) and want to write a geographical quiz game. The quiz will need a list of countries and will randomly choose one to highlight on a map (probably using Google ...
-1
votes
0answers
19 views
how to use MBTiles4J
I got a MBTiles Server written in Java here.
https://github.com/jtreml/mbtiles4j
I am new to java. Can anybody briefly discuss how it works. I want to create an eclipse project with this. Specially ...
0
votes
0answers
51 views
How to list the ISO 3166 countries with java.util.Locale?
Our IT system should list all the countries in the world and when I fetch it from the system it becomes 249 names but the newest country South Sudan ("SS") is not in the list, so I wonder what the ...
3
votes
0answers
53 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 ...
1
vote
0answers
28 views
How to make a custom properties dialog for a custom text background
I'm developing a custom text background in ArcObjects like in this example.
I would like to know if it is possible to make a custom properties dialog to set up parameters of this text background. It ...
0
votes
0answers
78 views
Java + GMaps JSF + PostGis + JasonSanford / geojson-google-maps
Guys want to test how to plot lines and points in google maps using Java + JSF + PostGIS + GMaps JasonSanford / GeoJSON-google-maps. First have a spaceport in postgis with a table of rows and other ...
0
votes
2answers
30 views
How can I get the map data frame fill the page layout (ArcObjects java)
I need to export a map for several extents (typically states or regions of a country) to PDF. I have a MXD document that I open in an ArcObject console program.I manage to set the PageLayout to A2 ...
0
votes
2answers
42 views
How to get the current map from a geoprocessing tool execute function?
I'm making a geoprocessing tool with the ArcObjects SDK Java 10.2. I need to modify labeling colors of a layer of the current map.
Is it possible from the execute function to access the map currently ...
1
vote
0answers
20 views
alternative to mapClickEvent
I use gwt-openlayers lib in my GWT app. I have added a drawFeature control and now I want to show a radius of circle while I draw a feature. Now it looks like this:
...
1
vote
0answers
52 views
Any good open source GIS library or API for Mobile [closed]
I am looking for GIS library for tracking on mobile application similar to ESRI mobile library but should be open source and freely customizable preferable java base.
I am making Android app which ...
-2
votes
1answer
26 views
Good place for starters to develop ArcGIS map [closed]
I am new to ArcGis 10.2. I want to develop a java application which displays map. Please guide me , where to start looking
thanks
1
vote
1answer
23 views
How to create a value-by-alpha map in Java?
Someone has post similar question as mine before : similar question
But my objective is slightly different.
I have a shape file (.shp) (a country map)
I would like to write a piece of java code to ...
1
vote
1answer
41 views
How can I use the proj string in java code?
I want to do projection from UTM/oblique mercator CRS to WGS84. And I know the solution to use a proj.4 string in commandline like+proj=omerc +lat_0=51.4 +lonc=7 +alpha=-10 +k=1 +x_0=0 +y_0=0 +gamma=0 ...
0
votes
0answers
27 views
How to Add North Arrow, Scale to ArcIMS Map JAVA?
I am new to ArcIMS , currently i am working on integrating maps to Existing java application. I got a requirement from my lead , He asked me to add NorthArrow, Map Scale to the map. I am using ArcIMS ...
0
votes
0answers
51 views
Draw postgis geometries in google maps api
Postgis have a base with a table of data lines and other points.
I'm doing a java applet to query these tables and space to draw on google maps.
My question is: what better way to spend these ...
0
votes
2answers
105 views
Architecture for java ee application
I´m new to GIS development. I have read about Openlayers, maps servers (i choose Geoserver), geodatabase (in my case i choose PostGis) and theory of gis in general. I´m developing a Java EE ...
0
votes
1answer
44 views
Extract specific amenity Osmosis with Java api
I need to extract restaurants from a planet.osm.pbf file. I assume the best way to do this is with Osmosis, however I need to save this data in my own database format. (Not something standard like ...
0
votes
3answers
57 views
Get “approximate” lat/long coordinate for UTM grid zone
I have data assigned with a UTM grid zone designators, such as 10S for example. Now I need an approximate latitude/longitude pair, preferably the center point of the given grid zone. Can you give me ...
2
votes
3answers
81 views
How to create a multi-colored raster image based on long,latt,color information?
I want to create a multi-colored raster layer to overlay on my map in OpenLayers
I have the following information in my DataBase:
D_Cell_ID Long Lat ColorCode
055113 ...
1
vote
2answers
53 views
Generating Values in the Attribute Table
In the attribute table within GIS, I have a certain column with ascending values, and I want to assign ID numbers (for easier readability and display) to a corresponding column. So for instance:
Feet ...
3
votes
1answer
40 views
Use selected value in postgis function
How can I use the selected value from a SELECT statement in a PostGIS function.
e.g.
using the geom_way from
SELECT geom_way FROM osm_2po_4pgr ORDER BY ST_Distance(ST_GeomFromText('POINT(21.323329 ...
1
vote
1answer
30 views
how to retrieve ATMs List from OSM
I am using this command to get the ATMs list
osmosis --read-xml my_map.osm --tf accept-nodes amenity=atm --write-xml output-nodes.osm
But it is giving the list of nodes and ways also...I want only ...
0
votes
0answers
56 views
Successfully extracting values from a GRIB2 file…is it possible?
Let me say first that I'm starting to work with GRIB2 files, I've read the docs, and more or less know how they are structured. My goal is to be able to parse some GRIB2 files from NOAA, more ...
1
vote
0answers
98 views
ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server
I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 ...
1
vote
2answers
111 views
Offline entire planet in Java Desktop app
Sorry if this question has already been asked, but I need your help.
In program that we are developing we need to integrate maps. Here are the requirements that are put for integration:
Maps should ...
0
votes
0answers
37 views
configure mozswing in Java
I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications.
My web map application is loading through "mozSwimg" in Java.
While running application i'm ...
0
votes
1answer
65 views
Filter Vector Layer Features
I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications.
I have added some point features in one vector layer.
It has id, name, address, etc.
Can I ...
0
votes
0answers
18 views
Hotlinking Images using PickListener(MOJO)
I have a class
class MyPickAdapter implements PickListener {
public void beginPick(PickEvent pe) {}
public void endPick(PickEvent pe) {}
public void foundData(PickEvent pe) {
}
};
...
1
vote
1answer
224 views
why I can not run hibernate-spatial (in eclipse)
I have a problem with Hibernate Spatial.
I followed the tutorial 4.x, and I created my project using maven.
after correcting some minor errors in pom.xml and in persistence.xml, executing the project ...
1
vote
1answer
62 views
GWT-OpenLayers - BoundingBox selection
I'm searching for a way to get the bounds of a bounding box a user can drag on a map with gwt-openlayers but i can't figure out how to translate the javascript stuff to the javaside of the wrapper ...
0
votes
2answers
99 views
Converting WKT to WKB
How can I convert a WKT string to a WKB byte[] in Java using postgis functions?
I need to save that WKT string in a postgis database (geometry column.
Thanks
0
votes
0answers
74 views
Looking for java (or python) APIs to read shapefiles
Consider a work flow which receives a data field, e.g. “basemap” as shown in the image, and fills polygons with color on the basis of its numeric values. I am interested in java programming to carry ...
1
vote
2answers
100 views
How to extract common outline of multiple polygons with code?
I'm not really asking for a chunk of code to do this, but more of an algorithm I can work with myself.
For example, this is the state of Maine, obviously, and I have the points of each county ...
0
votes
1answer
68 views
MS4W (MapServer 4 Windows) - version 3.0.3 Crashes JVM and Tomcat frequently. How to fix this?
I am using MS4W (MapServer 4 Windows with Java Mapscript) - v 3.0.3 for a GIS web application hosted over Tomcat 6.0.33 with Java jdk1.6.0_13 and PostgreSQL 9.1 with PostGIS 1.5.2 @ the database end. ...
0
votes
0answers
60 views
How to define a BoundingBox when using GDAL's WCS Driver (Java API)?
Is it possible to define a bounding box when requesting a coverage subset using the GDAL WCS Driver, accessed using GDAL's Java API? I've read several mailing lists and related posts on ...
3
votes
1answer
150 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 ...
1
vote
0answers
58 views
Hibernate Spatial - Query within an X kilometer radius?
I am new to Hibernate Spatial, and am trying to perform a simple query of objects within a given radius. I've created a number of entries in my database with properties corresponding to a latitude ...
2
votes
0answers
180 views
GeoTools WFS Feature retrieval
I am trying to use geotools to retrieve the list of features served by a WFS. I am following the tutorial provided at http://docs.geotools.org/latest/userguide/library/data/wfs.html.
The code that I ...
0
votes
1answer
87 views
How to calculate centroid of a polygon defined by a list of longitude/latitude points? [duplicate]
I've imported some polygons (ways) from OpenStreetMap and now want to calculate the centroids of them.
For this purpose I wrote following code:
final List<Point2D.Double> points = ...
1
vote
1answer
23 views
Restricting access to geoserver module
I built an extension module for Geoserver 2.5 using Maven and Wicket. It places a Label to the left of the navigation list that calls a HTML-Page in Geoserver when clicked. It looks and works as it ...
5
votes
2answers
88 views
How to order points of a polygon?
I want to create a polygon, which represents the administrative boundary of a city.
It is specified by a relation, which consists of ways
<member type="way" ref="25657490" role="outer"/>
...
5
votes
2answers
220 views
Overpass XML query for finding all buildings inside a polygon
I want to run following Overpass QL query in order to get way IDs of all buildings inside a polyon:
way(poly:"50.7 7.1 50.7 7.2 50.75 7.15")[building];
>;
out ids;
Since I'm using the osm-common ...
0
votes
1answer
54 views
ArcSDE Java API: Find centroid of SeShape object?
I've inherited an ArcSDE 9.3 Java app that needs some fixing. The basic task is to find the centroid of a polygon retrieved from an SDE geodatabase, but lately it's been returning the 0th vertex ...
2
votes
0answers
65 views
Create image (TIFF/PNG) from geodetic (lat/long) data
Using Java, I need to render a bunch of geodetic data to an image, ideally TIFF or PNG. Specifically this is weather data, with each sample having a latitude, longitude, and amplitude value.
I'd like ...
2
votes
1answer
79 views
netCDF-java has trouble reading this netCDF file(format) and fetching values from the latlon dimension
I'm developing an application where I need to extract variable-values from netCDF files.
I'm processing several different formatted netCDF files and now one format seems to be creating some issues.
...
2
votes
0answers
296 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
1answer
73 views
geotools parsing kml with multigeometry only gives me first geometry
I'm trying to parse the states.kml file (http://docs.geotools.org/latest/userguide/_downloads/states.kml) on the geotools website using the following code:
Parser parser = new Parser(new ...
5
votes
2answers
75 views
How to read all IDs of all ways inside a polygon?
I have an OSM map of a larger region. Inside that region is a city with a boundary specified by a polygon.
I want to retrieve IDs of all ways (ideally - of all buildings) inside that boundary (inside ...