Jump to content

 
Photo

Connecting all points with each other...

- - - - -

  • Please log in to reply
6 replies to this topic

#1
NeverEasy

NeverEasy

    Contributor

  • Validated Member
  • PipPip
  • 28 posts
  • Finland

Hi again!

I have two point layers (let's call them A and B ) and I would like a polyline to connect every point from layer A to every point in layer B. Note that I don't want to connect a layer's points with it's own points, only to the other layer's points. Say I have 10 points in layer A and 2 points in layer B --> how can I draw one line from every point in layer A to both points in layer B? Drawing them manually is not an option. I have at my disposal ArcGIS 10 (with most ESRI extensions) and Manifold. I'll happily download any extensions, as long as it's free.

Thank you!

Edited by NeverEasy, 26 April 2011 - 08:43 AM.


#2
dsl

dsl

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 225 posts
  • Gender:Male
  • Location:Denver
  • United States

I think what you are looking for is called a spider diagram. There are some ArcScripts to accomplish this, but I don't know about compatibility with ArcGIS 10. Looks like ET Geowizard has a tool to do this:

http://www.ian-ko.co...iderDiagram.htm

Cheers,
David

#3
sitesatlas

sitesatlas

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Madrid, Spain
  • Spain

I did this several years ago in Manifold, but I can't remember how it worked. I'd try posting on the Manifold forum.
Michael Borop
World Sites Atlas
http://www.sitesatlas.com

#4
KlausDE

KlausDE

    Contributor

  • Validated Member
  • PipPip
  • 21 posts
  • Germany

I did this several years ago in Manifold, but I can't remember how it worked. I'd try posting on the Manifold forum.

Yes, in Manifold it's as simple as linking a Drawing to the following query, that uses two instances of the same source of points to create the connections. Perhaps there are similar ways in other GIS systems.
--SQLSELECT NewLine([P1].[Geom (I)], [P2].[Geom (I)]) As [Connection]FROM [Points] AS [P1], [Points] AS [P2]WHERE [P1].[ID] <> [P2].[ID]


#5
KlausDE

KlausDE

    Contributor

  • Validated Member
  • PipPip
  • 21 posts
  • Germany

Oops, That was for all points in one layer. For two different layers it's easier

SELECT NewLine([Points 1].[Geom (I)], [Points 2].[Geom (I)]) As [Connection]
FROM [Points 1], [Points 2]

#6
sitesatlas

sitesatlas

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Madrid, Spain
  • Spain

Oops, That was for all points in one layer. For two different layers it's easier

SELECT NewLine([Points 1].[Geom (I)], [Points 2].[Geom (I)]) As [Connection]
FROM [Points 1], [Points 2]


I figured it was relatively straightforward. That can definitely come in handy -- thanks!
Michael Borop
World Sites Atlas
http://www.sitesatlas.com

#7
NeverEasy

NeverEasy

    Contributor

  • Validated Member
  • PipPip
  • 28 posts
  • Finland

Thanks for all the help and espescially for the query! :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->