MapInfo Pro

 View Only
  • 1.  "Error creating grid file during interpolation process"

    Posted 05-13-2022 12:44

    Hi

    Trying to create a grid thematic map (MapInfo basic version only, so a normal thematic, of type "grid"), and we get this error:

    "Error creating grid file during interpolation process"

    The MapInfo Tab file reads from an underlying excel file, but I don't think that should matter for standard thematics? Maybe something to do with Grid Handlers?

    Anyone seen this before and able to suggest a solution? Friday night so thought I'd post here instead of Customer Support.

    Many thanks in advance

    Caroline Hilton



    ------------------------------
    Caroline Hilton
    Pelican GeoGraphics Ltd (VAR)
    Petersfield
    ------------------------------



  • 2.  RE: "Error creating grid file during interpolation process"

    Employee
    Posted 05-16-2022 03:30
    Hi

    I suppose you did try to save your Excel file into a native tab file?
    Would the Heat Map options work for this type of grid you are creating? They are part of the standard version of MapInfo Pro (ie. they do not not require Advanced)

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



  • 3.  RE: "Error creating grid file during interpolation process"

    Posted 05-16-2022 07:15
    Edited by Caroline Hilton 05-16-2022 09:11

    Thanks Peter.

    I tried opening as a native MapInfo table rather than an Excel-linked table, and it worked, although behaved very strangely, and opened the thematic map in a new window and made a copy of the original point file in the original window. It was then quite difficult to get the thematic layer into the original window. Very odd behaviour.

    Also, I created my own colours (grey through to orange) in the grid thematics, saved them as a template, and used them to create a thematic grid, but the resulting grid was the same blue to red as the default grid. No idea what's going on! 

    With MapInfo Advanced shut down, I don't see the Heat Maps option in Pro.

    Thanks
    Caroline



    ------------------------------
    Caroline Hilton
    Pelican GeoGraphics Ltd (VAR)
    Petersfield
    ------------------------------



  • 4.  RE: "Error creating grid file during interpolation process"

    Employee
    Posted 05-16-2022 08:47
    Edited by Peter Møller 05-17-2022 01:42
    I just cobbled together a simple MB script that opens an Excel based table of points (USA_Caps) and does an IDW grid theme on it using a population column.  Is there anything really different in your MB code than this?

    Include "MapBasic.def"
    Declare Sub Main

    Sub Main
    onerror goto ErrorTrap
    close all
    Open Table ApplicationDirectory$() & "USA_CAPS.Tab" Interactive
    Map from USA_CAPS

    create grid from USA_CAPS with Pop_1990 into ApplicationDirectory$() & "USA_CAPS_Pop_1990.mig" type "mig.ghl" CoordSys Earth Projection 1, 62 inflect 5 by percent at RGB(0, 0, 255) : 0 RGB(0, 255, 255) : 25 RGB(0, 255, 0) : 50 RGB(255, 255, 0) : 75 RGB(255, 0, 0) : 100 round 1000 # use 2 # cell min 200 interpolate with "IDW" version "100" using 4 "EXPONENT": "2" "MAX POINTS": "25" "MIN POINTS": "1" "SEARCH RADIUS": "100"
    Open Table ApplicationDirectory$() & "USA_CAPS_Pop_1990.TAB" Interactive
    add map window FrontWindow() auto layer USA_CAPS_Pop_1990
    set map window FrontWindow() layer prev contrast 50 brightness 50 alpha 255 grayscale off relief off
    set legend window FrontWindow() layer prev display on shades on symbols off lines off count off title auto Font ("Arial",0,9,0) subtitle auto Font ("Arial",0,8,0) ascending off ranges Font ("Arial",0,8,0) auto display on ,auto display on ,auto display on ,auto display on ,auto display on
    Create Designer Legend From Window FrontWindow() Behind Default Frame Style "#" Font ("Arial",0,8,0) Frame From Layer 2

    Exit sub
    ErrorTrap:
    Note "Main: " & Err() & ": " & Error$()
    resume next
    end sub

    Regards,
    -Bill

    ------------------------------
    Bill Wemple
    Principal Software Engineer, Quality Management
    Precisely, Inc
    precisely.com
    ------------------------------



  • 5.  RE: "Error creating grid file during interpolation process"

    Employee
    Posted 05-17-2022 01:46
    Keep MapInfo Raster running.
    On the Map tab you will see the Raster Grid options that are available to every MapInfo Pro user.

    You are interested in the Heatmap option.


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



  • 6.  RE: "Error creating grid file during interpolation process"

    Posted 05-20-2022 05:15
    Hi

    I tried again, reading a new version of the xlsx file as the data file (not a native MapInfo table). I got this error:

    I tried the heatmap option instead of standard thematics, and get this

    So I tried importing the xlsx table as a native MapInfo table, and this time I CAN create a heatmap, but still get the same error about it not being a "grid" layer when I try to use the grid thematic map option, followed by this error:


    Shall I send it all to you, Peter?

    ------------------------------
    Caroline Hilton
    Pelican GeoGraphics Ltd (VAR)
    Petersfield
    ------------------------------



  • 7.  RE: "Error creating grid file during interpolation process"

    Employee
    Posted 05-20-2022 08:45
    Yes, please, Caroline.

    One final thing: Is the MapInfo table a Native or a NativeX table?
    I wonder if that old grid thematic supports the new extended tab file.

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