<br><font size=2 face="sans-serif">Steve,</font>
<br>
<br><font size=2 face="sans-serif">Is there any GeoJSON example I can see?
I must be missing something trivial,</font>
<br>
<br><font size=2 face="sans-serif">When I put:</font>
<br>
<br><font size=2 face="sans-serif">OUTPUTFORMAT</font>
<br><font size=2 face="sans-serif"> NAME 'geojson'</font>
<br><font size=2 face="sans-serif"> DRIVER TEMPLATE</font>
<br><font size=2 face="sans-serif"> MIMETYPE 'application/json; subtype=geojson'</font>
<br><font size=2 face="sans-serif"> TEMPLATE 'myTemplate.js'</font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">in my.map file and call for example
"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/pmapper/pmapper-3.2.0/config/default/geojson_demo.map&layer=countries"
(this works correctly without geojson part), I get: </font><font size=3>getString():
Symbol definition error. Parsing error near (TEMPLATE):(line 74) </font>
<br>
<br><font size=2 face="sans-serif">If I put DRIVER 'TEMPLATE' then I get:
</font><font size=3>loadOutputFormat(): Unknown identifier. Parsing error
near (TEMPLATE):(line 76) </font>
<br>
<br><font size=2 face="sans-serif">Finally, putting </font><tt><font size=2>FORMATOPTION
'FILE=myTemplate.js'</font></tt><font size=2 face="sans-serif"> instead
of TEMPLATE gives me: </font><font size=3>loadOutputFormat(): General error
message. OUTPUTFORMAT clause references driver TEMPLATE, but this driver
isn't configured. </font>
<br>
<br><font size=2 face="sans-serif">So, I am obviously doing something wrong
regardless the myTemplate.js file? (anyway, can you give me an example
.js file, anything that could help :-)</font>
<br>
<br><font size=2 face="sans-serif">regards, dejan</font>
<br><tt><font size=2>"Steve Lime" <Steve.Lime@dnr.state.mn.us>
wrote on 02.07.2009 15:35:28:<br>
<br>
> What does myTemplate.js look like?<br>
> <br>
> >>> <Dejan.Gambin@pula.hr> 07/02/09 5:33 AM >>><br>
> Thanks Fabio,<br>
> <br>
> As I said in my last post, I can't get GeoJSON output using this <br>
> outputformat:<br>
> <br>
> OUTPUTFORMAT<br>
> NAME 'geojson'<br>
> DRIVER 'TEMPLATE'<br>
> MIMETYPE 'application/json; subtype=geojson'<br>
> FORMATOPTION 'FILE=myTemplate.js'<br>
> END<br>
> <br>
> :-(<br>
> <br>
> regards, dejan<br>
> <br>
> Fabio D'Ovidio <fabiodovidio@gmail.com> wrote on 02.07.2009
09:28:06:<br>
> <br>
> > Hi,<br>
> > <br>
> > Dejan.Gambin@pula.hr ha scritto:<br>
> > ><br>
> > > Fabio,<br>
> > ><br>
> > > Glad to here you are here too :-)<br>
> > ><br>
> > > I can certainly use both GeoServer and MapServer but this
is not <br>
> > > something I would like at the end. Since I am still investigating
all <br>
> > > this, I am not in such a hurry to get it working with my
data ASAP. <br>
> > > So, I would rather go with one of your Mapserver solutions.<br>
> > It is not so difficult...just 2, 3 minutes to load your layer
in <br>
> > GeoServer ;-)<br>
> > <br>
> > ><br>
> > > My first question, to be sure - so MapOl reads/gets the
GeoJSON data <br>
> > > from Geoserver WFS and outputs GeoJSON data to WebClient?
If I <br>
> > > understand Steve correctly, there is no way currently to
get GeoJSON <br>
> > > output from MapServer WFS, only with CGI? So we come to
your solution <br>
> 2.<br>
> > <br>
> > If you want to use the second solution you must create the HTTP
string <br>
> > to get GeoJSON from CGI-MapServer and than you must change MapOl
request <br>
> <br>
> > to receive data and read them.<br>
> > If you want send me the URL and I'll send you the new MapOl as
soon as <br>
> > possbile!<br>
> > <br>
> > <br>
> > -- <br>
> > Fabio D'Ovidio<br>
> > Geospatial solutions<br>
> > <br>
> > Inova S.r.l.<br>
> > Web : http://www.inovaos.it<br>
> > GeoBI Blog: www.geobi.org<br>
> > Tel.: 081 197 57 600<br>
> > mail: fabiodovidio@gmail.com, f.dovidio@inovaos.it<br>
> > skype: dovidio_fa<br>
> > <br>
> <br>
</font></tt>