Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
odedko
Contributor III
Contributor III

Trouble adding a line layer as Line Geometry

I am trying to add a line layer to a map. The field contains the geometry of a line. for example:

32.0846927248728 34.8422426767858 32.0846234471889 34.8410483558969 32.0846234471889 34.8410483558969 32.084589640345 34.8406901690348 32.0845651112432 34.8404302808525 32.084499814801 34.8402434289354 32.084499814801 34.8402434289354 32.0844614401387 34.8401595155448 32.0844614401387 34.8401595155448 32.0842433010841 34.8402652218818 32.0841806591816 34.8403019879252

The line layer's location property is defined as 'Line Geomtry'.

I am getting an error: The data contains invalid geometries that could not be shown on map...

What is the correct format for the content of the geometry field?

Thanks

Oded

Labels (2)
1 Solution

Accepted Solutions
Patric_Nordstrom
Employee
Employee

Qlik Sense follows GeoJSON specifications for geospatial data and supports the following: Point, Linestring, Polygon, Multipolygon. For more information on GeoJSON specifications, see: GeoJSON.org

https://help.qlik.com/en-US/sense/latest/Subsystems/Hub/Content/Sense_Hub/Scripting/GeospatialFuncti...

The geometry could be a WKT of some kind, use GeoAnalytics connector or GeoOperations to load it.

A line string should be a array or coordinate arrays, for example:

[[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]]

Thanks,

Patric

View solution in original post

2 Replies
Patric_Nordstrom
Employee
Employee

Qlik Sense follows GeoJSON specifications for geospatial data and supports the following: Point, Linestring, Polygon, Multipolygon. For more information on GeoJSON specifications, see: GeoJSON.org

https://help.qlik.com/en-US/sense/latest/Subsystems/Hub/Content/Sense_Hub/Scripting/GeospatialFuncti...

The geometry could be a WKT of some kind, use GeoAnalytics connector or GeoOperations to load it.

A line string should be a array or coordinate arrays, for example:

[[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]]

Thanks,

Patric

odedko
Contributor III
Contributor III
Author

Thanks Patric!

Oded