[postgis-users] how to read a shapefile
cspam1234 at gmail.com
Mon Mar 7 14:44:56 PST 2011
I finally figured out that the examples of code on the website were for 2.7
only and not earlier versions. (unless there is an archive link i missed?).
Also i happened to come up on a link of some lab tutorial on how to read a
shapefile but it said
that the link was broken because of documentation updates and it gives you 2
links but the links are broken(there was a comment from last year regarding
that link is here:
Is there currently an up to date tutorial for 2.7 on how to read a
Also, I have old code that uses the vividsolutions Geometry & the WKTReader
to switch back and forth between this Geometry type and a srtext.
com.vividsolutions.jts.geom.Geometry jtsArea = area.getJTSGeometry();
CoordinateReferenceSystem originalCRS = area.getGtCRS();
Is there a way to interact or convert this to the org.geotools geometry
class or how are those packages different?
I guess my initial goal is to just be able to read a shapefile(possibly
casting a datastore to a shapefiledatastore or just using the datastore) and
be able to get things like the CRS of the shapefile, the boundaries, etc. I
am sure those things are easy once you can actually
connect to the shapefile that you want to read from.
Thanks for all the help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the postgis-users