MapInfo Pro

 View Only
  • 1.  Line inside style

    Posted 28 days ago
    Hello community,
    I am trying to replicate something similar to this image. Example of map with line format inset inside shape
    I want to be able to highlight certain areas from the rest, preferably with another thicker and transparent line but it must be inside that area's line.
    The best I can do is with one of the line styles which includes marks inside the outline. But this is a nicer look.
    Thanks for any help I can get. 


    ------------------------------
    Paula M
    ------------------------------


  • 2.  RE: Line inside style

    Posted 28 days ago

    Hi Paula,

    For each area/region, can you buffer your line to create a polygon, then erase half of your buffer polygon (the half that is outside the region)?  You could then apply a style to the polygon.  How would that look?

    To erase half of the buffer, you could probably split the buffer with your line, then erase.  Or if your lines are the boundary of polygons, use the polygon to "erase outside".



    ------------------------------
    James Nolet
    GIS Manager
    CAF Consulting
    Melbourne office, VIC, AustraliaJames Nolet
    GIS Manager
    CAF Consulting
    Melbourne office, VIC, Australia
    ------------------------------



  • 3.  RE: Line inside style

    Posted 9 days ago

    Hi James, Thanks for your reply. I will try your method. Cheers.



    ------------------------------
    Paula Morrissey
    Senior Data and Spatial Analyst
    Department of Health (VIC)
    Melbourne VIC
    ------------------------------



  • 4.  RE: Line inside style

    Employee
    Posted 28 days ago

    Hey Paula

    I second James's approach.

    Don't look for a line style but create a region that lies within your polygons and style this region using the region styles instead.

    Now, the cool thing is that since MapInfo Pro v2019, you have been ale to create derived spatial objects in queries and use these objects instead of the original objects.

    SQL to the rescue, so to speak.

    To create your border area, you need ot create a negative buffer on your polygons. That will return a polygon smaller than the original. You use this negative buffer as a cutter object using the Erase() function to cut out a hole in the original polygon so that you end up with a border polygon.

    And, the good thing is that you go do this with a Select statement:

    Select t.*, Erase(t.Obj, Buffer(t.obj, 72, -500, "m")) Object 
    From Postal_Sectors As "t" 
    Into qBorder NoSelect

    To use this on your data, I would sugget opening the SQL window and pasting the query from above. Now change the name of the table. Ad change the query to be added to your map and not shown in a browser. That's it. 

    image
    Push the Run button to execute the query.
    image
    Finally, you can style the resulting query in the way you'd like to using a layer style override or using a thematic. You can of course also save the result as a native table and change the styles on the objects individually.
    Below, I have use a layer style to make all the objects orange, no line style, and make the layer 50% translucent.
    image
    I hope this helps


    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 5.  RE: Line inside style

    Posted 9 days ago

    Hi Peter, I'm so sorry. I haven't been getting any notifications from this thread, so I didn't know anyone had replied. I will take a look. What I can see, it looks nice.



    ------------------------------
    Paula Morrissey
    Senior Data and Spatial Analyst
    Department of Health (VIC)
    Melbourne VIC
    ------------------------------