Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

I loose a lot of street names with ObjectsFromPoint(X,Y)

This is a discussion on I loose a lot of street names with ObjectsFromPoint(X,Y) within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, Scanning all the points in a map ( X and Y ) and using ObjectsFromPoint(X, Y) , some streets ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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&#40;NumObj&#41;
    					 NomObjet = obj>>name
    
                                             // Here I see if  it's a street
    
                                   next NumObj
    
                  end if // fr
        next y
    
    next x
    [/code]

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    This looks like something I recently needed, finding street name from a given lat/long location. But I do not understeand your question (English is not my native language). Can you rephrase it please ?

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi Wilfried,

    Sorry, English is not my native language also. I am french and I work in Morrocco.

    What I am looking for is a fast way to find all the streets of a map.
    What I tried to do is to loop with all the couples of points in the screen
    ( X , Y ) and use Objectsfrompoint method.

    I am looking at an article of Gilles KHOL posted is this forum.
    ( Reverse Geocoding , Another Method )

    I think, it's a good way to find the solution.
    If you find something thanks in advance for your help.

    Thanks for your message

    Delphine

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Street Names etc...
    By Milo in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-27-2005, 03:16 PM
  2. Retrieve street names within shape
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-19-2003, 05:52 AM
  3. Adding/Changing Street names
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 06-13-2003, 09:55 PM
  4. street names
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-04-2003, 07:49 AM
  5. How can I get all the street names in a city?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-04-2002, 08:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96