[geos-devel] depth mismatch

Martin Davis mbdavis at VividSolutions.com
Wed Apr 21 11:30:00 EDT 2004


Strk,

Can you post the error code?   Then I can make sure this isn't an error
in JTS as well.

Martin Davis, Senior Technical Architect
Vivid Solutions Inc.
Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5
Phone: (250) 385 6040 - Local 308 Fax: (250) 385 6046


> -----Original Message-----
> From: strk [mailto:strk at keybit.net] 
> Sent: April 21, 2004 7:19 AM
> To: Martin Davis; GEOS Development List
> Cc: Yury A. Bychkov; Paul Ramsey
> Subject: Re: [geos-devel] depth mismatch
> 
> 
> Fiuuuuu!. Found.
> Was an error in DirectedEdgeStar::computeDepths.
> It seems to work now.
> 
> --strk;
> 
> On Wed, Apr 21, 2004 at 04:10:32PM +0200, strk wrote:
> > Hello Martin,
> > I'm trying to figure out why doesn't the buffer operation 
> work in GEOS 
> > CVS. Turning some debugging on I receive
> > 
> > 	TopologyException: depth mismatch (150,350)
> > 
> > at every  bufferFixedPrecision() attempt but the one with 0 
> precision 
> > digits (the last one) which in turn drops an empty resultGeometry.
> > 
> > Can you tell me if sizeBasedScaleFactor matches max 
> precision digits ? 
> > And more on, what is a depth mismatch exception ?
> > 
> > TIA
> > 
> > --strk;
> > 
> > Here is the complete debugging output:
> > 
> > POINT (150.00 350.00)
> > Trying with 12 max precision digits
> > sizeBasedScaleFactor: 1e+10
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 11 max precision digits
> > sizeBasedScaleFactor: 1e+09
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 10 max precision digits
> > sizeBasedScaleFactor: 1e+08
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 9 max precision digits
> > sizeBasedScaleFactor: 1e+07
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 8 max precision digits
> > sizeBasedScaleFactor: 1e+06
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 7 max precision digits
> > sizeBasedScaleFactor: 100000
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 6 max precision digits
> > sizeBasedScaleFactor: 10000
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 5 max precision digits
> > sizeBasedScaleFactor: 1000
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 4 max precision digits
> > sizeBasedScaleFactor: 100
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 3 max precision digits
> > sizeBasedScaleFactor: 10
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 2 max precision digits
> > sizeBasedScaleFactor: 1
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 1 max precision digits
> > sizeBasedScaleFactor: 0.1
> > TopologyException: depth mismatch at  (150,350)
> > Trying with 0 max precision digits
> > sizeBasedScaleFactor: 0.01
> > resultGeom != NULL _______________________________________________
> > geos-devel mailing list
> > geos-devel at geos.refractions.net
> > http://geos.refractions.net/mailman/listinfo/geos-devel
> 



More information about the geos-devel mailing list