Re: [Geotools-gt2-users] Label rendering problem

2010-06-02 Thread Enamul Haque
Like I said, I ran isValid() on each of the geometry and none of them returned false. I On Wed, Jun 2, 2010 at 1:52 AM, Jody Garnett wrote: > I ran into this as well; it normally means that some of your geometry is not > valid. > Jody > > On 02/06/2010, at 4:19 AM, Ena

[Geotools-gt2-users] Label rendering problem

2010-06-01 Thread Enamul Haque
Issues painting 1337 com.vividsolutions.jts.geom.TopologyException: found non-noded intersection between LINESTRING ( 425.3577964292566 353.3573056447468, 422.9709927080371 352.5320418023972 ) and LINESTRING ( 424.7158612767181 353.2581028560069, 424.51008809832365 352.09491883682944 ) [ (424.69273

Re: [Geotools-gt2-users] Geotools swing widgets and Geomajas

2010-06-01 Thread Enamul Haque
Sorry emailed in the wrong thread. On Tue, Jun 1, 2010 at 12:17 PM, Enamul Haque wrote: > Issues painting 1337 > com.vividsolutions.jts.geom.TopologyException: found non-noded intersection > between LINESTRING ( 425.3577964292566 353.3573056447468, 422.9709927080371 > 352.5320418

Re: [Geotools-gt2-users] Geotools swing widgets and Geomajas

2010-06-01 Thread Enamul Haque
Issues painting 1337 com.vividsolutions.jts.geom.TopologyException: found non-noded intersection between LINESTRING ( 425.3577964292566 353.3573056447468, 422.9709927080371 352.5320418023972 ) and LINESTRING ( 424.7158612767181 353.2581028560069, 424.51008809832365 352.09491883682944 ) [ (424.69273

Re: [Geotools-gt2-users] Clone Bug

2010-05-31 Thread Enamul Haque
uplicatingStyleVisitor in the user guide > > Jody > > On 29/05/2010, at 5:51 PM, Stefan Tzeggai (geb. Krüger) wrote: > >> Hi >> >> On Friday 28 May 2010 19:25:12 Enamul wrote: >>> I might have found a bug with Cloneable implementation of Style. The issue >

Re: [Geotools-gt2-users] Clone Bug

2010-05-29 Thread Enamul Haque
) wrote: > Hi > > On Friday 28 May 2010 19:25:12 Enamul wrote: >> I might have found a bug with Cloneable implementation of Style. The issue >> seems to be with the cloning of rules. Here is a very simple test case that >> fails with the trunk code: >> >> Style c

[Geotools-gt2-users] Clone Bug

2010-05-28 Thread Enamul
I might have found a bug with Cloneable implementation of Style. The issue seems to be with the cloning of rules. Here is a very simple test case that fails with the trunk code: Style clonedStyle = (Style) ((Cloneable) style).clone(); // get the first rule of the original style Rule rule = style

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-27 Thread Enamul Haque
Name_ = filterFactory_.property("the_geom"); super.setParameters(new ArrayList() {{ add(propertyName_); }}); On Thu, May 27, 2010 at 9:19 AM, Enamul wrote: > > Any suggestions ? > -- > View this message in context: > http://osgeo-org.180

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-27 Thread Enamul
Any suggestions ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ColorMap-on-polygons-tp5081998p5108512.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. --

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-26 Thread Enamul Haque
I'm just calling polygonSymbolizer.setFill(styleBuilder.createFill(new ColorRampFunction(colorList))). I have one featuretypestyle with one rule. On 2010-05-27, at 12:18 AM, Michael Bedward wrote: > Hello Enamul, > >> I tried this really simple example to color the map based o

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-26 Thread Enamul Haque
I tried this really simple example to color the map based on the hashcode of the geometry. But it seems to be drawing all the shapes with a single color on every refresh. What am I doing wrong here ? public ColorRampFunction(List fillColors) { super("colorramp"); fillColors_.ad

Re: [Geotools-gt2-users] ColorMap on polygons

2010-05-20 Thread Enamul
I'm aware of the 4 color algorithm although I didn't really know about the 5 color version. And I'm dealing with 20k shapes ... so using different colors is obviously out of consideration. I have been assigning random colors from a pool of colors but was wondering if geotools has sth that I can ta

[Geotools-gt2-users] ColorMap on polygons

2010-05-20 Thread Enamul
I'd like to fill the polygons with multiple colors such that adjacent polygons don't have the same color. How can I do this ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ColorMap-on-polygons-tp5081998p5081998.html Sent from the geotools-gt2-users mailing list archive

Re: [Geotools-gt2-users] Difference between renderer

2010-05-12 Thread Enamul
The difference could be because of the difference in ShapefileRenderer and StreamingRenderer ? I've found the differences pretty significant during my development. As I couldn't rationalize getting rid of more efficient code in return for a slower renderer, I've merged the entire shapefilerenderer

[Geotools-gt2-users] Filter to turn off certain layers

2010-05-12 Thread Enamul
ff certain layers based on zooming distance. How can this be achieved with filters in styles (if possible at all) ? Currently, I do it just by implementing a zoom change listener that turns off the layer automatically based on preconfigured thresholds. Cheers, Enamul -- View this message in cont