Jody Garnett wrote:
> 
> This does seem confusing; what does the SLD specification say anchor 
> point is. I belive anchor point
> is defined relative to "the_geom" (ie centroid of a polygon or 
> linestring, or the actual point). Try creating
> one using the styleFactory if you have to; and then fill in the blanks.
> 
> My guess would be Expression x and Expression y are actually:
> 
> sb.createAnchorPoint(Expression offsetX, Expression offesetY)
> 
> And the main reason to do an expression is so you can do something like
> sin( angle )*distance, cose( angle )*distance where angle and distance
> are other attributes of your feature....
> 
> Jody
> 
> 

Hum, if that was the case, then
sb.createAnchorPoint(sb.literalExpression(1.5), sb.literalExpression(1.5))
should work in principle, but instead nothing happens. The only time I got
this to work was for a data set that actually had XCOORD and YCOORD
attributes hence my AnchorPoint was given by
 AnchorPoint anchorPoint =
sb.createAnchorPoint(sb.attributeExpression("XCOORD"),
sb.attributeExpression("YCOORD"));
gaby

-- 
View this message in context: 
http://www.nabble.com/Help-with-AnchorPoint-tp15034681p15054999.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to