Re: [Geotools-gt2-users] Maintaining line order when creating a shapefile

2010-09-20 Thread GTn00b
Ian, Ian Turton wrote: > > I don't know the answer to this but I can't help wondering why the > line order of the shapefile is important to you? You can just treat it > as a pile of data - I'm pretty sure that you need to read the whole > file to do anything with it anyway so order isn't import

Re: [Geotools-gt2-users] Maintaining line order when creating a shapefile

2010-09-17 Thread GTn00b
Thanks for your reply Larry. Larry Reeder wrote: > > If you're using MemoryFeatureCollection, it's backed by a TreeMap > which sorts by Feature Id. Using the CSV 2 SHP Lab as an example, on line 79 of http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/Csv2Shape.j

[Geotools-gt2-users] Maintaining line order when creating a shapefile

2010-09-16 Thread GTn00b
Hello, I've noticed that when writing a shapefile, the original line order of the source (e.g. csv file) is not maintained. I believe this is due to Features being not specifically ordered within the FeatureCollection? I saw somewhere that a FeatureList may be an option, but I'm not sure if this

[Geotools-gt2-users] GeoTools introductory documentation

2010-08-03 Thread GTn00b
I recently found a chapter by Ian Turton in a book entitled "Open Source Approaches in Spatial Data Handling". It serves as a useful introduction to GeoTools, despite being a couple of years old now. http://www.springerlink.com/content/n7157n21025105g7/ http://www.springerlink.com/content/n7157n2

Re: [Geotools-gt2-users] Exception in CoordinateReferenceSystem

2010-07-31 Thread GTn00b
Jody Garnett-2 wrote: > > Dumping all the jars into the project will work (as an alternative to > maven) but you do need to be careful to only select one epsg jars. You can > only have one of them; which one you choose is up to you. > I'm going to stick with Maven if I can. Here is a copy of m

Re: [Geotools-gt2-users] Exception in CoordinateReferenceSystem

2010-07-29 Thread GTn00b
Duane, I'm saying that I'm having a problem running geotools as part of an eclipse project - eclipse is my IDE. Jody, If I dump all the geotools jars into the same project, I guess that means not using Maven? I don't understand why my project has no problem finding all the other jars in the ref

Re: [Geotools-gt2-users] Exception in CoordinateReferenceSystem

2010-07-18 Thread GTn00b
I'm running in Eclipse. Any suggestions? Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Exception-in-CoordinateReferenceSystem-tp5087708p5309241.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. -

Re: [Geotools-gt2-users] Exception in CoordinateReferenceSystem

2010-07-18 Thread GTn00b
I have the same problem. Both gt-epsg-hsql and gt-referencing are in my pom.xml: [INFO] +- org.geotools:gt-epsg-hsql:jar:2.6.4:compile [INFO] | \- hsqldb:hsqldb:jar:1.8.0.7:compile [INFO] +- org.geotools:gt-referencing:jar:2.6.4:compile [INFO] | +- java3d:vecmath:jar:1.3.2:compile [INFO] | +-

Re: [Geotools-gt2-users] Adding Icon Feature to Map

2010-07-01 Thread GTn00b
Hello. I'm trying to add icon features to a map aswell... I've been reading through this thread and have gone through the Style and Style Function Labs - my head is spinning slightly. I'm still fairly new to GeoTools, and indeed Java - so apologies in advance. What I'm trying to do is load a po

[Geotools-gt2-users] JMapFrame resets zoom when window resized

2010-06-29 Thread GTn00b
Hi there, I notice that whenever I resize a JMapFrame, it refreshes the map (as I'd expect), but it also resets the zoom to the maximum extent. This occurs with my own version of JMapFrame too, so it's probably more to do with the JMapPane. Is there a way to stop this happening, so that the zoom

Re: [Geotools-gt2-users] quickstart and example pages

2010-05-11 Thread GTn00b
Thanks. It seems to work now, although I don't think I changed anything... It may be worth recommending people edit the pom.xml in a text editor (e.g. PSPad) rather than in Eclipse, as it's easier to see exactly what's going on. Perhaps some extra line spaces or something crept in? -- View this

Re: [Geotools-gt2-users] quickstart and example pages

2010-05-08 Thread GTn00b
To clarify, using the exact POM provided in the quickstart example (except now changing geotools version from 2.6.1 to 2.6.3), when I update the IDE only junit shows up in the Referenced Libraries of my Eclipse project. I don't get any GeoTools stuff at all. Can anyone help with this please? It's

Re: [Geotools-gt2-users] quickstart and example pages

2010-05-05 Thread GTn00b
I'm running through the quickstart example again and encounter a problem. I follow the instructions word for word, but when I get to the section labeled Updating the IDE (Eclipse only) I run the mvn eclipse:eclipse command as described, but then GeoTools does not show up in my project. It seems t

Re: [Geotools-gt2-users] quickstart and example pages

2010-04-21 Thread GTn00b
I think I figured out the problem - permissions issues with trying to run things in the Program Files directory of Windows 7. So I moved everything to C:/Java instead. I tried again with the prompts as suggested, things seem to work and I no longer get the velocity template error. I now have jars

Re: [Geotools-gt2-users] quickstart and example pages

2010-04-21 Thread GTn00b
Hi Micheal, thanks for the quick response. I tried entering "org.geotools.demo" for groupID and "example" for the artifactID. I was then prompted for a version and package, for which I hit return. Do I need to enter anything specific here? I'm still getting the merging velocity templates error.

Re: [Geotools-gt2-users] quickstart and example pages

2010-04-21 Thread GTn00b
Hi. I'm a complete newbie with GeoTools but I'm hoping to use it for a university project. So please bear with me... I'm having trouble with the Quickstart guide trying to create the example project. When I run the command mvn archetype:create -DgroupId=org.geotools.demo -DartifactId=example i