# Create and change shapefiles

**URL:** <https://community.thinkgeo.com/t/create-and-change-shapefiles/3366>\
**Category:** WPF\
**Created:** [January 14, 2013, 7:35pm UTC](https://community.thinkgeo.com/t/create-and-change-shapefiles/3366 "2013-01-14T19:35:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mengbo](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@Mengbo](https://community.thinkgeo.com/u/Mengbo)\
**Post date:** [January 14, 2013, 7:35pm UTC](https://community.thinkgeo.com/t/create-and-change-shapefiles/3366/1 "2013-01-14T19:35:48Z")

</div>

Hi,

I&nbsp;am&nbsp;new&nbsp;to&nbsp;your&nbsp;WPF&nbsp;Map&nbsp;components.&nbsp;We&nbsp;need&nbsp;using&nbsp;your&nbsp;WPF&nbsp;Map&nbsp;components&nbsp;to&nbsp;do:

(1).&nbsp;Create&nbsp;new&nbsp;shapefiles&nbsp;from&nbsp;scratch&nbsp;and&nbsp;save&nbsp;the&nbsp;shapefiles&nbsp;to&nbsp;disk.

(2).&nbsp;Rebuild&nbsp;existing&nbsp;shapefiles&nbsp;by&nbsp;removing&nbsp;some&nbsp;old&nbsp;fields&nbsp;and&nbsp;add&nbsp;new&nbsp;fields,&nbsp;and&nbsp;changing&nbsp;fields’&nbsp;value.&nbsp;Then&nbsp;finally&nbsp;save&nbsp;the&nbsp;rebuilt&nbsp;shapefiles&nbsp;to&nbsp;disk.

&nbsp;

Would&nbsp;you&nbsp;tell&nbsp;me&nbsp;where&nbsp;I&nbsp;can&nbsp;find&nbsp;sample&nbsp;code&nbsp;to&nbsp;do&nbsp;these&nbsp;jobs?

&nbsp;

Thank&nbsp;you,

&nbsp;

Mengbo

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [January 15, 2013, 8:06pm UTC](https://community.thinkgeo.com/t/create-and-change-shapefiles/3366/2 "2013-01-15T20:06:55Z")

</div>

Hi&nbsp;Mengbo,

The&nbsp;WPF&nbsp;components&nbsp;cannot&nbsp;achieve&nbsp;your&nbsp;goal,&nbsp;just&nbsp;use&nbsp;the&nbsp;MapSuiteCore,&nbsp;attached&nbsp;is&nbsp;the&nbsp;code.

Hope&nbsp;it&nbsp;helps,

Edgar

[post10971.txt](https://community.thinkgeo.com/uploads/default/original/2X/3/3170bc08e529300b72c4e59aa65fde759a2280a1.txt) (2 KB)

---

<div class="post-metadata">

**Author:** ![Mengbo](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@Mengbo](https://community.thinkgeo.com/u/Mengbo)\
**Post date:** [January 15, 2013, 9:36pm UTC](https://community.thinkgeo.com/t/create-and-change-shapefiles/3366/3 "2013-01-15T21:36:51Z")

</div>

Edgar,

Your&nbsp;sample&nbsp;code&nbsp;answered&nbsp;my&nbsp;questions.&nbsp;Thank&nbsp;you&nbsp;so&nbsp;much.

We&nbsp;have&nbsp;Windows&nbsp;Map&nbsp;applications&nbsp;using&nbsp;ESRI&nbsp;MapObjects&nbsp;since&nbsp;1997.&nbsp;&nbsp;Now&nbsp;we&nbsp;are&nbsp;upgrading&nbsp;the&nbsp;applications&nbsp;to&nbsp;WPF&nbsp;on&nbsp;.NET&nbsp;platform.&nbsp;Actually&nbsp;I&nbsp;am&nbsp;evaluating&nbsp;your&nbsp;Map&nbsp;Suite&nbsp;products&nbsp;for&nbsp;this&nbsp;upgrading.&nbsp;If&nbsp;your&nbsp;Map&nbsp;Suite&nbsp;can&nbsp;do&nbsp;the&nbsp;same&nbsp;jobs&nbsp;as&nbsp;ESRI&nbsp;MapObjects&nbsp;for&nbsp;our&nbsp;applications,&nbsp;we&nbsp;will&nbsp;choose&nbsp;your&nbsp;products&nbsp;to&nbsp;replace&nbsp;ESRI&nbsp;MapObjects&nbsp;in&nbsp;the&nbsp;new&nbsp;applications.

So&nbsp;I&nbsp;will&nbsp;ask&nbsp;more&nbsp;your&nbsp;code&nbsp;samples&nbsp;that&nbsp;can&nbsp;do&nbsp;the&nbsp;same&nbsp;jobs&nbsp;as&nbsp;ESRI&nbsp;MapObjects&nbsp;in&nbsp;our&nbsp;applications.

Have&nbsp;you&nbsp;a&nbsp;great&nbsp;day,

&nbsp;

Mengbo

&nbsp;

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [January 15, 2013, 10:54pm UTC](https://community.thinkgeo.com/t/create-and-change-shapefiles/3366/4 "2013-01-15T22:54:35Z")

</div>

Mengbo,&nbsp;  
&nbsp;&nbsp;  
&nbsp;You’re&nbsp;welcome,&nbsp;thank&nbsp;you&nbsp;for&nbsp;using&nbsp;our&nbsp;products,&nbsp;I&nbsp;hope&nbsp;our&nbsp;products&nbsp;will&nbsp;be&nbsp;your&nbsp;best&nbsp;choice&nbsp;:).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Edgar
