Maps on the Mac

Comments

16 comments

  • Avatar
    anon23740792

    Hi @marisa,

    Thank you for your feedback! What kind of data format is your shapes/boundaries data file in?

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Hello - it’s a .shp file (in a folder with the corresponding files). What I’d love to do is have that as a background shape file and then change the colour of the polygons according to a dimension (and have points on display too). Is this possible in the mac trial?

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi @marisa,

    I think Mac Version hasn't any back-end rendering enabled right now, but, if present, the old version of Choroplet could be handy in this scenario.

    So try to add a New Chart, you should see the Choropleth icon:

    image|690x174

    To use your own Maps you should convert the ShapeFole as a GeoJson; you can use Online services like mapshaper.org or locally installed tools like ogr2ogr . As an example, I downloaded US counties from US Census Bureau [https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_county_5m.zip], then converted as a GeoJson and placed the file into the path /[omnisci_install_dir]/frontend/geojson/, then iI had to add the newloy geojson file in the geojson.config file (the highlighted part is what I added to the file)

    image|690x495

    The I restarted the web server to make the software re-read the configurations; whe you add a Choropleth file you will see the Map you added to Immerse

    image|572x500

    Now, assuming there is a columns with the same data, you are able to "join" any datasource with the newly added GeoJson, but the join and the render itself will be client side, so better limit the number and the complexity of polygons on viz.

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Hi, thank you so much for taking the time to reply. The Mac version does have a choroplet option. I converted the file 👍🏻

    I failed though when it came finding the geojason.config file 😳. I searched all directories but only found reference to geojason in log files - any pointers/suggestions?

    Marisa

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi @marisa,

    the geoconfig.json should be located in the same position of linux installation; on Mac on a folder like that

    ./OmniSci.app/Contents/Resources/app/omnisci/frontend/geojson/geoconfig.json

    Anyway I guess you can find the file using the find command from a command prompt

    find / -name geoconfig.json

    Assuming you have the right permissions, you should get the exact position.

    p.s. I'm sorry but I pointed you to a bad file name; the right one is geoconfig.json

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Thanks - I’ve tried again and am pretty sure it doesn’t exist. There’s no frontend subdirectory and a file search just brings up the log files I mentioned before. Not sure if you can see this screenshot:

    Screenshot 2020-09-22 at 07.37.25.jpg|446x620

    Do you just think the set up is different?

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi @marisa,

    Unluckily I haven't access to a Mac, so everything is based on my experience with build for other OS.

    The frontend directory contains Javascript and extras for immerse and would be raferenced in the omnisci.conf file in webserver section.

    Have you tried to find the geoconfig.json file?

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    I have searched high and low 😞

    0
    Comment actions Permalink
  • Avatar
    Jonathan Rajavuori

    @marisa Try looking inside that omnisci folder (In full, OmniSci.app/Contents/Resources/app/omnisci/) - the frontend/ folder should be found there.

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Well damn me for trusting the file search and kudos to you @jonathon for pushing me!!!!! There she is: Screenshot 2020-09-25 at 21.54.46.png|306x365

    I shall keep you posted ☺️😂

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Some progress…

    I amended the geoconfig file, I can see the file as a geojson option in OmniSci. I tried to use it in a dashboard but it said that lat long should be in the range -90 to +90. When I looked at the shape file I’ve imported the co-ordinates seem to be easting/northing instead 😒

    ({"type":"FeatureCollection", "features": [ {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[448906.5043,536702.9937],[448290.1026,536324.797900001],[447097.001,537152.0011],[444954.1014,536166.403200001],[444343.9009,533776.397399999],[442342.7999,533059.9024],[443235.8966,532101.796700001],[442166.2978,529897.997500001],[442606.6006,528546.904300001],[440052.7012,527819.702400001],[443024.0975,526445.3958],[443410.7002,527859.900900001],[444216.0035,528004.8994],[445536.4995,526103.003799999],[447394.6972,525735.8989],[449549.7995,526238.595000001],[450939.1006,525459.198100001],[452240.5198,526366.4497],[452476.2026,526699.203199999],[453469.5758,526793.6261],[453743.7983,528039.7994],[454449.4023,528445.203400001],[453547.6953,529130.2772],[453397.1017,529197.8979],[453351.987,529278.967],[452712.3988,529764.8956],[451728.2024,532059.198899999],[451942.0513,532478.1187],[452018.9974,533154.6953],[452301.9336,533183.111],[452468.6006,533509.603700001],[451894.2002,534021.0973],[453341.9412,533301.4835],[453338.1726,533339.6426],[453121.8325,534029.1088],[451124.903,535273.0989],[450748.7755,535552.739],[448926.0029,536676.597200001],[448906.5043,536702.9937]]]},"properties":{"OBJECTID":1,"LAD17CD":"E06000001","LAD17NM":"Hartlepool","LAD17NMW":"","BNG_E":447157,"BNG_N":531476,"LONG":-1.27023,"LAT":54.67616,"Shape__Are":96610446.1146851,"Shape__Len":50252.108582242}},)

    Any suggestions? Find a file with lat/lng coordinates instead or is there a command that can render these?

    So near yet so far 😂

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    hi @marisa,

    there isn't any internal command or parameter to draw maps with such coordinates (mercator?)

    You should convert your coordinates from mercator into wsg84

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    Thanks - I shall give it a go ;-)

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi @marisa,

    you can convert your maps in shape format using mapshaper (there is an online version at www.mapshaper.org)

    you have to load the file you are going to covert (from shape to geojson)

    immagine|690x275

    import it and open the console; into the console type -proj wgs84

    immagine|690x259

    then export the file and place into your notebook.

    Now you should be able to use the converted polygons into Immerse Choropleth objects.

    Regards

    0
    Comment actions Permalink
  • Avatar
    Marisa Murton

    You absolute star!!!!! Thank you so much 😊 A few adjustments for me to make but now I know I can I’m away!!!!

    Screenshot 2020-09-29 at 12.57.19.jpg|694x580

    Marisa Murton marisa@solvlab-analytics.co.uk Mobile: 07786 867462

    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi @marisa,

    I'm happy we made you happy ;) n this aspect Maps are always a nice thing to work with, and I hope we will be able to improve this aspect, also for users that are locked into CPU build.

    Regards

    0
    Comment actions Permalink

Please sign in to leave a comment.