[postgis] JTS Code examples

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[postgis] JTS Code examples

Martin Davis-2
Good point, Hisaji.  I've attached an example JTS program.  We'll add
examples to the src code in the next release.



Martin Davis, Senior Technical Specialist
Vivid Solutions Inc.
Suite #1A-2328 Government Street   Victoria, B.C.   V8T 5G5
Phone: (250) 385 6040    Fax: (250) 385 6046
EMail: [hidden email]  Web: www.vividsolutions.com


-----Original Message-----
From: Hisaji ONO [mailto:[hidden email]]
Sent: Tuesday, December 18, 2001 6:03 AM
To: [hidden email]
Cc: [hidden email]
Subject: Re: JTS 0.9 has been released


Thank you very much for your great work, Mr. Davis.

 I've tried to create some programs by using JTS's jars.

 If possible, could you  show any simple sample java programs using JTS?

 Regards.



> I'm happy to announce that a pre-release version of the Java Topology
Suite
> is now available for download at
> http://www.vividsolutions.com/jts/jtshome.htm
>
> This version is functionally complete (apart from isSimple and isValid,
> which will be release shortly).
>
> The spatial predicates are robust under both Fixed and Floating precision
> models.  The spatial overlay and buffer functions are unfortunately not
> fully robust.  The overlay functions should perform similarly to most
other
> spatial APIs, however.  The buffer function is robust and precise for many
> inputs, but does have known failure cases.
>
> We invite comments, and especially suggestions on robust, precise
> algorithms.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Call any Phone in the World from your PC with CrystalVoice
-LOW rates world-wide - $0.039/min in U.S.
FREE trial. Click here.
http://us.click.yahoo.com/Ib1xVB/IxbDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[hidden email]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Example1.java (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [postgis] JTS and ant.

Cameron Shorter-3
Thanks Martin for fixing the html on the download page.  (You can now
view the page in netscape).

I've downloaded the code, and started looking around.  What would be
very nice is if you set up an "ant" build.xml script which can be used
to build files (like unix make).

It is useful for building releases, javadocs, etc.
More info at:
http://jakarta.apache.org/ant/

[hidden email] wrote:

>
> Good point, Hisaji.  I've attached an example JTS program.  We'll add
> examples to the src code in the next release.
>
> Martin Davis, Senior Technical Specialist
> Vivid Solutions Inc.
> Suite #1A-2328 Government Street   Victoria, B.C.   V8T 5G5
> Phone: (250) 385 6040    Fax: (250) 385 6046
> EMail: [hidden email]  Web: www.vividsolutions.com
>
> -----Original Message-----
> From: Hisaji ONO [mailto:[hidden email]]
> Sent: Tuesday, December 18, 2001 6:03 AM
> To: [hidden email]
> Cc: [hidden email]
> Subject: Re: JTS 0.9 has been released
>
> Thank you very much for your great work, Mr. Davis.
>
>  I've tried to create some programs by using JTS's jars.
>
>  If possible, could you  show any simple sample java programs using JTS?
>
>  Regards.
>
> > I'm happy to announce that a pre-release version of the Java Topology
> Suite
> > is now available for download at
> > http://www.vividsolutions.com/jts/jtshome.htm
> >
> > This version is functionally complete (apart from isSimple and isValid,
> > which will be release shortly).
> >
> > The spatial predicates are robust under both Fixed and Floating precision
> > models.  The spatial overlay and buffer functions are unfortunately not
> > fully robust.  The overlay functions should perform similarly to most
> other
> > spatial APIs, however.  The buffer function is robust and precise for many
> > inputs, but does have known failure cases.
> >
> > We invite comments, and especially suggestions on robust, precise
> > algorithms.
>
>
> To unsubscribe from this group, send an email to:
> [hidden email]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>   ------------------------------------------------------------------------
>                     Name: Example1.java
>    Example1.java    Type: unspecified type (application/octet-stream)
>                 Encoding: quoted-printable

--
Cameron Shorter          Web Mapping Manager
Social Change Online
248 Johnson St           Tel: +61 (0) 2 9692 5115
Annandale NSW 2038       Fax: +61 (0) 2 9692 5192
Sydney, Australia        http://webmap.socialchange.net.au

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Need new boots for winter? Looking for a perfect gift for your shoe loving friends?
Zappos.com is the perfect fit for all your shoe needs!
http://us.click.yahoo.com/ltdUpD/QrSDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[hidden email]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



Reply | Threaded
Open this post in threaded view
|

Re: [postgis] JTS Code examples

Hisaji ONO-3
In reply to this post by Martin Davis-2
Thank you very much, Mr. Davis.

 I've got following result after executing your sample program.

 c = LINESTRING (40 73, 80 60, 90 100)
 a relate c = 1F2F01FF2

 And I'd like to ask you how to code calculating of geometries versus other
ones in JTS.

 Your sample program and JTS's documents for single geometry versus other
one.

 Regards.