Quantcast

createArc

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

createArc

Jim Kay
createArc

Martin

I previously posted about GeometricShapeFactory and createArc not terminating the arc with the last point; I think that you said this was bug.

I have just downloaded jts-1.10-alpha.jar and noticed this 'effect' is still there.
Following code illustrates bug:

shape=GeometricShapeFactory;
shape.setCentre(Coordinate(0,0));
shape.setSize(1.0);
shape.setNumPoints(4);
A=shape.createArc(0,360);

A=LINESTRING (0.5 0, 0 0.5, -0.5 0.0000000000000001, -0.0000000000000001 -0.5)

[sorry code is 'scripted' form, since I use jts in Matlab - does anybody else do this?]

Jim

Jim Kay
Senior Engineer
Interfleet Technology Ltd
email:  [hidden email]
tel:    +44 (0) 1332 223229
fax:    +44 (0) 1332 223181
mobile: +44 (0) 7715 536828
web:    www.interfleet.co.uk

Interfleet Technology Ltd
Interfleet House
Pride Parkway
Derby
DE24 8HX



**********************************************************************
Interfleet Technology Ltd

Interfleet Technology's email disclaimer is found via the following
URL: http://www.interfleet-technology.com/disclaimer.asp

Registered Offices:
http://www.interfleet-technology.com/offices.asp

Please consider the environment before printing this e-mail.
**********************************************************************

 


_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: createArc

Martin Davis
Perfect timing - I just fixed this bug last week, since I noticed it
then too (afraid the original bug alert dropped off my radar).

I also added a createArcPolygon, which might be handy for some uses
(such as creating pie charts  8^)  
http://lin-ear-th-inking.blogspot.com/2008/11/kml-pie-charts-in-jeql.html

A new distro is here:  
http://tsusiatsoftware.net/jts/files/jts-1.10-alpha2.zip

M



Jim Kay wrote:

>
> Martin
>
> I previously posted about GeometricShapeFactory and createArc not
> terminating the arc with the last point; I think that you said this
> was bug.
>
> I have just downloaded jts-1.10-alpha.jar and noticed this 'effect' is
> still there.
> Following code illustrates bug:
>
> shape=GeometricShapeFactory;
> shape.setCentre(Coordinate(0,0));
> shape.setSize(1.0);
> shape.setNumPoints(4);
> A=shape.createArc(0,360);
>
> A=LINESTRING (0.5 0, 0 0.5, -0.5 0.0000000000000001,
> -0.0000000000000001 -0.5)
>
> [sorry code is 'scripted' form, since I use jts in Matlab - does
> anybody else do this?]
>
> */Jim/*
>
> Jim Kay
> Senior Engineer
> Interfleet Technology Ltd
> email:  [hidden email]
> tel:    +44 (0) 1332 223229
> fax:    +44 (0) 1332 223181
> mobile: +44 (0) 7715 536828
> web:    _www.interfleet.co.uk_ <file://www.interfleet.co.uk>
>
> Interfleet Technology Ltd
> Interfleet House
> Pride Parkway
> Derby
> DE24 8HX
>
>
>
> **********************************************************************
> Interfleet Technology Ltd
>
> Interfleet Technology's email disclaimer is found via the following
> URL: http://www.interfleet-technology.com/disclaimer.asp
>
> Registered Offices:
> http://www.interfleet-technology.com/offices.asp
>
> Please consider the environment before printing this e-mail.
> **********************************************************************
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>  

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Loading...