This is a multi-part message in MIME format. --------------020806020400040103040202 Content-Type: text/plain: charset=ISO-8859-1: format=flowed Content-Transfer-Encoding: 7bit
Sorry that I wasn't precise enough...
I attached an screenshot for better imagination.
The shapefile contains polygons, they are all irregular. An polygon can completly contain one ore more other polygons. Or, if you are looking the other direction, it can be completly contained (along with other polygons) by an other polygon. More than "one level containment" are not of interest, just the direct neighbour relationship. There is no space between the polygons, so they share a borderline. Each polygon has an unique id. So now to the result that I wish to have:
A list of the polygons and the neighbour of each. It could be look like this:
(the numbers are related to the attached picture) Number ,neighbours 3 ,(2,4,33) 4 ,(3,5,33) ...
or a matrix like this:
0 ,1 ,2 ,3 ,4 ,... ,n 1 2 ,0 ,0 ,1 ,0 ,... 3 ,0 ,1 ,0 ,1 ,... ... n
so a zero value means: no neighbour: one means: neighbor. the matrix could also be filled with the length of the shared borderline. So if there is an value greater zero would mean neighbourhood relationship.
The information about which polygons are (completly) contained and which ones surround the current polygone are also of interest. I`m not sure how this information would fit into the matrix above, maybe an seperate table would do it.
It doesn`t matter to me if its an shell script for linux or an extension/plugin for an GIS. I take everything I can get :)
I hope you see what I`m looking for. If you need more information, just ask :)
thanks so far
lars
Mohamed Eleiche schrieb: > Please define the type of feature you have : polygon/Line ?? > the type of neighbours, if you can provide a sample and more > details, we can help > > Regards > > Mohamed Eleiche > GIS Consultant > GeoTiba Systems > Cairo, Egypt > > ----- Original Message ----- > From: "lars lingner" <lingner.mail@gmx.net> > To: <gislist@lists.geocomm.com> > Sent: Thursday, July 21, 2005 12:40 PM > Subject: [gislist] how to get neighbours list from an shapefile > > > >>Hello list, >> >>I`m looking for an solution to get an list of all neighbours from an >>feature in my shapefile. It should differentiate between included and >>surrounding neighbours. At top of this it would be really nice to get >>the length of the border between the current feature and the neighbours. >> >>The output should be an table, which I need for further processing. >> >>I thought this is an basic task for an GIS (even if its not an trivial >>one), but I couldn't find anything. Is there an solution out there? >>Maybe as an extension for ESRI ArcView/GIS or GRASS or any other GIS? >> >>I`m appreciate any informations. >> >>Thank you >> >>lars >>_______________________________________________ >>gislist mailing list >>gislist@lists.geocomm.com >>http://lists.geocomm.com/mailman/listinfo/gislist >> >>_________________________________ >>This list is brought to you by >>The GeoCommunity >>http://www.geocomm.com/ >> > > >
--------------020806020400040103040202 Content-Type: text/plain: charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ gislist mailing list gislist@lists.geocomm.com http://lists.geocomm.com/mailman/listinfo/gislist
_________________________________ This list is brought to you by The GeoCommunity http://www.geocomm.com/
--------------020806020400040103040202--
|