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.

importing a geojson with relative url values detects them as dates

See original GitHub issue

this one is funny

steps to reproduce

  • go to dashboard
  • import geojson from url

expected behaviour

  • values such relative urls (i.e. //images.contentful.com/xts27qnup0jr/47Yq6W7PgAKQKGQ4cSG6oa/7c8d8296ffa3481efd93b2bb2cefc86c/stamen.png) should import as strings

actual behaviour

  • ogr2ogr tries to import it as date, despite unchecking guess types
true: Fallback: Disabling autoguessing because there are wrong dates in the source file
...
true: ogr2ogr output:          ERROR 1: COPY statement failed.
ERROR:  date/time field value out of range: "2000/00/00"
HINT:  Perhaps you need a different "datestyle" setting.
CONTEXT:  COPY importer_511ec88ce77b11e592e30ef24382571b, line 1, column logo: "2000/00/00"

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ethervoidcommented, Apr 13, 2016

The issue was fixed in ogr2ogr, this should be fixed as soon as a new ogr2ogr binary is deployed

0reactions
matallocommented, Jul 29, 2016

:_)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get JSON data from external URL and display it in a div as ...
I want to display the value of result key in a div in html (lets say the name of the div is "summary")....
Read more >
Data | Vega-Lite
Vega-Lite's data property describes the visualization's data source as ... the following specification loads data from a relative url : data/cars.json .
Read more >
<script type="importmap"> - HTML: HyperText Markup Language
An import map is a JSON object that allows developers to control how the browser resolves module specifiers when importing JavaScript modules.
Read more >
Python Tutorial: json.dump(s) & json.load(s) - 2021
dumps()" returns a string as indicated by the "s" at the end of "dumps". This process is called encoding. Let's write it to...
Read more >
Read, Write and Parse JSON using Python - GeeksforGeeks
JSON is a lightweight data format for data interchange which can be easily read and written by humans, easily parsed and generated by...
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