<br><font size=2 face="sans-serif">The confusion was that we only have
wms service. So 1 datastore = 1 resource. We have more than 200 layers...</font>
<br><font size=2 face="sans-serif">The concept of a resource seems to be
unnecessary to us...for the moment.</font>
<br><font size=2 face="sans-serif">thanks everyone for your help</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alexandre Dubé <adube@mapgears.com>@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : geoprisma-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2012-12-03 09:12</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">geoprisma-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Geoprisma-users] datastore vs resource</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Steve,<br>
<br>
  If I may add: a DataStore is the equivalent of a mapfile layer,
or a layer in any service config.  To retake Alexandre's example :<br>
<br>
  [DATA] is a 'hospital' table from PostGIS<br>
<br>
  [DATA] -> [MapServer WMS Service] -> served as a 'hospital'
layer inside a mapfile, which becomes the [Hospital WMS DataSource] in
GeoPrisma<br>
<br>
  [DATA] -> [TinyOWS WFS Service] -> served as well as a 'hospital'
layer inside the config.xml, which becomes the [Hospital WFS DataSource]
in GeoPrisma<br>
<br>
  Those 2 DataSource point to the same data in the back-end. 
They are now grouped as a single entity called 'Resource' in GeoPrisma. 
The authorization to read/write this data is then linked to the Resource,
not the DataStore nor the Services.  That way, a single 'Read access
to the Resource to a user' would allow all requests to the WMS service
as well as GetFeature requests to the WFS one.<br>
<br>
HTH,<br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 12-11-30 02:48 PM, Lessard Alexandre wrote:</font>
<br><font size=3>This part is a little difficulte I'll try my vest to explain.<br>
<br>
A ressource is a group of datastores that represent all the part of the
data.<br>
A data store is a part of the data linked to a service.<br>
Exemple :<br>
<br>
Say you want to show Hospitals on a map: <br>
You'll have a ressource for the hospitals with those datastore for exemple
:<br>
    - DS_hospital_WFS that link to your WFS server with
the layer of the hospitals;<br>
    - DS_hospital_WMS that link to your WMS server;<br>
    - DS_hospital_HTTPRequest if you want to manage your
data via http forms;<br>
    - DS_hospital_Cache that will be linked to your MapCache
server;<br>
<br>
So a ressource is to define the content and the datastores are the way
to connect with it.<br>
<br>
Check the samples with the source code, there is a lot of the configs that
are used there.<br>
<br>
Belug<br>
</font>
<br><font size=3>Le 2012-11-30 14:37, </font><a href=mailto:Steve.Toutant@inspq.qc.ca><font size=3 color=blue><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size=3>
a écrit :</font>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3> </font><font size=2 face="sans-serif"><br>
We are 3 here reading the doc and trying to understand the difference between
a datastore and a resource.</font><font size=3> </font><font size=2 face="sans-serif"><br>
If someone could explain by an example it would be very appreciated</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
many thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
steve</font>
<p><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction de la santé environnementale et de la toxicologie<br>
Institut national de santé publique du Québec<br>
Tél.: 418 646-6777 poste 30015<br>
Téléc.: 418 644-4593</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.monclimatmasante.qc.ca/><font size=3 color=blue><u>http://www.monclimatmasante.qc.ca</u></font></a><font size=3>
</font>
<p><font size=3><i>Pour me rejoindre par courrier</i><br>
Service de l'infrastructure et du réseau<br>
Direction des technologies de l'information<br>
Ministère de la Sécurité Publique<br>
2525 boul. Laurier, 2è étage<br>
Tour Laurentides<br>
Québec, G1V 2L2 </font>
<p>
<br><tt><font size=3>_______________________________________________<br>
Geoprisma-users mailing list<br>
</font></tt><a href="mailto:Geoprisma-users@lists.osgeo.org"><tt><font size=3 color=blue><u>Geoprisma-users@lists.osgeo.org</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="http://lists.osgeo.org/mailman/listinfo/geoprisma-users"><tt><font size=3 color=blue><u>http://lists.osgeo.org/mailman/listinfo/geoprisma-users</u></font></tt></a><tt><font size=3><br>
</font></tt>
<br><font size=3><br>
<br>
</font>
<br><tt><font size=3>_______________________________________________<br>
Geoprisma-users mailing list<br>
</font></tt><a href="mailto:Geoprisma-users@lists.osgeo.org"><tt><font size=3 color=blue><u>Geoprisma-users@lists.osgeo.org</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="http://lists.osgeo.org/mailman/listinfo/geoprisma-users"><tt><font size=3 color=blue><u>http://lists.osgeo.org/mailman/listinfo/geoprisma-users</u></font></tt></a><tt><font size=3><br>
</font></tt>
<br><font size=3><br>
</font>
<br><tt><font size=3>-- <br>
Alexandre Dubé<br>
Mapgears<br>
</font></tt><a href=http://www.mapgears.com/><tt><font size=3 color=blue><u>www.mapgears.com</u></font></tt></a><tt><font size=3><br>
</font></tt><tt><font size=2>_______________________________________________<br>
Geoprisma-users mailing list<br>
Geoprisma-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/geoprisma-users<br>
</font></tt>
<br>
<br>
<br>