0

Adding a custom map

Hi i've converted a Mapinfo TAB file to Geojson format using an online service and uploaded the .geojson file to Pyramid, I can pick that custom map as a property for the relevant dimension in a discovery but when I try to map it I get the error "Some locations could not be successfully mapped"

I can view the element names, but the map is not drawing.

So I suspected the conversion from MapInfo may be an issue and downloaded a premade geojson from Wards (December 2017) Full Extent Boundaries in UK (WGS84) - data.gov.uk 

But when I try to add this as a custom map I get the error "Custom map upload failure"

So i'm not sure if there is a problem with my conversion, or the large UK GOV file, or maybe something to do with Pyramid requesting .json files as opposed to .geojson files in the Custom map upload window?

Tips please? thanks!

8 replies

null
    • Senior Director of Product
    • Ian_Macdonald
    • 2 yrs ago
    • Reported - view

    Hi Adam,

    The error around "Some locations could not be successfully mapped" refers to the fact that the data value in your data cannot be found in the reference column of your custom map table that you uploaded. It may refer to some or all values. It will usually list those it cannot find in the error message. Check that you are mapping the columns correctly and that the values match. Watch out for leading / trailing spaces in your data, I had that problem when working with German Zip codes in my user data. 

    With regard to the geojson file you reference, I tried to load that and also get an error. In the logs it says:

    "Error uploading file Caused by: Processing of multipart/form-data request failed. Early EOF"

    So it looks like there is a problem with that file. I have had all sorts of problems with map data from the data.gov.uk source...

    Otherwise, you're doing nothing wrong, just that there are data problems in your map data.

    Hope that helps.

    Ian

    • Adam_Taylor
    • 2 yrs ago
    • Reported - view

    Thanks Ian, yes i had that feeling too about data.gov it looks a bit like it is too automated for its own good. I'll go check the strings thanks!

    • Adam_Taylor
    • 2 yrs ago
    • Reported - view

    Hi again, ok so we've got a better system for converting from Mapinfo to geojson now, so im using our own map layer and can control the element names. Still not able to get a map to display though, can i check please: Does the Column lookup field name in Admin / Geospatial / Custom Maps / Column lookup have to match exactly with the dimension name im wanting to map? or is it enough for the element names to match? Secondly: if it finds one or more non-matches between the dimension element names and the element names in the geojson, will it still map / display the ones it can match? or will the map be empty?  Trying to narrow it down!  thanks 

    • Rob_Cowell
    • 2 yrs ago
    • Reported - view

    Hi Adam

    If you are converting from MapInfo check the coordinate system that is being used. Pyramid expects WGS84. You will be able to load a non-WGS84 files but it won't display as a map. When you convert to GeoJson most tools will let you convert the coordinate system if needed. I often find UK maps use EPSG27700 which will not work in Pyramid. If there is no CRS specified at the top of the file Pyramid wil assume WGS84. A simple check is also to confirm the lat long values are in the range -180 to + 180.

    The column lookup field name in your data does not need to match the column name you specify when you upload your geojson file, just the member values. It does not matter if everything does not match. You should display member names that do match.

    • Adam_Taylor
    • 2 yrs ago
    • Reported - view

    Aha thanks Rob yes i just zoomed right out to see if there was a problem with projection, nothing showing though now i know why :) I'll check that next thanks

    • Rob_Cowell
    • 2 yrs ago
    • Reported - view

    As an aside, the UK boundary data you have from data.gov.uk is huge. I would suggest you don't need anything like the resolution it is built in, and the size is probably causing you issues. I just simplified it (I use mapshaper.org) down to 0.14% of original size. I uploaded to Pyramid and can display a few ward names I entered in the map.

    • Adam_Taylor
    • 2 yrs ago
    • Reported - view

    Thanks, yes that was just a test, no need to use it, 

    • Adam_Taylor
    • 2 yrs ago
    • Reported - view

    Success!! that was the issue Rob thanks.

Content aside

  • Status Answered
  • 2 yrs agoLast active
  • 8Replies
  • 57Views
  • 3 Following