MapWinGIS ActiveX Sample Code : MapWindow Discussion Forum
Most users use the GIS Tools plug-in or the MWGeoProc library to merge shapes. This is not always working, due to the version of NTS library that is being used. Both the plug-in and the library are scheduled to be rewritten using GEOS methods. This script is sho
Merging shapes using GEOS methods
Posted by: pmeems ()
Date: March 25, 2010 07:41AM

Most users use the GIS Tools plug-in or the MWGeoProc library to merge shapes.
This is not always working, due to the version of NTS library that is being used.

Both the plug-in and the library are scheduled to be rewritten using GEOS methods.

This script is showing how to do that in the mean time:
MergeShapes.cs

Open the shapefile you want to work with. Select the shapes you want to merge using the selection tool or a query in the attribute table editor.
Run the script.
A new shapefile has been made in the same folder as the original shapefile. No attributes have been copied.

Hope it helps.

Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: