From: Nair, H. <Har...@jh...> - 2008-08-21 14:50:34
|
I just started with geotools yesterday, and I'm having trouble with the "Reading a shapefile" example in the user's guide. Here are a few problems: 1) The repository locations don't seem to be correct. Ibiblio and repo1.maven.org don't have org.geotools directories. 2) The artifactId's in the pom.xml file are given as gt2-*, but the 2.5 release only has gt-*, right? There are no 2.5-M3 directories in the repositories for gt2-*. 3) The example itself has errors in eclipse. Specifically, Geometry geometry = feature.getDefaultGeometry(); is not legal. There are warnings for the usage of Map and the Feature objects. Are there significant updates needed to this example to get it to work with 2.5-M3? Ultimately, I want to be able to read shapefiles and reproject them from lon/lat to pixel coordinates to overlay on a polar stereographic map. I already have the reprojection code written in Java so I wanted java code to read shapefiles. Thanks, Hari -- Hari Nair Mail Stop MP2-S128 Applied Physics Laboratory 11100 Johns Hopkins Road Laurel, MD 20723 (443) 778-4017 |