OGR would be the most straightforward I&#39;d think. You could write the GeoJSON to a file and then craft a layer to access it directly...<br><br>Steve<br><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 4:07 AM, Frank Broniewski <span dir="ltr">&lt;<a href="mailto:brfr@metrico.lu">brfr@metrico.lu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
what would be the best way to read a geojson feature/featurecollection with mapscript?<br>
<br>
My goal is to query a map by a feature which comes as geojson. Of course it&#39;s not too hard to parse the geojson into a mapserver geometry object (pointObj, lineObj, ...). But if there&#39;s already a best practice (with the aid of other libraries, like ogr, shapely maybe?), I&#39;d be happy to apply this one.<br>

<br>
Many thanks<br>
<br>
Frank<br>
-- <br>
Frank BRONIEWSKI<br>
<br>
METRICO s.à r.l.<br>
géomètres<br>
technologies d&#39;information géographique<br>
rue des Romains 36<br>
L-5433 NIEDERDONVEN<br>
<br>
tél.: <a href="tel:%2B352%2026%2074%2094%20-%2028" value="+35226749428" target="_blank">+352 26 74 94 - 28</a><br>
fax.: <a href="tel:%2B352%2026%2074%2094%2099" value="+35226749499" target="_blank">+352 26 74 94 99</a><br>
<a href="http://www.metrico.lu" target="_blank">http://www.metrico.lu</a><br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</blockquote></div><br>