Tag Info

New answers tagged

1

Ciao, -XX:MaxPermSize=2048m is way too much IMHO. I mean, if you have 4GB of RAM available you already have the OS, PostgreSQL then the Tomcat process for Tomcat with a max heap of 2GB. If account also for native memory use by the java process for Tomcat and then you put also 2GB for PermGen then you might soon be swapping! I believe 1GB heap is more than ...


0

Technology: A combination of GeoServer, Openlayers & Oracle-spatial should work for you. If you want to cut-off licence cost, then PostgreSQL is a good option. Functioning For different-2 needs of spatial analysis, you can create functions/procedures in Oracle-spatial and then display data in browser using Openlayers. Geoserver works as GIS server, ...


0

In the meantime I created a small python-based library that can create simple static images. You can find it on github: https://github.com/komoot/staticmap


0

You can search for OpenJUMP it's a GIS Java software, you can use it to display PostGIS files or for developing Plugins. You can read more about this GIS Java software here.


2

If your interested in using a microservice that you can run yourself, instead of a library check out https://github.com/trailbehind/StaticMapService/. You can install background layers into it, then post GeoJSON and get back map images. You mentioned facebook preview images, and that's exactly what I wrote it for. The image url points at a public web server, ...


3

I am not a Java developer and don't know of any existing Java implementations for this, but using the k-Nearest Neighbors algorithm with a k-d tree will likely give much better performance. However, if accuracy is important, you will need to implement the Haversine (spherical) or Vincenty (ellipsoidal) distance formulae for the distance metric, since ...


1

For the ID simply pass it in to the featureBuilder instead of null; For other properties you need to modify the schema you generated the featureBuilder with. The easiest way to do this is to use DataUtilities.createType SimpleFeatureType TYPE = DataUtilities.createType("Test", "ian:String,location:Point"); final Point point = builder.point(132.159633, ...


2

You need to cast the string to a geometry then set its SRID to match the geometry column's SRID. select id from database where point_lat_lon = st_setsrid('POINT Z (116.309627 39.991285 148)'::geometry, ST_SRID(point_lat_lon));


3

What you're trying to do doesn't really make sense. Quadtree.query works by intersecting the extents of the elements with a rectangular extent. It's up to you to further filter them. However, you can use the overloaded version of query with a subclass of ItemVisitor to achieve what you want. public class QtreeTest { public static class HoleVisitor ...


0

The basic algorithm for this is: read in districts read in counties foreach district in districts split district by counties calculate area as % of original GeoTools (and JTS) are able to take care of all of these steps for you, the quickstart tutorial will have shown you how to read in your shapefiles. The query tutorial will get you up to speed on ...


1

The answer to your question seems to be code like: private FeatureEntry createFeatureEntry(SimpleFeatureType schema, ReferencedEnvelope bbox) { FeatureEntry ret = new FeatureEntry(); ret.setGeometryColumn(schema.getGeometryDescriptor().getLocalName()); GeometryType type = schema.getGeometryDescriptor().getType(); Geometries ...


0

I managed to solve the problem by converting all of the coordinates to contain in the formula to SWEREF99TM before I calculated the closest point. Then, I converted the closest point found with the formula, back to WGS84. I used SWEREF99TM because it is a grid system, so the formula will work correctly. Note that this will probably not work outside of ...


3

OK, my original answer was wrong (see user30184's comment). Here's another: The polygon is convex if each angle is 180 degrees or less. You can check this in O(n) time, iterating over the triples of points in the exterior ring and checking the sign of the determinant. import com.vividsolutions.jts.geom.Coordinate; import ...


0

You should be able to do this using open source technologies and without resorting to so much Java if you dont want to. Check Leaflet for showing a map/geometries. (JavaScript) You should still be able to use GeoServer through its API's. A webapp can have HTML/CSS/JS and it should be possible to have PHP in there too. Also a personal suggestion, I would try ...


1

Geoserver is not mandatory. If you need a WFS or WMS or WMTS or WPS or CSW or WCS server for your application needs, it is an option, but there are other options for all of those, in open source and proprietary forms. If you are looking for open source options, many are listed at OSGeo - see the project links under Web Mapping and Metadata Catalog headings. ...


-3

Try Using SwingNode , there you can add jcomponent in swingnode as .setcontent(Jcomponet component).


3

I've got use of Java and JavaScript in WEBGIS project. If you want I can send you the link to it. We've used in the project of the PostGIS and GEOTools. I hope these links help you



Top 50 recent answers are included