Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Geoinpoly Issue

    Hi,

    I am matching some Ookla mobile internet speed shapefile data (GitHub - teamookla/ookla-open-data: Speedtest by Ookla Global Fixed and Mobile Network Performance Map Tiles) to a Census Bureau Tiger county level shapefile (converted to WGS 84 so that both shapefiles use the same projection). When I use the geoframe collapse command I get the following eror message:
    Code:
    . frame tiger_2024_counties: geoframe collapse tiles_2024q4_mobile (count) n = _ID (sum) avg_d_kbps avg_u_kbps avg_lat_ms tests devices
                   _spjoin():  3499  geo_inpoly() not found
                     <istmt>:     -  function returned error
    I then checked that moremata and geoinpoly were installed correctly, and they were. I then checked geo_inpoly(), and got the following error message:
    Code:
    . mata: mata which geo_inpoly() 
     function geo_inpoly() not found
    What am I doing wrong? :-)

    Thanks

    Anthony

  • #2
    contact ben jann.

    Comment


    • #3
      Your geoplot installation seems to be corrupt; function geo_inpoly() is part of geoplot's mata library (file lgeoplot.mlib). Maybe reinstall typing

      Code:
      . ssc install geoplot, replace
      and then restart Stata and try again. If this does not help, then type

      Code:
      . findfile lgeoplot.mlib, all
      to see whether multiple copies of lgeoplot.mlib are lying around on the system. Remove any old copies, restart Stata, and try again. (Command geoinpoly is not needed.)

      Comment

      Working...
      X