ThinkGeo.com    |     Documentation    |     Premium Support

Buffering a lineshape

Hello,
we are working on project requires to draw a buffer area across the lineshape. we want to set the buffer to 1nm .can suggest how it can be done. if do you have sample can you provide one.
Thanks and Regards,
hrishikesh.

Hi hrishikesh,

Is the NM Nautical mile or nanometer?

If that’s nanometer I think we cannot did that, because it’s even small than one pixel, it cannot be shows correct.

If that’s Nautical mile you can convert it to the supported distance unit by search the convert ratio on network.

Regards,

Ethan

Hello Ethan,
It’s nautical miles but we want a buffer around the lineshape. can you provide a sample code how we can get buffer around the lineshape ?!
Thanks and Regards,
hrishikesh.

Hi hrishikesh,

I think you can do that like this:
line.Buffer(5, map.MapUnit, DistanceUnit.NauticalMile);

Wish that’s helpful.

Regards,

Ethan

Hi Ethan,
Thank you it worked as excepted.
Thanks and Regards,
Hrishikesh Konde.

Hi hrishikesh,

I am glad to hear that’s helpful.

Regards,

Ethan