[gdal-dev] CSV to GeoRSS: problem with pubDate field

aborruso aborruso at gmail.com
Mon Jul 31 10:37:41 PDT 2017


Hi,
I'm using GDAL 2.3.0dev to convert a CSV to GeoRSS, but I'm not able to set
properly pubDate field.

My test input CSV is (tab separated):

title	description	guid	link	pubDate
titolo	des	http://www.tin.it/1	http://www.tin.it/1	Wed, 11 Jul 2007 15:39:21
GMT

I run:

ogr2ogr  -f GeoRSS  georss.xml source.csv source

And I have "ERROR 1: Wrong field type for pubDate" error and this XML
output:

<?xml version="1.0"?>
<rss version="2.0" xmlns:georss="http://www.georss.org/georss">
  <channel>
    <title>title</title>
    <description>channel_description</description>
    <link>channel_link</link>
    <item>
      <title>titolo</title>
      <description>des</description>
      <guid>http://www.tin.it/1</guid>
      <link>http://www.tin.it/1</link>
    </item>
  </channel>
</rss>

It's almost perfect, but without pubDate. How to set it in my source CSV?

Thank you,

Andrea





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CSV-to-GeoRSS-problem-with-pubDate-field-tp5329925.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list