Select to view content in your preferred language

change polygon size?

8758
12
05-19-2011 07:55 AM
SangamLama
Emerging Contributor
Hi all,
how can I change the size of a polygon? I need to be able to increase/decrease it by user entered feet size. In case of a simple square/rectangle, I just add the entered value to XMax, XMin, YMax and YMin, but I'm not sure how I can do that with weird shaped polygons?

Thanks,
0 Kudos
12 Replies
SangamLama
Emerging Contributor
yeah this is pretty bizzare. At least in case of the right polygon, I think what's happening is it's carrying out the projection by drawing numerous triangles and rectangles, but I gave the Simplify property of OffsetParameters as true, so that it would return final outcome only. That should have returned something simple.

I'd appreciate if someone had more insight on this as it's a bit urgent.

Thanks!

Don't know the reason for that... may be some one can answer it
0 Kudos
IgressT
Emerging Contributor
yeah this is pretty bizzare. At least in case of the right polygon, I think what's happening is it's carrying out the projection by drawing numerous triangles and rectangles, but I gave the Simplify property of OffsetParameters as true, so that it would return final outcome only. That should have returned something simple.

I'd appreciate if someone had more insight on this as it's a bit urgent.

Thanks!


Can you share the polygon data you are using to try it out
0 Kudos
SangamLama
Emerging Contributor
one thing now I'm curious about -- my map's measurements are in esriFeet unit. Is it the same as LinearUnit.Foot? I gave OffsetDistance value to be 250, but wasnt sure if those two units were the same..

Now, when you say polygon data, do you mean the following bit?

left buffer polygon:

{ESRI.ArcGIS.Client.Geometry.Polygon}
    [ESRI.ArcGIS.Client.Geometry.Polygon]: {ESRI.ArcGIS.Client.Geometry.Polygon}
    Extent: {1316977.40735295,281673.494292154,1317969.73234739,282601.656984727}
    SpatialReference: {ESRI.ArcGIS.Client.Geometry.SpatialReference}

{ESRI.ArcGIS.Client.Geometry.SpatialReference}
    WKID: 2285
    WKT: null

right buffer polygon:

{ESRI.ArcGIS.Client.Geometry.Polygon}
    [ESRI.ArcGIS.Client.Geometry.Polygon]: {ESRI.ArcGIS.Client.Geometry.Polygon}
    Extent: {1316566.86195633,278576.146840706,1317519.07831775,281886.679216881}
    SpatialReference: {ESRI.ArcGIS.Client.Geometry.SpatialReference}

{ESRI.ArcGIS.Client.Geometry.SpatialReference}
    WKID: 2285
    WKT: null

Can you share the polygon data you are using to try it out
0 Kudos