View Single Post

  #1 (permalink)  
Old 12-16-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I loose a lot of street names with ObjectsFromPoint(X,Y)

Hello,

Scanning all the points in a map ( X and Y ) and using ObjectsFromPoint(X, Y) , some streets are not detected.

I zoom enough to see the streets , but some are lost while looping.

Is there a method to have more details about the street name in a map?

Thanks
Delphine


My code looks like this :

Code:
x, y are points in the screen 
fr, obj , objmap are objects 


For x = min_X to max_X
    
    For y = min_Y to max_Y 

     	fr = ObjMap>>ObjectsFromPoint(X, Y)
			
		if  fr <> nothing then
			
  	               nbObjFr = fr>>count
				
				NumObj=0
				for  NumObj = 1 to nbObjFr            
                                         obj = fr>>item(NumObj)
					 NomObjet = obj>>name

                                         // Here I see if  it's a street

                               next NumObj

              end if // fr
    next y

next x
[/code]
Reply With Quote