Re: [Geotools-gt2-users] How to speed up rendering for large shapefiles

2009-06-11 Thread Andrea Aime
Michael Bedward ha scritto: > Hi Glenn, > >> As a matter of fact I have. It has no better performance. The problem is >> not in getting the maps to display. It's trying to figure out a way to not >> have to wait 2 minutes for them to be displayed. Use the ShapefileRenderer, it's a custom imple

Re: [Geotools-gt2-users] Changing CRS in the feature

2009-06-11 Thread Andrea Aime
Janusz Dalecki ha scritto: > Hi, > > I am reading a FeatureSource from the shapefile that has Coordinate > Reference System lets say “A”. I would like to change that > FeatureSource’s CRS to another one ("B"). > > Is there any way of doing this? Can somebody point me in the right > direction?

[Geotools-gt2-users] CRS Lat/Long order

2009-06-11 Thread Janusz Dalecki
Hi, I am creating a MathTransform using CRS.findMathTransform() to transform coordinates from one CRS to another. How can I find out from CRS which coordinates convention it is using (first lat then long or the other way around) so I can pass lat/long in correct order when calling transform meth

Re: [Geotools-gt2-users] CRS Lat/Long order

2009-06-11 Thread Andrea Aime
Janusz Dalecki ha scritto: > Hi, > > I am creating a MathTransform using CRS.findMathTransform() to transform > coordinates from one CRS to another. > > How can I find out from CRS which coordinates convention it is using > (first lat then long or the other way around) so I can pass lat/long in

Re: [Geotools-gt2-users] SLD XML TUT Query

2009-06-11 Thread ATI
Oh i see, thanks for that. Although, after i had posted i immiediately, changed pretty much all of them to 2.5.5, one by one which was a bit time consuming i might add. Although, this one in particular, com.vividsolutions jts 1.9 i could not change

[Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-11 Thread ATI
Hi, as some of you might be aware, i'm attempting to display my road names from my .dbf file onto my shapefile. At present i'm up to the stage where i am trying to use a style obj to help read/parse the sld file and apply it to the a layer. I have already harde coded the location of the .sld

Re: [Geotools-gt2-users] SLD XML TUT Query

2009-06-11 Thread Michael Bedward
Hi Luong > Although, this one in particular, > > >            com.vividsolutions >            jts >            1.9 >         > > i could not change as i just got the same error asking me to manuallly > install it ect. so i left it like it is. Oh-oh... I probably should have emphasized that I wa

Re: [Geotools-gt2-users] Changing CRS in the feature

2009-06-11 Thread Janusz Dalecki
Thanks Andrea, Does the query.setCoordinateSystemReproject() method take into account the CRS Lat/Long convention? What I mean is that if the "from" CRS has Lat/Long order and "to" CRS has Long/Lat order, would they convert lat to lat and long to long? Regards, Janusz -Original Message-

Re: [Geotools-gt2-users] Changing CRS in the feature

2009-06-11 Thread Andrea Aime
Janusz Dalecki ha scritto: > Thanks Andrea, > Does the query.setCoordinateSystemReproject() method take into account > the CRS Lat/Long convention? What I mean is that if the "from" CRS has > Lat/Long order and "to" CRS has Long/Lat order, would they convert lat > to lat and long to long? If you d

Re: [Geotools-gt2-users] How to speed up rendering for large shapefiles

2009-06-11 Thread WGPuckett
aaime wrote: > > > Use the ShapefileRenderer, it's a custom implementation geared towards > rendering shapefiles faster > > Cheers > Andrea > > Thanks, I will give that a try. If necessary doing conversions is not a problem. We have a fixed mapping structure that will be used. If we nee

[Geotools-gt2-users] read geometry from postgis in geotools 2.5.5

2009-06-11 Thread Alessandro Ferrucci
hello, in previous releases of geotools I could use FeatureReader from a postgis DataSource and extract Features and get the default geometry from those feature objects. Now the FeatureReader uses the opengis Feature and I have no clue how I can extract Geometries from those features..anyone have

Re: [Geotools-gt2-users] read geometry from postgis in geotools 2.5.5

2009-06-11 Thread Alessandro Ferrucci
Ok I was able to extract a GeometryAttribute from the feature's properties collection, but I need to get a JTS Geometry since I will need to do a LineMerger operation on the Geometries. How can I do that? thanks alessandro ferrucci On Thu, Jun 11, 2009 at 3:02 PM, Alessandro Ferrucci < alessan

Re: [Geotools-gt2-users] read geometry from postgis in geotools 2.5.5

2009-06-11 Thread Alessandro Ferrucci
Ok, reading through the postGIS module test cases for GeoTools 2.5.5 I figured it out. One way to do it is to use SimpleFeatures and then extract the Geometry through that. Just out of curiousity is there a way to do this using "Feature" objects instead of SimpleFeature objects? Here's the rele

Re: [Geotools-gt2-users] GML 3, GeoTools sample

2009-06-11 Thread Justin Deoliveira
(It is appreciated if you can keep replies on the public mailing list. Thanks :)) As for the issue, it seems you are having problems accessing the opengeo maven repository. This may be a silly question but does the machine you are running this from have a connection to the internet? Maybe some

Re: [Geotools-gt2-users] possible problem w/ 2.5.3

2009-06-11 Thread Justin Deoliveira
Interesting. So yeah, i guess an identifier starting with numbers is not a valid WFS feature identifier unfortunately. You can file a report but all in all you may just be better off renaming the table (or use an alias for the feature type name if you are using geoserver or some wfs that allows

Re: [Geotools-gt2-users] read geometry from postgis in geotools 2.5.5

2009-06-11 Thread Justin Deoliveira
yeah, most of the time you are safe using SimpleFeature/SimpleFeatureType. The generic Feature is capable of modelling complex data, joins, relationships, etc... So if your requirements are simple and your data flat just use SimpleFeature. You can still use regular Feature, but you will have to