Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3695170
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:35:08+00:00 2026-05-19T04:35:08+00:00

I am new here and points poor so I can only offer 50 pt

  • 0

I am new here and points poor so I can only offer 50 pt bounty.

Suppose I have an application a search for all gas stations within 10 mile radius of a certain location. However one side of this location is surrounded by a mountain range that you have to drive 50 miles to get around. You would not want to return results from the other side of the mountain. What are some good algorithms/techniques to deal with such a problem? I know with point to point searches you can use path costs but I am not sure what the technique is with radius searches.

Here is an example:

alt text

The red line is a chord on the radius circle from 40,-74 to 41,-72 lat long (not accurate just saying) The user at 40,-73 performs a geographic radius search for something which also encompasses areas across the LI sound in Connecticut which are impractical to get to. The algorithm should know that there exists a chord completely intersecting the search circle and not return results that are on the other side of that chord. So only points in the green area would get returned.

This should be able to be done without any road network analysis if the programmer defines these bounding lines. For instance there may be an area in some country that is dangerous to pass through and you would want people on either side of that area to be restricted to that side. Or an international border etc. I am just asking this because I am pretty sure people are doing this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:35:08+00:00Added an answer on May 19, 2026 at 4:35 am

    Although the best solution would be to calculate distance along a road network (rather than straight line distance) using, for example, ArcGIS’s Network Analyst, a dirty hack would be to create straight lines between the center of your radius and each station, then calculate the total elevation gain along that profile (a script for doing this automatically is given here). You could then set a threshold to reject those with total elevation gains higher than a certain value (those that you need to cross mountains to reach).

    EDIT Since you seem set on not using network analysis, why not create a raster cost map in which the value corresponds to the difficulty of traversing that terrain? That could be based on other data (i.e. water bodies, elevation, landcover, etc.). Then you can either return the lowest cost station or do a select by attribute using the cost map…

    Another option would be to create a polygon vector layer showing the impassable zones (mountains, water bodies, etc.) and then create a line between your location and all stations in the radius. Using select by location you can see whether that line intersects any of the impassable polygons; if it does, unselect the station.

    The best tool for the task is still network analysis…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new here and I hope anyonte can help me. I have WCF Service
I'm new around here and i have a little problems with a C# application.
am new here. i have a slight problem; PLease look at the following code
I am new here so first of all my greetings to you I am
I'm new here to stackoverflow, so bear with me. I have a book that
I am new here. I would like to know how can I display HTML
Recently a new framework for Javascript unit testing has been released. HERE Can anyone
I'm starting a new project here (Windows Forms). What's the best option today for
fairly new iPhone developer here. Building an app to send RS232 commands to a
Quite new to maven here so let me explain first what I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.