<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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:<br>
</div>
<blockquote cite="mid:50B90D9A.5010105@solutionglobale.com"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
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>
<br>
<div class="moz-cite-prefix">Le 2012-11-30 14:37, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>
a écrit :<br>
</div>
<blockquote
cite="mid:OF2F45AA5F.01797DEA-ON85257AC6.006BA1DB-85257AC6.006BCB12@isn.rtss.qc.ca"
type="cite"> <br>
<font face="sans-serif" size="2">Hi,</font> <br>
<font face="sans-serif" size="2">We are 3 here reading the doc
and trying to understand the difference between a datastore
and a resource.</font> <br>
<font face="sans-serif" size="2">If someone could explain by an
example it would be very appreciated</font> <br>
<br>
<font face="sans-serif" size="2">many thanks</font> <br>
<font face="sans-serif" size="2">steve<br>
</font>
<p><font color="#0066ff" size="3"><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 color="blue" size="3"><u><br>
</u></font><a moz-do-not-send="true"
href="mailto:steve.toutant@inspq.qc.ca"><font color="blue"
size="3"><u>steve.toutant@inspq.qc.ca</u></font></a><font
color="blue" size="3"><u><br>
</u></font><a moz-do-not-send="true"
href="http://www.inspq.qc.ca/"><font color="blue" size="3"><u>http://www.inspq.qc.ca</u></font></a><font
color="blue" size="3"><u><br>
</u></font><a moz-do-not-send="true"
href="http://www.monclimatmasante.qc.ca/"><font color="blue"
size="3"><u>http://www.monclimatmasante.qc.ca</u></font></a><font
size="3"> </font> </p>
<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> <br>
</p>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Geoprisma-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Geoprisma-users@lists.osgeo.org">Geoprisma-users@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geoprisma-users">http://lists.osgeo.org/mailman/listinfo/geoprisma-users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Geoprisma-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geoprisma-users@lists.osgeo.org">Geoprisma-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geoprisma-users">http://lists.osgeo.org/mailman/listinfo/geoprisma-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>