Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
stefan_mestas
Contributor
Contributor

Using a GeoJson file as a location service

Hi all,

I am trying to use a GeoJson file with our one areas  by specifying the location url service but not being successful. Message received is : 'Failed to load GeoJSON: could not get file (400)'

The GeoJson file is stored directly on the QGA server (C:\GeoJson\xx.geojson) and folder is shared (\\GEOSERVER\GeoJson\xx.geojson).

Using either options in the location service url in area layer object fails (eg.:='i:///\\GEOSERVER\GeoJson\DEU-Zip.geojson')


I am also interresting to know how and we we use tick boxes 'Load via Server' and 'Force file reload'.


thanks


Stefan

1 Solution

Accepted Solutions
Patric_Nordstrom
Employee
Employee

Hi,

The geojson file must be visible with https to the map server, folder sharing won't work.

The "Load via server" is to overcome CORS problems, the geojson is retrieved by the QGA server and then delivered to the client.

Location service is internal and can't be modified with additional geojson files.

https://bi.idevio.com/wp-content/qlik/qliksense/releases/IdevioMapsForQlikSense-5.13.0/geometry_serv...

Place the geojson on web server instead and supply the url.

Thanks,

Patric

View solution in original post

2 Replies
Patric_Nordstrom
Employee
Employee

Hi,

The geojson file must be visible with https to the map server, folder sharing won't work.

The "Load via server" is to overcome CORS problems, the geojson is retrieved by the QGA server and then delivered to the client.

Location service is internal and can't be modified with additional geojson files.

https://bi.idevio.com/wp-content/qlik/qliksense/releases/IdevioMapsForQlikSense-5.13.0/geometry_serv...

Place the geojson on web server instead and supply the url.

Thanks,

Patric

Anonymous
Not applicable

Hi Patric,

I am very new to Qlik and the GeoAnalytics tools.  I have a geojson file available through https on a github site that I'm hoping to use as GeoAnalytics - Area Layer.  This file represents Census Tracts.

I've set the Location ID to the correct attribute field in my data that I want to join to that same attribute field within my geojson polygon data.  I then paste the github URL into the Location Service within the Location tab, set the Location Service Type to GeoJSON File and set the Source Key Attribute to the same field that I used as Location ID.

However, nothing shows up and I keep getting the "Location Lookup failed" error.  Any suggestions as to what I might be missing?

Thanks,

-Andy