Re: [Geotools-gt2-users] Join on Primary Keys in a Query

2014-11-12 Thread Andrea Aime
On Wed, Nov 12, 2014 at 2:16 PM, fmd85 wrote: > geowolf wrote > > Hi, > > I've never tried, but did you setup the store to expose the primary key > as > > normal > > attributes? I don't think we have a way to join on the feature > identifiers > > (which > > is what the primary keys become when ge

Re: [Geotools-gt2-users] Join on Primary Keys in a Query

2014-11-12 Thread fmd85
Ron Lindhoudt wrote > Did you try to add " around the column names?What database do you > use?Maybe you can turn on GeoTools logging to see what SQL statement is > executed.You can turn on JDBC logging in logging.properties : > org.geotools.jdbc.level=FINESTorg.geotools.jdbc.SQLDialect.level=FINEST

Re: [Geotools-gt2-users] Netbeans, Maven and dependencies

2014-11-12 Thread Leif Gruenwoldt
Netbeans is pretty smart when it comes to Maven projects. Just modifying the source of the dependent library and then re-running the application that uses that library is usually enough for it to just-work. For day to day dev that's what I do because it's very fast. However if for some reason you

Re: [Geotools-gt2-users] Netbeans, Maven and dependencies

2014-11-12 Thread Andy Turner
Thanks Leif, Some of the other jars although open source are not in a repository as such. Some are stored in a local version control system. I am working on getting everything into repositories and versioned. I plan to pack all the .java source files into the jars in the hope that this will all

Re: [Geotools-gt2-users] Netbeans, Maven and dependencies

2014-11-12 Thread Leif Gruenwoldt
Hi Andy, Maybe you've done this already, but try looking for your "other jars" in Maven Central ( http://search.maven.org ), most FOSS projects deploy there. If you have other proprietary jars then yes you'll need to host them in a local repository so Maven can find them. On Wed Nov 12 2014 at 10:

[Geotools-gt2-users] Geotools shapefile and geotiff displaying problem

2014-11-12 Thread C.J. Walsh
Can some one help me figure out why a geotiff file will not display in this code: http://gis.stackexchange.com/questions/121446/geotools-shapefile-and-geotiff-displaying-problem-in-jmappane  -- Christopher Walsh

[Geotools-gt2-users] Netbeans, Maven and dependencies

2014-11-12 Thread Andy Turner
Hi, I am using GeoTools to develop some geographical maps for a project. I have an existing code base, but I'm not sure how best to use this with GeoTools and do my development in Netbeans. I am a Maven novice and would appreciate some good advice. The existing code based has a number of depen

Re: [Geotools-gt2-users] Join on Primary Keys in a Query

2014-11-12 Thread Ron Lindhoudt
Did you try to add " around the column names?What database do you use?Maybe you can turn on GeoTools logging to see what SQL statement is executed.You can turn on JDBC logging in logging.properties : org.geotools.jdbc.level=FINESTorg.geotools.jdbc.SQLDialect.level=FINEST On Wednesday, 12

Re: [Geotools-gt2-users] Join on Primary Keys in a Query

2014-11-12 Thread fmd85
geowolf wrote > Hi, > I've never tried, but did you setup the store to expose the primary key as > normal > attributes? I don't think we have a way to join on the feature identifiers > (which > is what the primary keys become when geotools handles them) Hi, at the beginning i used DataStore ds= D

Re: [Geotools-gt2-users] Output to image file format

2014-11-12 Thread Andy Turner
Thank you Alex. I got there in the end with a bit of work. Below is the method I have. I found that a good thing to do was to set imageWidth and imageHeight, by fixing in my case the imageWidth using the following: ReferencedEnvelope re = mapContent.getMaxBounds(); doubl

Re: [Geotools-gt2-users] Join on Primary Keys in a Query

2014-11-12 Thread Andrea Aime
Hi, I've never tried, but did you setup the store to expose the primary key as normal attributes? I don't think we have a way to join on the feature identifiers (which is what the primary keys become when geotools handles them) Cheers Andrea On Wed, Nov 12, 2014 at 7:50 AM, fmd85 wrote: > Hi,