<div dir="ltr">Are you using the refactor branch of featureserver?&nbsp; Try upgrade to <a href="http://svn.featureserver.org/branches/refactor/">http://svn.featureserver.org/branches/refactor/</a> -- Unlike the trunk, the refactor branch uses the 1.0 geojson spec, which may be the cause of the issue.&nbsp; <br>
<br>&nbsp; -Josh<br><br><div class="gmail_quote">On Tue, Oct 14, 2008 at 2:04 AM, Frederik Ramm <span dir="ltr">&lt;<a href="mailto:frederik@remote.org">frederik@remote.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
 &nbsp; &nbsp;I&#39;ve been using OpenLayers for a while and am now starting to play<br>
with FeatureServer.<br>
<br>
I have two layers in OpenLayers, each with one Polyline on it. I want<br>
to save this full picture to FeatureServer. I generate an array<br>
containing the two polylines from the two layers:<br>
<br>
var feature_array = new Array();<br>
feature_array.push(first_layer.features[0]);<br>
feature_array.push(second_layer.features[0]);<br>
<br>
and let this run through OpenLayer&#39;s GeoJSON formatter, yielding:<br>
<br>
{&quot;type&quot;:&quot;FeatureCollection&quot;,&quot;features&quot;:[{&quot;type&quot;:&quot;Feature&quot;,&quot;id&quot;:&quot;OpenLayers.Feature.Vector_429&quot;,&quot;properties&quot;:{},&quot;geometry&quot;:{&quot;type&quot;:&quot;LineString&quot;,&quot;coordinates&quot;:[[946549.6300834444,6275193.970668824],[946534.0453547356,6275193.970668824],[946531.8189649201,6275173.60840275],[946371.5188982,6275046.345351336],[946337.009856059,6275002.227940855],[946163.3514504456,6274818.973470214],[946072.0694680078,6274812.186343908]]}},{&quot;type&quot;:&quot;Feature&quot;,&quot;id&quot;:&quot;OpenLayers.Feature.Vector_456&quot;,&quot;properties&quot;:{},&quot;geometry&quot;:{&quot;type&quot;:&quot;LineString&quot;,&quot;coordinates&quot;:[[946550.0753614076,6275195.83721234],[946550.6284395837,6275198.850473554],[946545.9565402488,6275200.842944701],[946547.6374645595,6275161.2553185765],[946527.655615965,6275159.100318105],[946502.9315570632,6275149.818550694],[946456.5001974597,6275115.016255822],[946350.2346115634,6274999.156698926],[946289.9328434088,6274939.802198524],[946174.0937813055,6274819.397665788],[946110.8309146966,6274812.932927536],[946072.4274498615,6274811.742776<br>

886],[946072.4034264801,6274813.543768735]]}}]}<br>
<br>
If I try to save this to FeatureServer, I get an error message about the<br>
geometry type &quot;LineString&quot; that was created by OpenLayers:<br>
<br>
Unable to determine bounding box for feature with geometry LineString<br>
<br>
(this is from Feature.py). I then modified Feature.py to also accept<br>
LineString instead of Line, but then the same problem occurs again in<br>
the storage backends:<br>
<br>
An error occurred: Couldn&#39;t create WKT from geometry of type LineString<br>
({u&#39;type&#39;: u&#39;LineString&#39;, u&#39;coordinates&#39;: ... ). Only Point, Line,<br>
Polygon are supported.<br>
<br>
(this is from the SQLite backend but I have verified that neither does<br>
the PostGIS backend support the a GeoJSON type of &quot;Linestring&quot;).<br>
<br>
Somehow this must work - <a href="http://featureserver.org/demo.html" target="_blank">http://featureserver.org/demo.html</a> perfectly<br>
manages to upload polylines! So where is my mistake? (My FeatureServer<br>
installation is a few months old but I have confirmed that current SVN<br>
versions don&#39;t expect to receive LineString either. I&#39;m using OpenLayers<br>
directly from <a href="http://openlayers.org/api/OpenLayers.js" target="_blank">http://openlayers.org/api/OpenLayers.js</a>.)<br>
<br>
Bye<br>
Frederik<br>
<font color="#888888"><br>
--<br>
Frederik Ramm &nbsp;## &nbsp;eMail <a href="mailto:frederik@remote.org">frederik@remote.org</a> &nbsp;## &nbsp;N49°00&#39;09&quot; E008°23&#39;33&quot;<br>
_______________________________________________<br>
Featureserver mailing list<br>
<a href="mailto:Featureserver@openlayers.org">Featureserver@openlayers.org</a><br>
<a href="http://featureserver.org/mailman/listinfo/featureserver" target="_blank">http://featureserver.org/mailman/listinfo/featureserver</a><br>
</font></blockquote></div><br></div>