• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Updated support for shapefile access in Java

 
Ranch Hand
Posts: 138
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I’ve just posted updates to the open-source Tinfour Software Project for reading and writing industry-standard shapefiles. Tinfour focuses on a Java-based implementation of the Delaunay triangulation (a triangular mesh technique). And, while Tinfour is not a Geographic Information System (GIS), a lot of the interesting data out there on the Internet provides geophysical information suitable for Delaunay processing. So Tinfour includes a couple of small, self-contained modules that support reading and writing that data in the shapefile format. That capability gives the Tinfour library the ability to exchange data with true GIS implementations (including Java implementations such as GeoTools, JTS Topology Suite, and others).

For the attached picture, I used the Tinfour shapefile reader to ingest shoreline and depth data for Morrison Lake, a 332 acre (132 hectare) body of water located in Ionia County, Michigan, USA.  Tinfour used the data to construct a Delaunay triangulation and wrote it to an output shapefile. The results were plotted on an Open Street Map background using QGIS, a well-known GIS program that is available free of charge.

An article presenting the Java code used to process the data is available on the Tinfour Wiki at https://github.com/gwlucastrig/Tinfour/wiki/Using-The-Tinfour-Shapefile-API

MorrisonLakeDelaunay.png
Delaunay triangulation for Morrison Lake bathymetry
Delaunay triangulation for Morrison Lake bathymetry
 
Bartender
Posts: 29139
215
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the contribution!

I did a little GIS-adjacent work years ago, so I can appreciate that you have provided open-source solutions in that area.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic