Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Feb 14, 2023 5:14:30 AM
Dec 1, 2018 3:41:51 AM
In GeoAnalytics, the Map object is based on OpenStreetMap data (see OpenStreetMap copyright). Thus, when using "Map Object", due to name spelling miss-matches, different naming etc..., you may encounter an unexpected behavior when viewing cities, countries etc..
// remove the code (CCode) and replace by correct name of country
// When using map, the name of country (as found in http://www.geonames.org/) //will be used instead of Ccode
mapCode:
mapping LOAD * Inline [
CCode, Country
Swe, Sweden
Dk, Denmark
No, Norway
] ;
// mapping CCode to country
// If the country code is not in the mapping table, other country
Salespersons:
LOAD *,
ApplyMap('mapCode', CCode,'other country') As Country
Inline [
CCode, Salesperson
Swe, John
Swe, Mary
Swe, Per
Dk, Preben
Dk, Olle
No, Ole
Sf, Risttu] ;
// AS we don't need the CCode anymore
Drop Field 'CCode';