Hi,
Any ideas?
I use Delphi 6 & MapX 5.0.25.
No I set the numeric coordsys to non-earth, meters.
r := CoRectangle.Create;
r.Set_(0,0,1000000,1000000);
mapMain.NumericCoordSys.Set_(0,miUnitMeter,miUnitMeter,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
r,EmptyParam);
r:=nil;
then make a line,
pts.RemoveAll;
pts.AddXY(x1,y1);
pts.AddXY(x2,y2);
cmxl := mapMain.FeatureFactory.CreateLine(pts,EmptyParam);
then try to make a buffer around this line:
cmxb := mapMain.FeatureFactory.BufferFeatures(
cmxl,
10,
miUnitMeter,
EmptyParam);
Then I get an exception:
"Invalid distance type for coordinate conversion in buffer operation"
So, any ideas?
:)
Attila Farago
(It works with e.g. la/lo projection)
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4646