# Buffer Issue

**URL:** <https://community.thinkgeo.com/t/buffer-issue/801>\
**Category:** WinForms\
**Created:** [October 30, 2009, 9:15am UTC](https://community.thinkgeo.com/t/buffer-issue/801 "2009-10-30T09:15:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [October 30, 2009, 9:15am UTC](https://community.thinkgeo.com/t/buffer-issue/801/1 "2009-10-30T09:15:59Z")

</div>

&nbsp;

&nbsp;

Hello,

I&nbsp;am&nbsp;running&nbsp;into&nbsp;an&nbsp;issue&nbsp;I&nbsp;have&nbsp;had&nbsp;before&nbsp;(and&nbsp;probably&nbsp;always)&nbsp;with&nbsp;the&nbsp;buffer&nbsp;function.&nbsp;I&nbsp;am&nbsp;not&nbsp;sure&nbsp;if&nbsp;it&nbsp;is&nbsp;the&nbsp;limitation&nbsp;of&nbsp;the&nbsp;extension&nbsp;being&nbsp;used&nbsp;(if&nbsp;any)&nbsp;but&nbsp;it&nbsp;does&nbsp;not&nbsp;take&nbsp;much&nbsp;for&nbsp;me&nbsp;to&nbsp;cause&nbsp;Out&nbsp;of&nbsp;Memory&nbsp;exceptions&nbsp;or&nbsp;in&nbsp;general&nbsp;long&nbsp;wait&nbsp;times&nbsp;to&nbsp;return&nbsp;the&nbsp;buffered&nbsp;shape.

If&nbsp;the&nbsp;project&nbsp;is&nbsp;paused&nbsp;during&nbsp;the&nbsp;'hang'&nbsp;the&nbsp;line&nbsp;focused&nbsp;on&nbsp;is&nbsp;the&nbsp;shape.buffer&nbsp;function.&nbsp;The&nbsp;geometry&nbsp;being&nbsp;buffered&nbsp;is&nbsp;not&nbsp;even&nbsp;a&nbsp;very&nbsp;complicated&nbsp;one,&nbsp;but&nbsp;that&nbsp;is&nbsp;a&nbsp;little&nbsp;besides&nbsp;the&nbsp;point.&nbsp;I&nbsp;have&nbsp;figured&nbsp;out&nbsp;a&nbsp;way&nbsp;to&nbsp;throw&nbsp;a&nbsp;rolling&nbsp;progress&nbsp;bar&nbsp;during&nbsp;this&nbsp;process&nbsp;to&nbsp;allow&nbsp;the&nbsp;users&nbsp;to&nbsp;understand&nbsp;the&nbsp;process&nbsp;is&nbsp;underway&nbsp;but&nbsp;I&nbsp;have&nbsp;no&nbsp;way&nbsp;to&nbsp;exit&nbsp;the&nbsp;buffer&nbsp;request&nbsp;if&nbsp;it&nbsp;takes&nbsp;a&nbsp;certain&nbsp;amount&nbsp;of&nbsp;time&nbsp;or&nbsp;offer&nbsp;the&nbsp;user&nbsp;a&nbsp;choice&nbsp;of&nbsp;whether&nbsp;to&nbsp;wait&nbsp;or&nbsp;not.&nbsp;I&nbsp;think&nbsp;this&nbsp;is&nbsp;very&nbsp;necessary&nbsp;when&nbsp;we&nbsp;are&nbsp;talking&nbsp;about&nbsp;a&nbsp;relatively&nbsp;simple&nbsp;buffer&nbsp;taking&nbsp;forever...

Just&nbsp;for&nbsp;some&nbsp;background,&nbsp;the&nbsp;process&nbsp;entails&nbsp;taking&nbsp;a&nbsp;users&nbsp;selection&nbsp;of&nbsp;various&nbsp;parcels&nbsp;(typically&nbsp;abutting&nbsp;one&nbsp;another)&nbsp;and&nbsp;unioning&nbsp;them&nbsp;,and&nbsp;then&nbsp;applying&nbsp;the&nbsp;buffer&nbsp;to&nbsp;the&nbsp;shape&nbsp;returned&nbsp;from&nbsp;the&nbsp;union.&nbsp;The&nbsp;union&nbsp;is&nbsp;ALWAYS&nbsp;instant&nbsp;and&nbsp;the&nbsp;buffer&nbsp;is&nbsp;always&nbsp;the&nbsp;culprit.&nbsp;It's&nbsp;worth&nbsp;noting&nbsp;that&nbsp;the&nbsp;buffer&nbsp;can&nbsp;handle&nbsp;certain&nbsp;small&nbsp;value&nbsp;requests&nbsp;but&nbsp;something&nbsp;like&nbsp;250&nbsp;feet&nbsp;will&nbsp;sometimes&nbsp;cause&nbsp;a&nbsp;problem&nbsp;depending&nbsp;on&nbsp;the&nbsp;input&nbsp;geometry.

I&nbsp;am&nbsp;attaching&nbsp;a&nbsp;picture&nbsp;of&nbsp;the&nbsp;selected&nbsp;parcels&nbsp;that&nbsp;would&nbsp;act&nbsp;as&nbsp;the&nbsp;unioned&nbsp;input&nbsp;shape&nbsp;for&nbsp;buffering&nbsp;so&nbsp;that&nbsp;you&nbsp;may&nbsp;have&nbsp;an&nbsp;idea&nbsp;of&nbsp;how&nbsp;relatively&nbsp;simple&nbsp;the&nbsp;geometry&nbsp;is.&nbsp;The&nbsp;parcel&nbsp;highlighted&nbsp;in&nbsp;red&nbsp;is&nbsp;treated&nbsp;as&nbsp;all&nbsp;of&nbsp;the&nbsp;yellow&nbsp;ones.&nbsp;Also,&nbsp;I&nbsp;am&nbsp;running&nbsp;on&nbsp;a&nbsp;Quad&nbsp;Core&nbsp;with&nbsp;4GB&nbsp;of&nbsp;ram&nbsp;so&nbsp;for&nbsp;my&nbsp;machine&nbsp;to&nbsp;basically&nbsp;run&nbsp;out&nbsp;of&nbsp;memory&nbsp;from&nbsp;a&nbsp;buffer&nbsp;is&nbsp;rather&nbsp;odd&nbsp;and&nbsp;I&nbsp;imagine&nbsp;end&nbsp;users&nbsp;PC's&nbsp;will&nbsp;exception&nbsp;much&nbsp;sooner&nbsp;due&nbsp;to&nbsp;their&nbsp;memory&nbsp;resources&nbsp;being&nbsp;lower.&nbsp;This&nbsp;has&nbsp;been&nbsp;an&nbsp;issue&nbsp;with&nbsp;the&nbsp;buffer&nbsp;since&nbsp;I&nbsp;started&nbsp;using&nbsp;Map&nbsp;Suite&nbsp;so&nbsp;it&nbsp;is&nbsp;not&nbsp;new&nbsp;behavior,&nbsp;but&nbsp;it&nbsp;is&nbsp;the&nbsp;current&nbsp;observed&nbsp;Achilles'&nbsp;Heel&nbsp;in&nbsp;our&nbsp;otherwise&nbsp;highly&nbsp;stable&nbsp;and&nbsp;high&nbsp;performing&nbsp;application&nbsp;so&nbsp;anything&nbsp;we&nbsp;can&nbsp;do&nbsp;to&nbsp;resolve&nbsp;this&nbsp;would&nbsp;be&nbsp;great.

I&nbsp;would&nbsp;like&nbsp;to&nbsp;see&nbsp;the&nbsp;ability&nbsp;to&nbsp;perform&nbsp;these&nbsp;buffers&nbsp;without&nbsp;any&nbsp;issue&nbsp;at&nbsp;all,&nbsp;but&nbsp;if&nbsp;that&nbsp;is&nbsp;beyond&nbsp;Map&nbsp;Suite's&nbsp;control,&nbsp;at&nbsp;least&nbsp;I&nbsp;would&nbsp;like&nbsp;ideas&nbsp;on&nbsp;how&nbsp;to&nbsp;abort&nbsp;this&nbsp;operation&nbsp;if&nbsp;it&nbsp;exceeds&nbsp;a&nbsp;certain&nbsp;amount&nbsp;of&nbsp;time.&nbsp;Is&nbsp;this&nbsp;possible?

By&nbsp;the&nbsp;way,&nbsp;stability&nbsp;in&nbsp;the&nbsp;past&nbsp;few&nbsp;component&nbsp;releases&nbsp;have&nbsp;been&nbsp;rock&nbsp;solid.&nbsp;Great&nbsp;job!

Thank&nbsp;you!

`Dim shapeBuffer As BaseShape = shapeUnion.Buffer(BufferDistance, 8, BufferCapType.Square, 2, 1)`

&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/1X/4cfd8c7eaf358ad27af5542e4355567a86b7f373.jpg)&nbsp;

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [October 30, 2009, 9:31am UTC](https://community.thinkgeo.com/t/buffer-issue/801/2 "2009-10-30T09:31:31Z")

</div>

Nelson,&nbsp;the&nbsp;Net&nbsp;Topoogy&nbsp;Suite&nbsp;(NTS)&nbsp;buffer&nbsp;is&nbsp;very&nbsp;week,&nbsp;and&nbsp;very&nbsp;problematic.&nbsp;&nbsp;&nbsp;It&nbsp;has&nbsp;caused&nbsp;us&nbsp;no&nbsp;end&nbsp;of&nbsp;grief&nbsp;over&nbsp;the&nbsp;last&nbsp;two&nbsp;years.&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;contracted&nbsp;with&nbsp;on&nbsp;of&nbsp;the&nbsp;SharpMap&nbsp;developers&nbsp;to&nbsp;improve&nbsp;it,&nbsp;and&nbsp;he&nbsp;did,&nbsp;but&nbsp;it&nbsp;is&nbsp;not&nbsp;the&nbsp;version&nbsp;of&nbsp;NTS&nbsp;that&nbsp;ThinkGeo&nbsp;uses.&nbsp;&nbsp;&nbsp;And&nbsp;it&nbsp;still&nbsp;has&nbsp;problems.&nbsp;&nbsp;&nbsp;So&nbsp;I&nbsp;have&nbsp;just&nbsp;taken&nbsp;delivery&nbsp;of&nbsp;an&nbsp;incredibly&nbsp;fast&nbsp;solution&nbsp;that&nbsp;I&nbsp;contracted&nbsp;from&nbsp;a&nbsp;machine&nbsp;tools&nbsp;software&nbsp;developer.&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;will&nbsp;be&nbsp;testing&nbsp;it&nbsp;some&nbsp;this&nbsp;weekend,&nbsp;and&nbsp;have&nbsp;a&nbsp;better&nbsp;report.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;It&nbsp;is&nbsp;a&nbsp;tool&nbsp;that,&nbsp;like&nbsp;you,&nbsp;we&nbsp;use&nbsp;for&nbsp;querying&nbsp;existing&nbsp;features.&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;penalty&nbsp;that&nbsp;we&nbsp;pay&nbsp;for&nbsp;its&nbsp;performance&nbsp;is&nbsp;that&nbsp;if&nbsp;you&nbsp;buffere&nbsp;out&nbsp;by&nbsp;10&nbsp;meters,&nbsp;and&nbsp;back&nbsp;in,&nbsp;you&nbsp;may&nbsp;not&nbsp;get&nbsp;exactly&nbsp;the&nbsp;same&nbsp;object&nbsp;you&nbsp;started&nbsp;with.&nbsp;&nbsp;&nbsp;But&nbsp;for&nbsp;one-way&nbsp;buffers&nbsp;that&nbsp;are&nbsp;used&nbsp;for&nbsp;temporary&nbsp;queries&nbsp;or&nbsp;other&nbsp;analysis…&nbsp;it&nbsp;is&nbsp;well&nbsp;suited.&nbsp;  
&nbsp;&nbsp;  
&nbsp;There&nbsp;are&nbsp;no&nbsp;third-party&nbsp;dependencies.&nbsp;&nbsp;&nbsp;It&nbsp;accepts&nbsp;WKT&nbsp;or&nbsp;WKB&nbsp;inputs.&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;it&nbsp;pans&nbsp;out,&nbsp;I’ll&nbsp;share&nbsp;it&nbsp;with&nbsp;the&nbsp;ThinkGeo&nbsp;community.&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 1, 2009, 6:58pm UTC](https://community.thinkgeo.com/t/buffer-issue/801/3 "2009-11-01T18:58:29Z")

</div>

Nelson,

Could&nbsp;you&nbsp;provide&nbsp;us&nbsp;the&nbsp;WKT&nbsp;for&nbsp;the&nbsp;target&nbsp;shape&nbsp;which&nbsp;will&nbsp;make&nbsp;out&nbsp;of&nbsp;memory&nbsp;excpetion&nbsp;happen&nbsp;when&nbsp;buffering&nbsp;operation&nbsp;excuted?&nbsp;We&nbsp;will&nbsp;ty&nbsp;some&nbsp;investigations&nbsp;on&nbsp;it.  
&nbsp;  
Any&nbsp;more&nbsp;quesitons&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 1, 2009, 6:59pm UTC](https://community.thinkgeo.com/t/buffer-issue/801/4 "2009-11-01T18:59:15Z")

</div>

Ted,

Thanks&nbsp;for&nbsp;your&nbsp;help&nbsp;and&nbsp;kindly&nbsp;contributions&nbsp;in&nbsp;MapSuite&nbsp;community,&nbsp;that&nbsp;did&nbsp;help&nbsp;us&nbsp;understand&nbsp;better&nbsp;in&nbsp;NTS.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 2, 2009, 11:10am UTC](https://community.thinkgeo.com/t/buffer-issue/801/5 "2009-11-02T11:10:28Z")

</div>

Nelson,

I&nbsp;removed&nbsp;your&nbsp;post&nbsp;and&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;add&nbsp;the&nbsp;WKT&nbsp;as&nbsp;a&nbsp;file&nbsp;attachment.&nbsp;&nbsp;I&nbsp;had&nbsp;the&nbsp;admin&nbsp;up&nbsp;the&nbsp;attachment&nbsp;size.&nbsp;:-)&nbsp;Below&nbsp;are&nbsp;the&nbsp;other&nbsp;details&nbsp;on&nbsp;what&nbsp;your&nbsp;wrote.

&nbsp;

From&nbsp;Neslon:

Here&nbsp;is&nbsp;the&nbsp;WKT&nbsp;of&nbsp;the&nbsp;selection&nbsp;after&nbsp;having&nbsp;a&nbsp;union&nbsp;done&nbsp;to&nbsp;it.&nbsp;This&nbsp;is&nbsp;the&nbsp;input&nbsp;shape&nbsp;that&nbsp;is&nbsp;then&nbsp;buffered&nbsp;by&nbsp;260&nbsp;feet.&nbsp;It&nbsp;took&nbsp;about&nbsp;30&nbsp;minutes&nbsp;to&nbsp;force&nbsp;the&nbsp;exception&nbsp;on&nbsp;my&nbsp;computer&nbsp;with&nbsp;mem&nbsp;use&nbsp;on&nbsp;the&nbsp;process&nbsp;at&nbsp;around&nbsp;1.2GB.&nbsp;Here&nbsp;is&nbsp;an&nbsp;image&nbsp;of&nbsp;the&nbsp;selection&nbsp;and&nbsp;the&nbsp;exception.

&nbsp;

David

[1402-PolygonWKT.zip](https://community.thinkgeo.com/uploads/default/original/2X/f/f02bd4a0e84bb6e5109286bb7b25b4c4bfd02883.zip) (428 KB)

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 2, 2009, 8:31pm UTC](https://community.thinkgeo.com/t/buffer-issue/801/6 "2009-11-02T20:31:31Z")

</div>

Nelson&nbsp;&&nbsp;David,

I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;that&nbsp;the&nbsp;Wkt&nbsp;is&nbsp;not&nbsp;a&nbsp;valid&nbsp;wkt,&nbsp;following&nbsp;code&nbsp;will&nbsp;shows&nbsp;it:  
`StreamReader sr = new StreamReader(@"c:\Post6545\PolygonWKT.txt");string wkt = sr.ReadToEnd();MultipolygonShape polygonShape = (MultipolygonShape)BaseShape.CreateShapeFromWellKnownData(wkt);`  
&nbsp;  
If&nbsp;you&nbsp;want,&nbsp;youcould&nbsp;use&nbsp;the&nbsp;following&nbsp;code&nbsp;to&nbsp;save&nbsp;the&nbsp;wkt:  
`Feature selectedFeature = new Feature();string selectdWkt = selectedFeature.GetWellKnownText();StreamWriter sw = new StreamWriter(@"c:\Post6545\wkt.txt");sw.WriteLine(selectdWkt);sw.Close();`  
&nbsp;  
Sorry&nbsp;for&nbsp;the&nbsp;inconvinience.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 3, 2009, 10:36am UTC](https://community.thinkgeo.com/t/buffer-issue/801/7 "2009-11-03T10:36:22Z")

</div>

Nelson,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Maybe&nbsp;I&nbsp;screwed&nbsp;up&nbsp;the&nbsp;WKT&nbsp;when&nbsp;I&nbsp;copied&nbsp;it&nbsp;out.&nbsp;&nbsp;Could&nbsp;you&nbsp;please&nbsp;e-mail&nbsp;support&nbsp;with&nbsp;the&nbsp;WKT&nbsp;and&nbsp;have&nbsp;them&nbsp;forward&nbsp;it&nbsp;to&nbsp;Yale?&nbsp;&nbsp;Sorry&nbsp;Nelson!&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [November 4, 2009, 7:09am UTC](https://community.thinkgeo.com/t/buffer-issue/801/8 "2009-11-04T07:09:14Z")

</div>

I&nbsp;think&nbsp;it&nbsp;became&nbsp;messed&nbsp;up&nbsp;when&nbsp;I&nbsp;inserted&nbsp;the&nbsp;photo.&nbsp;I'll&nbsp;email&nbsp;the&nbsp;WKT&nbsp;as&nbsp;even&nbsp;zipped&nbsp;its&nbsp;a&nbsp;little&nbsp;over&nbsp;500kb.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 6, 2009, 1:21am UTC](https://community.thinkgeo.com/t/buffer-issue/801/9 "2009-11-06T01:21:42Z")

</div>

&nbsp;

Nelson,  
&nbsp;  
I&nbsp;have&nbsp;recreated&nbsp;your&nbsp;problem&nbsp;exactly&nbsp;as&nbsp;you&nbsp;said&nbsp;with&nbsp;you&nbsp;wkt&nbsp;sent&nbsp;from&nbsp;your&nbsp;email.  
&nbsp;  
I&nbsp;did&nbsp;some&nbsp;investigations&nbsp;on&nbsp;this&nbsp;and&nbsp;I&nbsp;found&nbsp;a&nbsp;very&nbsp;interesting&nbsp;way&nbsp;to&nbsp;go&nbsp;around&nbsp;it:  
_StreamReader&nbsp;sr&nbsp;=&nbsp;new&nbsp;StreamReader(@"C:\Documents&nbsp;and&nbsp;Settings\wuwenlong\Desktop\WKT\WKT.txt");_  
_string&nbsp;wkt&nbsp;=&nbsp;sr.ReadToEnd();_  
_sr.Close();_  
_BaseShape&nbsp;baseShape&nbsp;=&nbsp;BaseShape.CreateShapeFromWellKnownData(wkt);_  
&nbsp;  
This&nbsp;will&nbsp;throw&nbsp;the&nbsp;out&nbsp;of&nbsp;memory&nbsp;exception.  
_BaseShape&nbsp;bufferedShape&nbsp;=&nbsp;baseShape.Buffer(400,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
&nbsp;  
While&nbsp;if&nbsp;I&nbsp;buffer&nbsp;it&nbsp;two&nbsp;times:  
&nbsp;_BaseShape&nbsp;bufferedShape1&nbsp;=&nbsp;baseShape.Buffer(200,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
_&nbsp;BaseShape&nbsp;bufferedShape2&nbsp;=&nbsp;bufferedShape1.Buffer(200,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
And&nbsp;I&nbsp;buffered&nbsp;it&nbsp;4&nbsp;times:  
_BaseShape&nbsp;bufferedShape1&nbsp;=&nbsp;baseShape.Buffer(100,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
_BaseShape&nbsp;bufferedShape2&nbsp;=&nbsp;bufferedShape1.Buffer(100,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
_BaseShape&nbsp;bufferedShape3&nbsp;=&nbsp;bufferedShape2.Buffer(100,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
_BaseShape&nbsp;bufferedShape4&nbsp;=&nbsp;bufferedShape3.Buffer(100,&nbsp;8,&nbsp;BufferCapType.Square,&nbsp;GeographyUnit.Meter,&nbsp;DistanceUnit.Feet);_  
_&nbsp;_  
Both&nbsp;of&nbsp;them&nbsp;works&nbsp;fine&nbsp;and&nbsp;the&nbsp;result&nbsp;seems&nbsp;identical.&nbsp;Attachment&nbsp;contains&nbsp;the&nbsp;result.  
&nbsp;  
Just&nbsp;want&nbsp;to&nbsp;let&nbsp;you&nbsp;know&nbsp;my&nbsp;findings.  
&nbsp;  
Thanks.  
&nbsp;  
Yale  
  
[1411-BufferResultPictures.zip](https://community.thinkgeo.com/uploads/default/original/2X/5/5a947ee1f827ed066e21f011256c4f7b528e2b14.zip) (294 KB)

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [November 6, 2009, 6:31am UTC](https://community.thinkgeo.com/t/buffer-issue/801/10 "2009-11-06T06:31:23Z")

</div>

Nelson,&nbsp;can&nbsp;I&nbsp;get&nbsp;this&nbsp;WKT,&nbsp;to&nbsp;see&nbsp;if&nbsp;our&nbsp;new&nbsp;routine&nbsp;solves&nbsp;the&nbsp;issue?&nbsp;&nbsp;&nbsp;It&nbsp;is&nbsp;looking&nbsp;good&nbsp;on&nbsp;our&nbsp;own&nbsp;set&nbsp;of&nbsp;problem&nbsp;WKTs.&nbsp;&nbsp;&nbsp;You&nbsp;can&nbsp;just&nbsp;give&nbsp;permission&nbsp;for&nbsp;ThinkGeo&nbsp;support&nbsp;to&nbsp;put&nbsp;it&nbsp;in&nbsp;my&nbsp;ftp&nbsp;folder,&nbsp;if&nbsp;you&nbsp;want.&nbsp;&nbsp;&nbsp;Or&nbsp;e-mail&nbsp;to&nbsp;[tmacy@mapshots.com](mailto:tmacy@mapshots.com).&nbsp;&nbsp;&nbsp;Or&nbsp;if&nbsp;you&nbsp;prefer&nbsp;not&nbsp;to,&nbsp;that&nbsp;is&nbsp;fine,&nbsp;too!

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 6, 2009, 8:31am UTC](https://community.thinkgeo.com/t/buffer-issue/801/11 "2009-11-06T08:31:14Z")

</div>

Ted,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;I&nbsp;don’t&nbsp;think&nbsp;it&nbsp;is&nbsp;a&nbsp;problem&nbsp;as&nbsp;Nelson&nbsp;had&nbsp;posted&nbsp;the&nbsp;WKT&nbsp;to&nbsp;the&nbsp;forum&nbsp;in&nbsp;the&nbsp;first&nbsp;place.&nbsp;&nbsp;It&nbsp;would&nbsp;be&nbsp;better&nbsp;to&nbsp;get&nbsp;the&nbsp;go&nbsp;ahead&nbsp;from&nbsp;him&nbsp;though&nbsp;since&nbsp;you&nbsp;bring&nbsp;it&nbsp;up.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Nelson:&nbsp;&nbsp;What&nbsp;do&nbsp;you&nbsp;think,&nbsp;just&nbsp;give&nbsp;is&nbsp;the&nbsp;word&nbsp;and&nbsp;we&nbsp;will&nbsp;release&nbsp;it&nbsp;to&nbsp;Ted.&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [November 6, 2009, 9:13am UTC](https://community.thinkgeo.com/t/buffer-issue/801/12 "2009-11-06T09:13:02Z")

</div>

Ted,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;went&nbsp;ahead&nbsp;and&nbsp;forwarded&nbsp;the&nbsp;file.&nbsp;It&nbsp;is&nbsp;a&nbsp;very&nbsp;uninteresting&nbsp;WKT&nbsp;and&nbsp;will&nbsp;not&nbsp;reveal&nbsp;the&nbsp;secrets&nbsp;of&nbsp;our&nbsp;company.&nbsp;&nbsp;;)&nbsp;  
&nbsp;&nbsp;  
&nbsp;David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;for&nbsp;respecting&nbsp;confidentiality&nbsp;but&nbsp;you&nbsp;are&nbsp;100%&nbsp;correct&nbsp;in&nbsp;assuming&nbsp;that&nbsp;since&nbsp;it&nbsp;was&nbsp;posted&nbsp;in&nbsp;the&nbsp;forum,&nbsp;it&nbsp;is&nbsp;ok&nbsp;for&nbsp;public&nbsp;viewing,&nbsp;use,&nbsp;etc.&nbsp;There&nbsp;was&nbsp;just&nbsp;a&nbsp;snag&nbsp;in&nbsp;the&nbsp;size&nbsp;limitations.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Your&nbsp;observation&nbsp;is&nbsp;pretty&nbsp;interesting.&nbsp;Unfortunately,&nbsp;we&nbsp;let&nbsp;the&nbsp;user&nbsp;buffer&nbsp;by&nbsp;variable&nbsp;distances&nbsp;and&nbsp;so&nbsp;I&nbsp;think&nbsp;it&nbsp;would&nbsp;be&nbsp;very&nbsp;difficult&nbsp;on&nbsp;our&nbsp;end&nbsp;to&nbsp;somehow&nbsp;come&nbsp;up&nbsp;with&nbsp;reasonable&nbsp;divisions&nbsp;of&nbsp;their&nbsp;total&nbsp;amount.&nbsp;I&nbsp;am&nbsp;just&nbsp;worried&nbsp;about&nbsp;across-the-board&nbsp;dividing&nbsp;of&nbsp;buffer&nbsp;requests&nbsp;into&nbsp;quarters&nbsp;or&nbsp;eighths&nbsp;and&nbsp;so&nbsp;on.&nbsp;Not&nbsp;for&nbsp;accuracy&nbsp;reasons&nbsp;as&nbsp;much&nbsp;as&nbsp;for&nbsp;the&nbsp;unknown&nbsp;factor.&nbsp;What&nbsp;if&nbsp;we&nbsp;pick&nbsp;a&nbsp;value&nbsp;that&nbsp;when&nbsp;divided&nbsp;by&nbsp;4&nbsp;is&nbsp;still&nbsp;too&nbsp;large&nbsp;to&nbsp;be&nbsp;processed&nbsp;effectively&nbsp;by&nbsp;NTS?&nbsp;To&nbsp;what&nbsp;end&nbsp;would&nbsp;I&nbsp;need&nbsp;to&nbsp;be&nbsp;dividing&nbsp;the&nbsp;total&nbsp;value?&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;These&nbsp;are&nbsp;really&nbsp;important&nbsp;tools&nbsp;for&nbsp;our&nbsp;users.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;all.

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 6, 2009, 9:23am UTC](https://community.thinkgeo.com/t/buffer-issue/801/13 "2009-11-06T09:23:41Z")

</div>

Nelson,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;Do&nbsp;did&nbsp;you&nbsp;send&nbsp;the&nbsp;file&nbsp;to&nbsp;Ted&nbsp;then&nbsp;or&nbsp;do&nbsp;you&nbsp;need&nbsp;us&nbsp;to&nbsp;do&nbsp;that?&nbsp;&nbsp;I&nbsp;didn’t&nbsp;quite&nbsp;get&nbsp;the&nbsp;meaning&nbsp;of&nbsp;your&nbsp;first&nbsp;sentence.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;On&nbsp;the&nbsp;security&nbsp;side&nbsp;of&nbsp;things&nbsp;it&nbsp;is&nbsp;really&nbsp;important&nbsp;for&nbsp;us.&nbsp;&nbsp;We&nbsp;ask&nbsp;users&nbsp;send&nbsp;us&nbsp;data&nbsp;all&nbsp;the&nbsp;time&nbsp;and&nbsp;they&nbsp;only&nbsp;way&nbsp;they&nbsp;do&nbsp;it&nbsp;is&nbsp;knowing&nbsp;they&nbsp;can&nbsp;trust&nbsp;us&nbsp;to&nbsp;keep&nbsp;is&nbsp;private.&nbsp;  
&nbsp;&nbsp;  
&nbsp;As&nbsp;Ted&nbsp;was&nbsp;saying&nbsp;the&nbsp;NTS&nbsp;stuff&nbsp;is&nbsp;pretty&nbsp;good&nbsp;but&nbsp;it&nbsp;is&nbsp;not&nbsp;without&nbsp;issues.&nbsp;&nbsp;The&nbsp;NTS&nbsp;guys&nbsp;themselves&nbsp;didn’t&nbsp;have&nbsp;a&nbsp;good&nbsp;system&nbsp;for&nbsp;compatibility&nbsp;so&nbsp;many&nbsp;if&nbsp;the&nbsp;things&nbsp;that&nbsp;Ted&nbsp;had&nbsp;them&nbsp;put&nbsp;in&nbsp;really&nbsp;screwed&nbsp;us.&nbsp;&nbsp;I&nbsp;think&nbsp;there&nbsp;was&nbsp;some&nbsp;other&nbsp;problem&nbsp;with&nbsp;the&nbsp;changes&nbsp;that&nbsp;I&nbsp;can’t&nbsp;recall.&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;We&nbsp;will&nbsp;look&nbsp;into&nbsp;if&nbsp;there&nbsp;are&nbsp;any&nbsp;new&nbsp;versions&nbsp;and&nbsp;also&nbsp;see&nbsp;how&nbsp;receptive&nbsp;the&nbsp;NTS&nbsp;team&nbsp;is&nbsp;to&nbsp;working&nbsp;with&nbsp;us&nbsp;on&nbsp;this.&nbsp;&nbsp;We&nbsp;don’t&nbsp;have&nbsp;the&nbsp;expertise&nbsp;in&nbsp;house&nbsp;and&nbsp;use&nbsp;NTS&nbsp;for&nbsp;the&nbsp;buffering.&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 6, 2009, 9:33am UTC](https://community.thinkgeo.com/t/buffer-issue/801/14 "2009-11-06T09:33:44Z")

</div>

Guys,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;Some&nbsp;recent&nbsp;interesting&nbsp;news&nbsp;from&nbsp;NTS.&nbsp;&nbsp;It&nbsp;looks&nbsp;like&nbsp;their&nbsp;2.x&nbsp;branch&nbsp;is&nbsp;not&nbsp;more&nbsp;stable&nbsp;and&nbsp;better&nbsp;then&nbsp;their&nbsp;1.x&nbsp;branch.&nbsp;&nbsp;I&nbsp;think&nbsp;we&nbsp;use&nbsp;1.7.?&nbsp;so&nbsp;maybe&nbsp;we&nbsp;can&nbsp;test&nbsp;out&nbsp;the&nbsp;new&nbsp;2.x&nbsp;stuff.&nbsp;&nbsp;Anyone&nbsp;have&nbsp;any&nbsp;inside&nbsp;info&nbsp;on&nbsp;this?&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;[groups.google.com/group/nettopologysuite/browse\_thread/thread/2c68e515018355d5](http://groups.google.com/group/nettopologysuite/browse_thread/thread/2c68e515018355d5)&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [November 6, 2009, 9:52am UTC](https://community.thinkgeo.com/t/buffer-issue/801/15 "2009-11-06T09:52:57Z")

</div>

He&nbsp;sent&nbsp;it&nbsp;to&nbsp;me.

---

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [November 6, 2009, 11:54am UTC](https://community.thinkgeo.com/t/buffer-issue/801/16 "2009-11-06T11:54:54Z")

</div>

I&nbsp;forwarded&nbsp;the&nbsp;file&nbsp;his&nbsp;way,&nbsp;David.&nbsp;  
&nbsp;&nbsp;  
&nbsp;So&nbsp;I&nbsp;am&nbsp;still&nbsp;a&nbsp;little&nbsp;lost&nbsp;in&nbsp;all&nbsp;of&nbsp;this…&nbsp;Is&nbsp;there&nbsp;any&nbsp;proposed&nbsp;way&nbsp;for&nbsp;me&nbsp;to&nbsp;handle&nbsp;when&nbsp;NTS&nbsp;is&nbsp;on&nbsp;the&nbsp;verge&nbsp;of&nbsp;eating&nbsp;all&nbsp;of&nbsp;my&nbsp;memory&nbsp;resources&nbsp;due&nbsp;to&nbsp;this&nbsp;260&nbsp;foot&nbsp;buffer?&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;do&nbsp;need&nbsp;a&nbsp;way&nbsp;to&nbsp;at&nbsp;least&nbsp;allow&nbsp;the&nbsp;user&nbsp;to&nbsp;decide&nbsp;if&nbsp;they&nbsp;want&nbsp;to&nbsp;wait&nbsp;for&nbsp;this&nbsp;excessively&nbsp;long&nbsp;process&nbsp;to&nbsp;continue&nbsp;or&nbsp;choose&nbsp;to&nbsp;abort.&nbsp;Waiting&nbsp;for&nbsp;an&nbsp;out&nbsp;of&nbsp;memory&nbsp;exception&nbsp;can&nbsp;take&nbsp;10&nbsp;minutes&nbsp;and&nbsp;the&nbsp;user&nbsp;will&nbsp;have&nbsp;already&nbsp;assumed&nbsp;his&nbsp;application&nbsp;has&nbsp;‘frozen’&nbsp;which&nbsp;I&nbsp;can’t&nbsp;help&nbsp;but&nbsp;believe&nbsp;is&nbsp;unacceptable.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Even&nbsp;if&nbsp;I&nbsp;decide&nbsp;on&nbsp;always&nbsp;dividing&nbsp;by&nbsp;4&nbsp;or&nbsp;some&nbsp;other&nbsp;random&nbsp;number&nbsp;(which&nbsp;I&nbsp;have&nbsp;big&nbsp;reservations&nbsp;about&nbsp;doing&nbsp;as&nbsp;a&nbsp;solution)&nbsp;there&nbsp;is&nbsp;no&nbsp;guarantee&nbsp;I&nbsp;still&nbsp;will&nbsp;not&nbsp;run&nbsp;into&nbsp;this&nbsp;issue&nbsp;and&nbsp;so&nbsp;it&nbsp;seems&nbsp;no&nbsp;matter&nbsp;what,&nbsp;I&nbsp;must&nbsp;handle&nbsp;this&nbsp;potential&nbsp;scenario.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;thoughs?&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [November 8, 2009, 8:11pm UTC](https://community.thinkgeo.com/t/buffer-issue/801/17 "2009-11-08T20:11:11Z")

</div>

David,

Just&nbsp;want&nbsp;to&nbsp;let&nbsp;you&nbsp;know&nbsp;that&nbsp;we&nbsp;could&nbsp;not&nbsp;find&nbsp;the&nbsp;latest&nbsp;version&nbsp;2.x&nbsp;as&nbsp;you&nbsp;mentioned&nbsp;in&nbsp;its&nbsp;project&nbsp;website:  
[code.google.com/p/nettopolog...loads/list](http://code.google.com/p/nettopologysuite/downloads/list)  
[sourceforge.net/projects/nts/](http://sourceforge.net/projects/nts/)  
&nbsp;  
The&nbsp;latest&nbsp;version&nbsp;is&nbsp;still&nbsp;1.7.3\_RC2&nbsp;which&nbsp;was&nbsp;used&nbsp;currently.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 9, 2009, 10:49am UTC](https://community.thinkgeo.com/t/buffer-issue/801/18 "2009-11-09T10:49:08Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;The&nbsp;2.11&nbsp;&&nbsp;2.0&nbsp;code&nbsp;is&nbsp;a&nbsp;branch&nbsp;inside&nbsp;their&nbsp;source&nbsp;tree.&nbsp;&nbsp;Their&nbsp;article&nbsp;talks&nbsp;about&nbsp;how&nbsp;that&nbsp;is&nbsp;really&nbsp;the&nbsp;way&nbsp;of&nbsp;the&nbsp;future&nbsp;and&nbsp;that&nbsp;they&nbsp;will&nbsp;probably&nbsp;be&nbsp;integrating&nbsp;that&nbsp;with&nbsp;the&nbsp;trunk&nbsp;at&nbsp;some&nbsp;point&nbsp;soon.&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [November 9, 2009, 10:50am UTC](https://community.thinkgeo.com/t/buffer-issue/801/19 "2009-11-09T10:50:10Z")

</div>

Nelson,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;Did&nbsp;you&nbsp;ever&nbsp;find&nbsp;out&nbsp;what&nbsp;the&nbsp;polygon&nbsp;you&nbsp;have&nbsp;looks&nbsp;like&nbsp;when&nbsp;you&nbsp;visualize&nbsp;it?&nbsp;&nbsp;Let&nbsp;me&nbsp;know&nbsp;or&nbsp;if&nbsp;you&nbsp;are&nbsp;busy&nbsp;also&nbsp;let&nbsp;me&nbsp;know&nbsp;and&nbsp;I&nbsp;will&nbsp;try.&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [November 9, 2009, 11:56am UTC](https://community.thinkgeo.com/t/buffer-issue/801/20 "2009-11-09T11:56:01Z")

</div>

![](https://community.thinkgeo.com/uploads/default/original/2X/a/a3e9c125c46c3e8e667a99f373b823a500d95a3c.jpg)Sorry,&nbsp;David.&nbsp;Very&nbsp;caught&nbsp;up&nbsp;at&nbsp;the&nbsp;moment&nbsp;however&nbsp;I&nbsp;did&nbsp;just&nbsp;now&nbsp;visualize&nbsp;that&nbsp;WKT.

[Next page](https://community.thinkgeo.com/t/buffer-issue/801.md?page=2)
