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 6 of 6

diffrent Color for the intersection of 2 drive time zones

This is a discussion on diffrent Color for the intersection of 2 drive time zones within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi everybody, I have 2 drive time zones A and B with a common area C. A is blue B ...

  1. #1
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97

    diffrent Color for the intersection of 2 drive time zones

    Hi everybody,

    I have 2 drive time zones A and B with a common area C.
    A is blue
    B is yellow

    If B comes after A, the color of the intersection C between A and B is yellow.

    If A comes after B, the color of the intersection C between A and B is blue.

    I want the color of C to be different , Red for instance.

    Is there a solution with Mappoint?

    I can do that with other GIS.

    Thanks in advance.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Hi Mohamed,

    This is not so easy with MapPoint but possible with programming. One way you might approach it is to export the polygons to another GIS, do your cookie cutter stuff and prepare three polygons, and then re-import them into MapPoint using the Spatial Data Importer.

    They can be exported using something like Walt Cygan's mif/mid exporter --
    http://www.mp2kmag.com/importersub01.asp

    hope this helps.
    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97
    Thanks Eric,

    I do my drive time zones by programmation in Mappoint. But I don't know how to fill the intersection with another color. I am using other GIS like GeoConcept, Map&Guide, MapInfo for some complementary tasks. But I want my Mappoint Application to be independant V/s other GIS.

    Thanks again for the help.

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I think you'd have to figure out how to do the polygon operations in your own code, math stuff. Perhaps there's a lightweight library or control you can take advantage of... ?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    I don't know of any libraries - there could well be some, and they would make it easier.

    The individual components in geometry calculations like this aren't too complicated, but there are often various special cases that will trip you up - eg. coincident points and lines.

    For this one, you will need a "point in polygon" algorithm. For a past employer, I coded one from Sedgwick's "Algorithms".
    This projected a line from the point to infinity, and counted the intersections with polygon edges. Odd = Inside the polygon; Even = Outside.
    Your projected line should be horizontal or vertical to simplify the maths.


    You will also need to check for intersections between two lines. I think I found something in the Graphics Gems series in the past. I can't remember the details now but it might have involved a vector product of somekind.

    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  6. #6
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97
    Hi,

    The solution I've found now is to color directly by programming the GIF
    generated by HTML saving. I hope I will find a best solution in the future.
    The intersection between two drive time zones is very important for
    a lot of marketing subjects. For instance this area is a " cannibalization area"
    for two stores. The costumors found in that area are very coveted by the two stores.

    Thanks for your suggestions anyway.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. INSTEAD OF DRIVETIME ZONE -- DRIVE MILES ZONES??
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-10-2004, 06:29 AM
  2. How do I hide a drive time box
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-14-2004, 01:29 PM
  3. hiding drive time box
    By chaching in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2004, 03:45 PM
  4. Drive Time Zones
    By EdB in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-24-2002, 07:09 PM
  5. Drive Time Isozones
    By Michael.Simon in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-22-2002, 11:16 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