<br><font size=2 face="sans-serif">Fabio, </font>
<br>
<br><font size=2 face="sans-serif">Glad to here you are here too :-)</font>
<br>
<br><font size=2 face="sans-serif">I can certainly use both GeoServer and
MapServer but this is not something I would like at the end. Since I am
still investigating all this, I am not in such a hurry to get it working
with my data ASAP. So, I would rather go with one of your Mapserver solutions.</font>
<br>
<br><font size=2 face="sans-serif">My first question, to be sure - so MapOl
reads/gets the GeoJSON data from Geoserver WFS and outputs GeoJSON data
to WebClient? If I understand Steve correctly, there is no way currently
to get GeoJSON output from MapServer WFS, only with CGI? So we come to
your solution 2.</font>
<br>
<br><font size=2 face="sans-serif">I have tried getting GeoJSON outuput
from MapServer using CGI, but I didn't succeed. There is little written
about this. I have tried setting something like:</font>
<br>
<br><font size=2 face="sans-serif">OUTPUTFORMAT</font>
<br><font size=2 face="sans-serif">&nbsp; NAME 'geojson'</font>
<br><font size=2 face="sans-serif">&nbsp; DRIVER 'TEMPLATE'</font>
<br><font size=2 face="sans-serif">&nbsp; MIMETYPE 'application/json; subtype=geojson'</font>
<br><font size=2 face="sans-serif">&nbsp; FORMATOPTION 'FILE=myTemplate.js'</font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">but I got errors (using the newest MS4W
beta with MapServer 5.4.1)?</font>
<br>
<br><font size=2 face="sans-serif">Regarding my geometries - I am planning
to analyze some cadastral data (that's why I was so interested in your
&quot;italian&quot; example). This will be points and polygons mostly.
We have our cadastral data vectorized but still in dwg/multyline. We can
identfy parcels as points with parcel IDs, but in near future we'll make
polygons for all of them.</font>
<br>
<br><font size=2 face="sans-serif">regards, dejan</font>
<br>
<br><tt><font size=2>mapserver-users-bounces@lists.osgeo.org wrote on 01.07.2009
23:39:19:<br>
<br>
&gt; Hello,<br>
&gt; sorry ...but i read also this mailing list :-)<br>
&gt; <br>
&gt; Well,&nbsp; our project wants to be indipendent from web application
used<br>
&gt; to transfer GeoJson because GeoBI is compliant to the OGC standards
<br>
&gt; such as WFS, WMS, SLD, etc...<br>
&gt; <br>
&gt; Now, about this first implementation of GeoReport we used GeoServer
<br>
&gt; because it gives the possibilitiy to use in append to the WFS HTTP
<br>
&gt; request &quot;outputformat=geojson&quot; instead of GML.<br>
&gt; <br>
&gt; Anyway MapOl makes a WFS request and reads the output by using <br>
&gt; mapfish-geojson-lib...so there are 3 ways to use MapServer to do the
same:</font></tt>
<br><tt><font size=2>&gt; 1. use a GeoJSON template for WFS output</font></tt>
<br><tt><font size=2>&gt; 2. use a GeoJSON template for mapserver CGI output</font></tt>
<br><tt><font size=2>&gt; 3. GeoReport must do the conversion from WFS-GML
to GeoJSON</font></tt>
<br><tt><font size=2>&gt; At the moment we have choosen GeoServer but this
is not exclusive <br>
&gt; respect other WFS service implementations! <br>
&gt; Anyway I think you can use at the moment both MapServer and <br>
&gt; GeoServer: you must serve with GeoServer only the LAYER on which you<br>
&gt; want to do BI analysis (so...one, two layers...not all cartographic
<br>
&gt; levels)...while you can display your layers by using MapFish Client
<br>
&gt; and OpenLayers as WMS, WFS or MapServer Layers!<br>
&gt; <br>
&gt; PS:&nbsp; what kind of geometries you want to analyze (by using GeoJSON)?<br>
&gt; POINTS, POLYGONS....MULTIGEOMETRIES?<br>
&gt; <br>
&gt; Thank you very much!<br>
&gt; <br>
&gt; Fabio D'Ovidio<br>
</font></tt>
<br><tt><font size=2>&gt; 2009/7/1 &lt;Dejan.Gambin@pula.hr&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Steve, <br>
&gt; <br>
&gt; Here are more details, I am sure you'll have some further suggestions:
<br>
&gt; <br>
&gt; There is a project called GeoReport, part of GeoBI suite, that <br>
&gt; integrates the data coming from Business Intelligence processes <br>
&gt; (Pentaho BI) with their cartographic representation. Since I am <br>
&gt; pretty much involved in both areas (WebGIS, BI), this seems very <br>
&gt; interesting to me, although I first saw it yesterday :-( <br>
&gt; <br>
&gt; Here are the main informations about GeoReport: http://www.geobi.<br>
&gt; org/2009/01/georeport-module.html <br>
&gt; <br>
&gt; As I can see, basically, there is a MapOL module that runs BI <br>
&gt; process in order to get resultset, join it with geometries coming
<br>
&gt; from GeoServer (WFS) and returns GeoJSON data to WebGIS client <br>
&gt; (MapFish and OpenLayers + Geostat widgets) which displays it on the
map. <br>
&gt; <br>
&gt; I have been in contact with Fabio (he is &quot;responsible&quot; for
all <br>
&gt; this). Based on what he said, I understood (maybe wrongly) that WFS
<br>
&gt; server needs to return GeoJSON, and GeoServer can do it. Now, as I
<br>
&gt; write this to you, it seems like MapOL is responsible for creating
<br>
&gt; GeoJSON data ?! <br>
&gt; <br>
&gt; Anyway, I am new to this almost as you and if you can take a look
on<br>
&gt; above link, I would appreciate it very much. I &quot;only&quot; want
to use <br>
&gt; MapServer instead of GeoServer. If I can't do it, then I'll rather
<br>
&gt; do nothing as I have no intentions to use anything but MapServer :-)
</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; thanks very much <br>
&gt; <br>
&gt; regards, dejan <br>
</font></tt>
<br><tt><font size=2>&gt; &quot;Steve Lime&quot; &lt;Steve.Lime@dnr.state.mn.us&gt;
wrote on 01.07.2009 16:36:48:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
&gt; &gt; Depends on how you need to access it. You certainly can create
a <br>
&gt; &gt; template that will output GeoJSON. However,<br>
&gt; &gt; at the moment you can only access that output though calls to
the <br>
&gt; &gt; CGI and (probably) MapScript. WMS and WFS<br>
&gt; &gt; do not recognize the template output format although there are
plans<br>
&gt; &gt; to do so in the upcoming release.<br>
&gt; &gt; <br>
&gt; &gt; Let me know if I can help further...<br>
&gt; &gt; <br>
&gt; &gt; Steve<br>
&gt; &gt; <br>
&gt; &gt; &gt;&gt;&gt; On 7/1/2009 at 7:44 AM, in message<br>
&gt; &gt; &lt;OF425313EF.2215E677-ONC12575E6.004595DF-C12575E6.00460800@pula.hr&gt;,<br>
&gt; &gt; &lt;Dejan.Gambin@pula.hr&gt; wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Is it possible to use GeoJSON template for getting GeoJSON
output from <br>
&gt; &gt; &gt; MapServer? I have tried using outputformat as described
in:<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; http://mapserver.org/development/rfc/ms-rfc-36.html and<br>
&gt; &gt; &gt; http://mapserver.org/development/rfc/ms-rfc-56.html <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Is it supported at all? I have a project where I need a
GeoJSON output. <br>
&gt; &gt; &gt; This project originally uses GeoServer whcih has a plugin
for this. Is <br>
&gt; &gt; &gt; this possible with MapServer? I am using MapServer 5.4.1<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; thanks very much<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; regards, dejan<br>
&gt; &gt; </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br><tt><font size=2>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>