Ok, I've searched and at a loss as to why I cannot find anything on how to save a shapefile to PostGIS with Java. Thought GeoTools might be helpful, but doesn't seem to be there either.
So here's the scenario and functionality that I've been looking for.
- User uploads a file
- Java code (Spring) on the server side get the file and checks to see if it is a .shp file
- If it is a .shp file, save it to a PostGIS table
It's step 3 that doesn't seem to be out there and what I'd like to find a solution for. In my case the table will have all necessary fields and a couple of other fields to record who uploaded and when etc..