[postgis-users] how to read a shapefile
Chad S
cspam1234 at gmail.com
Mon Mar 7 14:44:56 PST 2011
Hi all,
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
this).
that link is here:
http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile
Is there currently an up to date tutorial for 2.7 on how to read a
shapefile?
Also, I have old code that uses the vividsolutions Geometry & the WKTReader
to switch back and forth between this Geometry type and a srtext.
ex.
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!
-Chad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110307/7cc2cc2e/attachment.html>
More information about the postgis-users
mailing list