Re: [Geotools-gt2-users] Styling problem

2009-01-27 Thread Michael Bedward
Hi Luong, There's some confusion about what's what in your code - especially regarding interfaces. The good news is that it can all be a lot simpler :) For starters, to make a simple style for a line feature type you can just use a method like this... public Style createLineStyle(String fea

Re: [Geotools-gt2-users] JTS Polygon buffer

2009-01-27 Thread Michael Bedward
This might be a question for the JTS developers list... there's a link to it on this page: http://tsusiatsoftware.net/jts/main.html Michael -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to

Re: [Geotools-gt2-users] Need advice regarding rendering WKT

2009-01-27 Thread Michael Bedward
Hi, If you mean just with java (not geotools as mentioned previously) you could do something like this... import com.vividsolutions.jts.geom.Geometry; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import ja

Re: [Geotools-gt2-users] Styling problem

2009-01-27 Thread nvidia
Hi, i did some adjustments to my code, in particular i declared a stylefactory object within my ConstructStyle.java and in the constructor i added it by doing: this.lineStyle = styleFactory.createStyle(); to help create the style with the addition of doing declaring an instance vari

Re: [Geotools-gt2-users] Need advice regarding rendering WKT

2009-01-27 Thread Zer
Thanks Michael, Then I know how to get a Geometry. But how do I make a PNG out of that Geometry? -Z -- View this message in context: http://n2.nabble.com/Need-advice-regarding-rendering-WKT-tp2206739p2229009.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. -

Re: [Geotools-gt2-users] Styling problem

2009-01-27 Thread Michael Bedward
> The problem i'm having is in my ConstructMap.java file where i am adding > my featuressource and the style object to the mapcontext object as it says: > > ava.lang.ClassCastException: com.mycompany.Map_AppV2.ConstructStyle cannot > be cast to org.geotools.styling.Style >at com.mycompany

Re: [Geotools-gt2-users] Styling problem

2009-01-27 Thread Ian Turton
On Tue, Jan 27, 2009 at 12:49 PM, nvidia wrote: > > Hi, > > i'm using the tutorials to help me build my gis app to essentially diplay > my shapfile which is done by selecting the file name via java's file menu > item. I a number of files, 1 of which is called ConstructStyle.java which > implemen

Re: [Geotools-gt2-users] Listing WPS processes - EList?

2009-01-27 Thread Justin Deoliveira
Its part of EMF (Eclipse Modelling Framework). So you need the emf libraries around: common-2.2.1.jar ecore-2.2.2.jar As for EList itself... it can more or less be used as a java.util.List, of which it implements. -Justin Jon Britton wrote: > Hi, I'm just messing around with the WPS stuff and

[Geotools-gt2-users] Listing WPS processes - EList?

2009-01-27 Thread Jon Britton
Hi, I'm just messing around with the WPS stuff and want to list the available available processes. The information at http://docs.codehaus.org/display/GEOTDOC/WPS+Plugin shows a EList which I don't see to have access to. Where do I get this class from? Thanks, Jon -- View this message in conte

[Geotools-gt2-users] Styling problem

2009-01-27 Thread nvidia
Hi, i'm using the tutorials to help me build my gis app to essentially diplay my shapfile which is done by selecting the file name via java's file menu item. I a number of files, 1 of which is called ConstructStyle.java which implements both StyleFactory, LineSymbolizer which essentially build

[Geotools-gt2-users] Need advice regarding rendering WKT

2009-01-27 Thread Zer
Dear list, I've been looking around in the tutorials and the mailing lists trying to find some information on how to render a WKT string to png, but I can't find anything. What would be the best way to do this? Are there any tutorials, examples or snippets out there? Thanks, -Z -- View this

[Geotools-gt2-users] JTS Polygon buffer

2009-01-27 Thread thomlep
Hello, We're trying to create a buffer polygon around another geospatial polygon, but the distance between the original polygon and buffer polygon is greater at the north and south poles. The buffer is like an oval. This is because the buffer calculation ( as in Geometry.buffer() ) is not a geo

[Geotools-gt2-users] WFSDataStore and PropertyIsLike filter

2009-01-27 Thread Roy Braam
Hi list, I've got a question about the WFSDatastore (1.1.0). If i do this: Map params = new HashMap(); params.put(WFSDataStoreFactory.URL.key, "http://WFSServer_Url.org?Request=GetCapabilities&Service=WFS";); WFSDataStore wds= (WFSDataStore) DataStoreFinder.getDataStore(p