question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GeoJSON is not properly formatted

See original GitHub issue

GeoJSON returned by the server is invalid and does not pass lint tests on /france/v1/polygon when specifying a geojson serializer.

Line 7: the first and last positions in a LinearRing of coordinates must be the same Line 75: the first and last positions in a LinearRing of coordinates must be the same Line 359: the first and last positions in a LinearRing of coordinates must be the same Line 659: the first and last positions in a LinearRing of coordinates must be the same Line 1123: the first and last positions in a LinearRing of coordinates must be the same Line 1351: the first and last positions in a LinearRing of coordinates must be the same Line 1395: the first and last positions in a LinearRing of coordinates must be the same Line 6703: the first and last positions in a LinearRing of coordinates must be the same […]

Relevant spec from http://geojson.org/geojson-spec.html#polygon:

A LinearRing is closed LineString with 4 or more positions. The first and last positions are equivalent (they represent equivalent points). Though a LinearRing is not explicitly represented as a GeoJSON geometry type, it is referred to in the Polygon geometry type definition.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gerbsencommented, Jul 14, 2016

@kofronpi we just release an improved version of the geojson feature. could you test it again?

1reaction
gerbsencommented, Jun 14, 2016

Okay, this is very strange. We are performing this repair operation also on our servers. We will look into this error. Thanks for bringing it up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON text is not properly formatted. Unexpected character 'N ...
I am new to JSON in SQL. I am getting the error "JSON text is not properly formatted. Unexpected character 'N' is found...
Read more >
geojson file not interpreted properly (wrong format?)
I typed in the json file myself, converted it into geojson with a python script, and confirmed with geojsonlint that the data are...
Read more >
Strange behavior on JSON_VALUE when table contains blank ...
Strange behavior on JSON_VALUE when table contains blank and non-blank values (JSON text is not properly formatted. Unexpected character '.
Read more >
JSON text is not properly formatted - Database Tutorials
JSON text is not properly formatted. Unexpected character is found at position. Be sure that the JSON data is correct.
Read more >
Strange Behavior on JSON_VALUE When Table Contains ...
JSON text is not properly formatted. Unexpected character '.' is found at position 0. Initially, we thought that we have typed the attribute ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found