<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: OGR GeoJSON Driver</title>
	<atom:link href="http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/feed/" rel="self" type="application/rss+xml" />
	<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/</link>
	<description>mloskot&#039;s life, programming, c++, geo and adventures</description>
	<lastBuildDate>Tue, 24 Jan 2012 22:38:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2347</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Mon, 13 Apr 2009 22:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2347</guid>
		<description>mjollnir,

I agree that past-and-copy is not memory efficient. I believe it could be changed to reuse the buffer if ownership is transfered and if it&#039;s well-documented.
Feel free to discuss it on the gdal-dev list or just submit ticket with patch.</description>
		<content:encoded><![CDATA[<p>mjollnir,</p>
<p>I agree that past-and-copy is not memory efficient. I believe it could be changed to reuse the buffer if ownership is transfered and if it&#8217;s well-documented.<br />
Feel free to discuss it on the gdal-dev list or just submit ticket with patch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjollnir</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2346</link>
		<dc:creator>mjollnir</dc:creator>
		<pubDate>Mon, 13 Apr 2009 18:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2346</guid>
		<description>Great, I use :
char *poJsonBuf = ...
OGRDataSource *srcDS = OGRSFDriverRegistrar::Open(poJsonBuf);

It works now. Althought it&#039;s a little memory waste since it duplicate the data in memory, compare with great virtual file. But it works now, thanks anyway.</description>
		<content:encoded><![CDATA[<p>Great, I use :<br />
char *poJsonBuf = &#8230;<br />
OGRDataSource *srcDS = OGRSFDriverRegistrar::Open(poJsonBuf);</p>
<p>It works now. Althought it&#8217;s a little memory waste since it duplicate the data in memory, compare with great virtual file. But it works now, thanks anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2345</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Mon, 13 Apr 2009 09:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2345</guid>
		<description>Hi  mjollnir,

Unfortunately, I don&#039;t have time to do it.

Have you read the &lt;a href=&quot;http://www.gdal.org/ogr/drv_geojson.html&quot; rel=&quot;nofollow&quot;&gt;GeoJSON driver&lt;/a&gt; manual? Are you aware you can pass GeoJSON text directly to the driver, without a GeoJSON file stored on disk?

As the manual says: &lt;em&gt;The OGR GeoJSON driver accepts three types of sources of data&lt;/em&gt; and see the 3rd one.

It means that you can pass GeoJSON text directly to &lt;a href=&quot;http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/geojson/ogrgeojsondatasource.cpp?rev=14961#L71&quot; rel=&quot;nofollow&quot;&gt;OGRGeoJSONDataSource::Open&lt;/a&gt; referenced in &lt;code&gt;const char* pszName&lt;/code&gt;. Also, see lines 96 - 99 of this file. It should work.</description>
		<content:encoded><![CDATA[<p>Hi  mjollnir,</p>
<p>Unfortunately, I don&#8217;t have time to do it.</p>
<p>Have you read the <a href="http://www.gdal.org/ogr/drv_geojson.html" rel="nofollow">GeoJSON driver</a> manual? Are you aware you can pass GeoJSON text directly to the driver, without a GeoJSON file stored on disk?</p>
<p>As the manual says: <em>The OGR GeoJSON driver accepts three types of sources of data</em> and see the 3rd one.</p>
<p>It means that you can pass GeoJSON text directly to <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/geojson/ogrgeojsondatasource.cpp?rev=14961#L71" rel="nofollow">OGRGeoJSONDataSource::Open</a> referenced in <code>const char* pszName</code>. Also, see lines 96 &#8211; 99 of this file. It should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjollnir</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2344</link>
		<dc:creator>mjollnir</dc:creator>
		<pubDate>Mon, 13 Apr 2009 06:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2344</guid>
		<description>hi, mloskot

can you be kindly to add virtual files support for ogr GeoJSON  driver, acutally, it&#039;s very useful to handle GeoJSON without disc operation. sometime we just create GeoJSON in memory, no file needed.

http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e</description>
		<content:encoded><![CDATA[<p>hi, mloskot</p>
<p>can you be kindly to add virtual files support for ogr GeoJSON  driver, acutally, it&#8217;s very useful to handle GeoJSON without disc operation. sometime we just create GeoJSON in memory, no file needed.</p>
<p><a href="http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e" rel="nofollow">http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Van Linden</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2312</link>
		<dc:creator>Luc Van Linden</dc:creator>
		<pubDate>Fri, 05 Dec 2008 12:27:59 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2312</guid>
		<description>Mateusz

I am currently trying to figure out if this already is usable wth FDO OGR provider without muc succses. Can you please explain if and so how this should be defined in a connection string for the fdo provider?

tx

Luc</description>
		<content:encoded><![CDATA[<p>Mateusz</p>
<p>I am currently trying to figure out if this already is usable wth FDO OGR provider without muc succses. Can you please explain if and so how this should be defined in a connection string for the fdo provider?</p>
<p>tx</p>
<p>Luc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2256</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Fri, 30 May 2008 11:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2256</guid>
		<description>Markus,

I&#039;ve replied by e-mail already but will repeate it here to keep the story archived for others too. The problem is that opengeocoding.org does not output valid GeoJSON document but a custom JSON structure. So, OGR GeoJSON driver is useless.</description>
		<content:encoded><![CDATA[<p>Markus,</p>
<p>I&#8217;ve replied by e-mail already but will repeate it here to keep the story archived for others too. The problem is that opengeocoding.org does not output valid GeoJSON document but a custom JSON structure. So, OGR GeoJSON driver is useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: markusN</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2255</link>
		<dc:creator>markusN</dc:creator>
		<pubDate>Thu, 29 May 2008 08:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2255</guid>
		<description>Hi Mateusz,

I tried it with http://www.opengeocoding.org but didn&#039;t succeed (my bad I guess):
&lt;pre&gt;
ogrinfo -ro &quot;http://www.opengeocoding.org/geocoding/geoservice.php?country=italy&amp;province=tn&amp;city=Trento&amp;district=&amp;streetnames=via rosmini 10&amp;postcode=38100&amp;output=json&quot; OGRGeoJSON
ERROR 1: GeoJSON parsing error: unexpected character (at offset 0)
&lt;/pre&gt;
Is there a trick to get this working?

thanks
Markus</description>
		<content:encoded><![CDATA[<p>Hi Mateusz,</p>
<p>I tried it with <a href="http://www.opengeocoding.org" rel="nofollow">http://www.opengeocoding.org</a> but didn&#8217;t succeed (my bad I guess):</p>
<pre>
ogrinfo -ro "http://www.opengeocoding.org/geocoding/geoservice.php?country=italy&amp;province=tn&amp;city=Trento&amp;district=&amp;streetnames=via rosmini 10&amp;postcode=38100&amp;output=json" OGRGeoJSON
ERROR 1: GeoJSON parsing error: unexpected character (at offset 0)
</pre>
<p>Is there a trick to get this working?</p>
<p>thanks<br />
Markus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2210</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Wed, 07 Nov 2007 12:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2210</guid>
		<description>@Andrea Aime

I fixed (Ticket &lt;a href=&quot;http://trac.osgeo.org/gdal/ticket/1968#comment:5&quot; rel=&quot;nofollow&quot;&gt;#1968&lt;/a&gt;) the parser and now I can access GeoServer using the URL you gave above with success. Certainly, we still don&#039;t have the Multi* geometries supported, but I can read this data into OGR objects as a collection of features with NULL geometries assigned.</description>
		<content:encoded><![CDATA[<p>@Andrea Aime</p>
<p>I fixed (Ticket <a href="http://trac.osgeo.org/gdal/ticket/1968#comment:5" rel="nofollow">#1968</a>) the parser and now I can access GeoServer using the URL you gave above with success. Certainly, we still don&#8217;t have the Multi* geometries supported, but I can read this data into OGR objects as a collection of features with NULL geometries assigned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2209</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Wed, 07 Nov 2007 11:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2209</guid>
		<description>@Andrea Aime
I forgot to share one observation related to the GeoServer tests.
Using your URL (the big one), I can access topp:states in GeoJSON format, but the OGR driver fails when trying to parse it. Features in this collection have property called PERSONS with float number as value and for first Feature &quot;id&quot;:&quot;states.1&quot; its value is in &lt;em&gt;E notation&lt;/em&gt;:
&lt;pre&gt;
&quot;PERSONS&quot;:1.1430602E7
&lt;/pre&gt;

This is perfectly valid according to the JSON and RFC4627 (2.4.  Numbers) but the OGR GeoJSON driver fails with parsing error.

I will try to fix it.</description>
		<content:encoded><![CDATA[<p>@Andrea Aime<br />
I forgot to share one observation related to the GeoServer tests.<br />
Using your URL (the big one), I can access topp:states in GeoJSON format, but the OGR driver fails when trying to parse it. Features in this collection have property called PERSONS with float number as value and for first Feature &#8220;id&#8221;:&#8221;states.1&#8243; its value is in <em>E notation</em>:</p>
<pre>
"PERSONS":1.1430602E7
</pre>
<p>This is perfectly valid according to the JSON and RFC4627 (2.4.  Numbers) but the OGR GeoJSON driver fails with parsing error.</p>
<p>I will try to fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mloskot</title>
		<link>http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/comment-page-1/#comment-2208</link>
		<dc:creator>mloskot</dc:creator>
		<pubDate>Wed, 07 Nov 2007 10:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://mateusz.loskot.net/2007/11/06/ogr-geojson-driver/#comment-2208</guid>
		<description>@Andrea Aime
Today, we did some tests with Chris and Hobu against the GeoServer. It looks quite good, but unfortunately we were not able to test the driver with most of the data because the OGR GeoJSON does not support Multi* geometries yet. I will test it more extensively when we have Multies supported. It should happen soon, this week yet and I&#039;ll drop you a note about results. Thanks!</description>
		<content:encoded><![CDATA[<p>@Andrea Aime<br />
Today, we did some tests with Chris and Hobu against the GeoServer. It looks quite good, but unfortunately we were not able to test the driver with most of the data because the OGR GeoJSON does not support Multi* geometries yet. I will test it more extensively when we have Multies supported. It should happen soon, this week yet and I&#8217;ll drop you a note about results. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

