Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm struggling to find a way to get the line direction stored on shape file from its geometry, is there any tool can get it for me?

Also, I have two layers of map: Roads layer (of type polyline), Building layer (of type polygon)

I want to get the number of buildings located on the left, right sides of a street segment. Is there any way to do that?

share|improve this question
Welcome to gis.stackexchange @m.sai! You added a lot of tags to your question but don't mention any technology but shapefile in your question text. Could you elaborate a bit more what kind of solution you are looking for? Also it seems like you actually have two separate questions. Please post them independently. – underdark Aug 29 '11 at 11:37
pgRouting? (Probably I should do some homework...) – BWill Aug 29 '11 at 11:39
Do you want a count of the buildings on each side of a street segment, or the address numbers of each building? – user3461 Aug 29 '11 at 19:56

For ArcGIS you will need to build an Address Locator (geocoding tools)

Note: you will need clean fully attributed data to maximize your results.

Your 'Building Layer' will need to be convert to points for geocoding to work

Follow the guide on the ESRI help - there are many possible ways to do what you want.

enter image description here

for line direction XTools (Pro) can show line directions ('Show Directions')

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.