<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">  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">  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
"italian" 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>
> Hello,<br>
> sorry ...but i read also this mailing list :-)<br>
> <br>
> Well,  our project wants to be indipendent from web application
used<br>
> to transfer GeoJson because GeoBI is compliant to the OGC standards
<br>
> such as WFS, WMS, SLD, etc...<br>
> <br>
> Now, about this first implementation of GeoReport we used GeoServer
<br>
> because it gives the possibilitiy to use in append to the WFS HTTP
<br>
> request "outputformat=geojson" instead of GML.<br>
> <br>
> Anyway MapOl makes a WFS request and reads the output by using <br>
> mapfish-geojson-lib...so there are 3 ways to use MapServer to do the
same:</font></tt>
<br><tt><font size=2>> 1. use a GeoJSON template for WFS output</font></tt>
<br><tt><font size=2>> 2. use a GeoJSON template for mapserver CGI output</font></tt>
<br><tt><font size=2>> 3. GeoReport must do the conversion from WFS-GML
to GeoJSON</font></tt>
<br><tt><font size=2>> At the moment we have choosen GeoServer but this
is not exclusive <br>
> respect other WFS service implementations! <br>
> Anyway I think you can use at the moment both MapServer and <br>
> GeoServer: you must serve with GeoServer only the LAYER on which you<br>
> want to do BI analysis (so...one, two layers...not all cartographic
<br>
> levels)...while you can display your layers by using MapFish Client
<br>
> and OpenLayers as WMS, WFS or MapServer Layers!<br>
> <br>
> PS:  what kind of geometries you want to analyze (by using GeoJSON)?<br>
> POINTS, POLYGONS....MULTIGEOMETRIES?<br>
> <br>
> Thank you very much!<br>
> <br>
> Fabio D'Ovidio<br>
</font></tt>
<br><tt><font size=2>> 2009/7/1 <Dejan.Gambin@pula.hr></font></tt>
<br><tt><font size=2>> <br>
> Steve, <br>
> <br>
> Here are more details, I am sure you'll have some further suggestions:
<br>
> <br>
> There is a project called GeoReport, part of GeoBI suite, that <br>
> integrates the data coming from Business Intelligence processes <br>
> (Pentaho BI) with their cartographic representation. Since I am <br>
> pretty much involved in both areas (WebGIS, BI), this seems very <br>
> interesting to me, although I first saw it yesterday :-( <br>
> <br>
> Here are the main informations about GeoReport: http://www.geobi.<br>
> org/2009/01/georeport-module.html <br>
> <br>
> As I can see, basically, there is a MapOL module that runs BI <br>
> process in order to get resultset, join it with geometries coming
<br>
> from GeoServer (WFS) and returns GeoJSON data to WebGIS client <br>
> (MapFish and OpenLayers + Geostat widgets) which displays it on the
map. <br>
> <br>
> I have been in contact with Fabio (he is "responsible" for
all <br>
> this). Based on what he said, I understood (maybe wrongly) that WFS
<br>
> server needs to return GeoJSON, and GeoServer can do it. Now, as I
<br>
> write this to you, it seems like MapOL is responsible for creating
<br>
> GeoJSON data ?! <br>
> <br>
> Anyway, I am new to this almost as you and if you can take a look
on<br>
> above link, I would appreciate it very much. I "only" want
to use <br>
> MapServer instead of GeoServer. If I can't do it, then I'll rather
<br>
> do nothing as I have no intentions to use anything but MapServer :-)
</font></tt>
<br><tt><font size=2>> <br>
> thanks very much <br>
> <br>
> regards, dejan <br>
</font></tt>
<br><tt><font size=2>> "Steve Lime" <Steve.Lime@dnr.state.mn.us>
wrote on 01.07.2009 16:36:48:</font></tt>
<br><tt><font size=2>> <br>
> <br>
> > Depends on how you need to access it. You certainly can create
a <br>
> > template that will output GeoJSON. However,<br>
> > at the moment you can only access that output though calls to
the <br>
> > CGI and (probably) MapScript. WMS and WFS<br>
> > do not recognize the template output format although there are
plans<br>
> > to do so in the upcoming release.<br>
> > <br>
> > Let me know if I can help further...<br>
> > <br>
> > Steve<br>
> > <br>
> > >>> On 7/1/2009 at 7:44 AM, in message<br>
> > <OF425313EF.2215E677-ONC12575E6.004595DF-C12575E6.00460800@pula.hr>,<br>
> > <Dejan.Gambin@pula.hr> wrote:<br>
> > > Hi,<br>
> > > <br>
> > > Is it possible to use GeoJSON template for getting GeoJSON
output from <br>
> > > MapServer? I have tried using outputformat as described
in:<br>
> > > <br>
> > > http://mapserver.org/development/rfc/ms-rfc-36.html and<br>
> > > http://mapserver.org/development/rfc/ms-rfc-56.html <br>
> > > <br>
> > > Is it supported at all? I have a project where I need a
GeoJSON output. <br>
> > > This project originally uses GeoServer whcih has a plugin
for this. Is <br>
> > > this possible with MapServer? I am using MapServer 5.4.1<br>
> > > <br>
> > > thanks very much<br>
> > > <br>
> > > regards, dejan<br>
> > </font></tt>
<br><tt><font size=2>> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> mapserver-users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br><tt><font size=2>> _______________________________________________<br>
> mapserver-users mailing list<br>
> mapserver-users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>