Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shape files and Polygons

Status
Not open for further replies.

Welshbird

IS-IT--Management
Jul 14, 2000
7,378
DE
Ok - newbie here still.....

I have polygon files of areas, and what I need to do is take places (with an x,y) and calculate in which polygon they exist.

Is this even possible?

Fee

The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
 
If you have a spatial database such as Oracle, its very easy (as long as you load the source data into it obviously).

If you do not have a database, its still possible, but a little bit more tricky, and you will need a knowledge of programming in a langauage such as Java or C/C++ or C# .

How many records are there in the source data ?
Can you post an example of one of the polygons ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
There are many algorithms on the internet to do this.



I have some VB code that I can post if you are interested. Let me know.

I was also working on a SQL Server solution to this problem. I haven't quite gotten it worked out, but you can take a look here: thread183-1184078 to see where I was headed.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
I think part of my problem is that we have (sort of) created the shape files in Arcview, but what we have done is allocate specific buildings into geographically chunks. But, that means we don't actually have real shape files, as these are not really shape files.


*sigh*

Just call us 'Arf a job Ltd..... Very limited....

Now I need (I guess) to try and work out where the boundaries really would be. Time for at least a glass of wine I suspect! (Well, it is Friday night)

Fee

The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
 
So ... do you have the polygon ordinates ?

Do you want help in writing a programme/solution ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
We sadly don't have the boundaries of an area. We have several points within it, but that's as far as it goes.

In actual fact we have the boundaries of the postcode areas which it is contained in; and this might be either full postcode, half-sector or sector. So, we kinda have this information, except where we have donut-type gaps.

I know this is going to come back and haunt me soon, but until then I'm still trying to ponder how I calculate the postcode area donuts. If these are bordered by one area then thats quite easy - its where they are bordered by two or more areas that I get confused.

(I'm just trying not to be cross about the original comment of "We don't need to write a spec - it'll only waste time - we'll just get on and do it"... Grrrrrr)

Fee

The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
 
What software are you useing? if you are using ESRI then you have the capability built in.

In arcview click on tools and then click add xy data. after you have added the data then you can do a select by location.

if you need further instruction plese let me know i would love to help.

peace
 
Thanks detrix - I might well come back to you on that!

Fee

The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top