Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
STIntersection performance
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 45 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
FredL  
View profile  
 More options Apr 24 2011, 7:07 am
From: FredL <fred.leef...@gmail.com>
Date: Sun, 24 Apr 2011 04:07:01 -0700 (PDT)
Local: Sun, Apr 24 2011 7:07 am
Subject: STIntersection performance
Hi,

I've been getting some slow responses from STIntersection() using NTS,
and have tried performing the same intersection with Postgis and
Microsoft.SqlServer.Types.dll to see how they compare. The differences
are remarkable:

Postgis: 300 - 400ms
SqlServer.Types.dll: 50 - 100ms
Nts: 2 minutes, 21 seconds!

I'm using version 1.7.3 on an XP VM. (I also tried running the NTS
intersection test using mono on a mac with similar results). I've
tried to add the WKT strings for the two shapes to this message, but
the post was rejected, probably because one of the strings was too
large - will see if I can attach.

Any suggestions would be most welcome!

Many thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FredL  
View profile  
 More options Apr 24 2011, 7:15 am
From: FredL <fred.leef...@gmail.com>
Date: Sun, 24 Apr 2011 04:15:01 -0700 (PDT)
Local: Sun, Apr 24 2011 7:15 am
Subject: Re: STIntersection performance

WKT strings attached.

  wkt.txt
175K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options Apr 26 2011, 2:25 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 08:25:23 +0200
Local: Tues, Apr 26 2011 2:25 am
Subject: Re: STIntersection performance
I twy to take a look as fast as I can, checkin how fast is also JTS
suite doing same task

Diego Guidi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FredL  
View profile  
 More options Apr 26 2011, 3:37 am
From: FredL <fred.leef...@gmail.com>
Date: Tue, 26 Apr 2011 00:37:51 -0700 (PDT)
Local: Tues, Apr 26 2011 3:37 am
Subject: Re: STIntersection performance
Thanks Diego.

On Apr 26, 7:25 am, Diego Guidi <diegogu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: STIntersection performance" by Diego Guidi
Diego Guidi  
View profile  
 More options Apr 26 2011, 7:05 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 04:05:14 -0700 (PDT)
Local: Tues, Apr 26 2011 7:05 am
Subject: R: Re: STIntersection performance

the same test runs in about ten seconds in JTS 1.8... now it's time to find
how NTS loses all the time


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FredL  
View profile  
 More options Apr 26 2011, 9:14 am
From: FredL <fred.leef...@gmail.com>
Date: Tue, 26 Apr 2011 06:14:14 -0700 (PDT)
Local: Tues, Apr 26 2011 9:14 am
Subject: Re: R: Re: STIntersection performance
thanks again. Let me know if I can help at this end...

On Apr 26, 12:05 pm, Diego Guidi <diegogu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Obermaier  
View profile  
 More options Apr 26 2011, 10:59 am
From: Felix Obermaier <o...@IVV-AACHEN.DE>
Date: Tue, 26 Apr 2011 16:59:49 +0200
Local: Tues, Apr 26 2011 10:59 am
Subject: AW: R: Re: STIntersection performance
The same test takes about 1.111ms using NTS v2.11, so I think it is related to changes in the algorithm.
Cheers FObermaier


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FredL  
View profile  
 More options Apr 26 2011, 11:04 am
From: FredL <fred.leef...@gmail.com>
Date: Tue, 26 Apr 2011 08:04:33 -0700 (PDT)
Local: Tues, Apr 26 2011 11:04 am
Subject: Re: R: Re: STIntersection performance
Hi Felix,

Could you let me know what the svn branch is for v2.11? I'll try a
build at this end and test performance..

On Apr 26, 3:59 pm, Felix Obermaier <o...@IVV-AACHEN.DE> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:13 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 17:13:21 +0200
Local: Tues, Apr 26 2011 11:13 am
Subject: Re: R: Re: STIntersection performance
> The same test takes about 1.111ms using NTS v2.11, so I think it is related to changes in the algorithm.

I didn't checked nothing at all, but I suspect that can be related to
collections used by NTS, i.e. Set/HashSet, PowerCollections, and so
on... anything related to this one?
http://code.google.com/p/nettopologysuite/issues/detail?id=43&can=1
this issue is fixed, at least in 2.11

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:27 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 08:27:16 -0700 (PDT)
Local: Tues, Apr 26 2011 11:27 am
Subject: Re: R: Re: STIntersection performance

OverlayOp.CopyPoints for the multipolygon geometry is executed in a fraction
of a second by JTS, and in 10 seconds or more by NTS (trunk)
I think that here is the main problem, now the hard part: discover why this
happens :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Diss  
View profile  
 More options Apr 26 2011, 11:31 am
From: John Diss <john.d...@newgrove.com>
Date: Tue, 26 Apr 2011 11:31:56 -0400
Local: Tues, Apr 26 2011 11:31 am
Subject: RE: R: Re: STIntersection performance

Hi Diego, perhaps try with r538 or earlier to make sure I didn't break anything aliasing ArrayList = List<Object> etc when doing the Silverlight stuff...

From: nettopologysuite@googlegroups.com [mailto:nettopologysuite@googlegroups.com] On Behalf Of Diego Guidi
Sent: 26 April 2011 16:27
To: nettopologysuite@googlegroups.com
Subject: Re: R: Re: STIntersection performance

OverlayOp.CopyPoints for the multipolygon geometry is executed in a fraction of a second by JTS, and in 10 seconds or more by NTS (trunk)
I think that here is the main problem, now the hard part: discover why this happens :)

--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To post to this group, send email to nettopologysuite@googlegroups.com.
To unsubscribe from this group, send email to nettopologysuite+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nettopologysuite?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: R: Re: STIntersection performance" by Diego Guidi
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:34 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 08:34:31 -0700 (PDT)
Local: Tues, Apr 26 2011 11:34 am
Subject: R: Re: R: Re: STIntersection performance

sorry, I'm wrong. Maybe a temporary result due to some problem in my pc... I
check better and see


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: STIntersection performance" by John Diss
John Diss  
View profile  
 More options Apr 26 2011, 11:36 am
From: John Diss <john.d...@newgrove.com>
Date: Tue, 26 Apr 2011 11:36:09 -0400
Local: Tues, Apr 26 2011 11:36 am
Subject: RE: R: Re: STIntersection performance

Thinking about it the alias only applies within Silverlight - in .Net it stays as ArrayList...

From: nettopologysuite@googlegroups.com [mailto:nettopologysuite@googlegroups.com] On Behalf Of John Diss
Sent: 26 April 2011 16:32
To: nettopologysuite@googlegroups.com
Subject: RE: R: Re: STIntersection performance

Hi Diego, perhaps try with r538 or earlier to make sure I didn't break anything aliasing ArrayList = List<Object> etc when doing the Silverlight stuff...

From: nettopologysuite@googlegroups.com [mailto:nettopologysuite@googlegroups.com] On Behalf Of Diego Guidi
Sent: 26 April 2011 16:27
To: nettopologysuite@googlegroups.com
Subject: Re: R: Re: STIntersection performance

OverlayOp.CopyPoints for the multipolygon geometry is executed in a fraction of a second by JTS, and in 10 seconds or more by NTS (trunk)
I think that here is the main problem, now the hard part: discover why this happens :)

--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To post to this group, send email to nettopologysuite@googlegroups.com.
To unsubscribe from this group, send email to nettopologysuite+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nettopologysuite?hl=en.
--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To post to this group, send email to nettopologysuite@googlegroups.com.
To unsubscribe from this group, send email to nettopologysuite+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nettopologysuite?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: R: Re: STIntersection performance" by diegogu...@gmail.com
diegogu...@gmail.com  
View profile  
 More options Apr 26 2011, 11:39 am
From: diegogu...@gmail.com
Date: Tue, 26 Apr 2011 15:39:02 +0000
Local: Tues, Apr 26 2011 11:39 am
Subject: Re: R: Re: R: Re: STIntersection performance

If I disable NodingValidator (OverlayOp.NodingValidatorDisabled = true;)  
the operation is executed immediately.
Of course this is not a good thing to do, and JTS validates noding, so I  
think that is the nodingvalidator that actually is slow.

Il giorno , Diego Guidi <diegogu...@gmail.com> ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: STIntersection performance" by Diego Guidi
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:41 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 17:41:35 +0200
Local: Tues, Apr 26 2011 11:41 am
Subject: Re: R: Re: STIntersection performance
> Thinking about it the alias only applies within Silverlight – in .Net it
> stays as ArrayList...

exactly

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Diss  
View profile  
 More options Apr 26 2011, 11:42 am
From: John Diss <john.d...@newgrove.com>
Date: Tue, 26 Apr 2011 11:42:46 -0400
Local: Tues, Apr 26 2011 11:42 am
Subject: RE: R: Re: STIntersection performance
I didn't break it :)
::dances::

-----Original Message-----
From: nettopologysuite@googlegroups.com [mailto:nettopologysuite@googlegroups.com] On Behalf Of Diego Guidi
Sent: 26 April 2011 16:42
To: nettopologysuite@googlegroups.com
Subject: Re: R: Re: STIntersection performance

> Thinking about it the alias only applies within Silverlight - in .Net it
> stays as ArrayList...

exactly

--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To post to this group, send email to nettopologysuite@googlegroups.com.
To unsubscribe from this group, send email to nettopologysuite+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nettopologysuite?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:45 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 17:45:56 +0200
Local: Tues, Apr 26 2011 11:45 am
Subject: Re: R: Re: STIntersection performance
> I didn't break it :)
> ::dances::

NodingValidator.CheckInteriorIntersections looks the only responsible
of this poor performances, not you :)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: R: Re: STIntersection performance" by Diego Guidi
Diego Guidi  
View profile  
 More options Apr 26 2011, 11:48 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 08:48:00 -0700 (PDT)
Subject: R: Re: R: Re: STIntersection performance

CheckEndPtVertexIntersections 00:00:00.1641412
*CheckInteriorIntersections 00:02:11.3173618*
CheckCollapses 00:00:00.0017678


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FObermaier  
View profile  
 More options Apr 26 2011, 12:14 pm
From: FObermaier <o...@ivv-aachen.de>
Date: Tue, 26 Apr 2011 09:14:54 -0700 (PDT)
Local: Tues, Apr 26 2011 12:14 pm
Subject: Re: R: Re: R: Re: STIntersection performance
NodingValidator has been superceeded by FastNodingValidator
cheers Felix

On Apr 26, 5:48 pm, Diego Guidi <diegogu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options Apr 26 2011, 3:08 pm
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 26 Apr 2011 21:08:03 +0200
Local: Tues, Apr 26 2011 3:08 pm
Subject: Re: R: Re: R: Re: STIntersection performance
> NodingValidator has been superceeded by FastNodingValidator

this isn't true for the trunk

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "R: Re: R: Re: R: Re: STIntersection performance" by Diego Guidi
Diego Guidi  
View profile  
 More options Apr 27 2011, 7:55 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Wed, 27 Apr 2011 04:55:53 -0700 (PDT)
Local: Wed, Apr 27 2011 7:55 am
Subject: R: Re: R: Re: R: Re: STIntersection performance

FastNodingValidator is used by 2.x branch, and looks that contains "only"
check for interior intersections, actually the same heck that is so slow in
trunk. So maybe here's why trunk and 2.x branches are so slow.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options May 2 2011, 5:00 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Mon, 2 May 2011 02:00:25 -0700 (PDT)
Local: Mon, May 2 2011 5:00 am
Subject: R: Re: R: Re: R: Re: STIntersection performance

I've added a test that validates a single segmentstring (the slower of all
the checks, alone it executes in 5 seconds).
In NTS the check is executed in 5 seconds (as expected), in JTS the
execution is immediate.
I hope that analyzing the single test I can find how is the problem


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options May 2 2011, 6:02 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Mon, 2 May 2011 03:02:21 -0700 (PDT)
Local: Mon, May 2 2011 6:02 am
Subject: R: Re: R: Re: R: Re: STIntersection performance

why god simply using a one-dimensional array can improve performances to 2x
or more?
the test on segmentstring now executes in 2 seconds instead of 5, and all
I've changed is that now in LineIntersector
protected ICoordinate[] inputLines = new ICoordinate[4];
and not
protected ICoordinate[,] inputLines = new ICoordinate[2,2];


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FredL  
View profile  
 More options May 2 2011, 4:01 pm
From: FredL <fred.leef...@gmail.com>
Date: Mon, 2 May 2011 13:01:48 -0700 (PDT)
Local: Mon, May 2 2011 4:01 pm
Subject: Re: R: Re: R: Re: R: Re: STIntersection performance
well found. It seems v.strange that a multi-dimensional array would be
so much slower...

On May 2, 11:02 am, Diego Guidi <diegogu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Guidi  
View profile  
 More options May 3 2011, 2:21 am
From: Diego Guidi <diegogu...@gmail.com>
Date: Tue, 3 May 2011 08:21:38 +0200
Local: Tues, May 3 2011 2:21 am
Subject: Re: R: Re: R: Re: R: Re: STIntersection performance
> well found. It seems v.strange that a multi-dimensional array would be
> so much slower...

not the only reason to slow performances... actually I don't
understand why and how NTS is slow

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 45   Newer >
« Back to Discussions « Newer topic     Older topic »