I'm having problems using Overlap() in a MapBasic program. I want to find
out what lines in the layer szLineInPolyLayer intersect with a specified
polygon (mszPlanAppID) in DEF_TAB_PLAN_APPS layer. I also want the length
of the line covered by the polygon mszPlanAppID.
According to MapBasic Reference Guide, if one of the objects is linear and
the other is a region Overlap() returns the part of the linear object
covered by the region.
However, using the code copied below, the ObjectLen returns zero. Can
anyone offer any advice as to what has gone wrong?
Thanks,
Charlotte
szGetLineInPolyStats = "Select " + "Overlap(" + szLineInPolyLayer + ".obj,
" + DEF_TAB_PLAN_APPS + ".obj), " + "ObjectLen(obj, ""m"")"
szGetLineInPolyStats = szGetLineInPolyStats + "From " + DEF_TAB_PLAN_APPS
+ ", " + szLineInPolyLayer + " Where " + DEF_TAB_PLAN_APPS + ".obj
Intersects " + szLineInPolyLayer + ".obj And " + DEF_TAB_PLAN_APPS +
".col1 = " + """" + mszPlanAppID + """" + " Into ResultTable Browse * From
ResultTable"
__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 6166