[Geoprisma-users] datastore vs resource
Alexandre Dubé
adube at mapgears.com
Mon Dec 3 06:12:48 PST 2012
Steve,
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 :
[DATA] is a 'hospital' table from PostGIS
[DATA] -> [MapServer WMS Service] -> served as a 'hospital' layer
inside a mapfile, which becomes the [Hospital WMS DataSource] in GeoPrisma
[DATA] -> [TinyOWS WFS Service] -> served as well as a 'hospital'
layer inside the config.xml, which becomes the [Hospital WFS DataSource]
in GeoPrisma
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.
HTH,
Regards,
Alexandre
On 12-11-30 02:48 PM, Lessard Alexandre wrote:
> This part is a little difficulte I'll try my vest to explain.
>
> A ressource is a group of datastores that represent all the part of
> the data.
> A data store is a part of the data linked to a service.
> Exemple :
>
> Say you want to show Hospitals on a map:
> You'll have a ressource for the hospitals with those datastore for
> exemple :
> - DS_hospital_WFS that link to your WFS server with the layer of
> the hospitals;
> - DS_hospital_WMS that link to your WMS server;
> - DS_hospital_HTTPRequest if you want to manage your data via http
> forms;
> - DS_hospital_Cache that will be linked to your MapCache server;
>
> So a ressource is to define the content and the datastores are the way
> to connect with it.
>
> Check the samples with the source code, there is a lot of the configs
> that are used there.
>
> Belug
>
> Le 2012-11-30 14:37, Steve.Toutant at inspq.qc.ca a écrit :
>>
>> Hi,
>> We are 3 here reading the doc and trying to understand the difference
>> between a datastore and a resource.
>> If someone could explain by an example it would be very appreciated
>>
>> many thanks
>> steve
>>
>> /Steve Toutant, M. Sc./
>> Analyste en géomatique
>> Secteur environnement
>> Direction de la santé environnementale et de la toxicologie
>> Institut national de santé publique du Québec
>> Tél.: 418 646-6777 poste 30015
>> Téléc.: 418 644-4593_
>> __steve.toutant at inspq.qc.ca_ <mailto:steve.toutant at inspq.qc.ca>_
>> __http://www.inspq.qc.ca_ <http://www.inspq.qc.ca/>_
>> __http://www.monclimatmasante.qc.ca_ <http://www.monclimatmasante.qc.ca/>
>>
>> /Pour me rejoindre par courrier/
>> Service de l'infrastructure et du réseau
>> Direction des technologies de l'information
>> Ministère de la Sécurité Publique
>> 2525 boul. Laurier, 2è étage
>> Tour Laurentides
>> Québec, G1V 2L2
>>
>>
>> _______________________________________________
>> Geoprisma-users mailing list
>> Geoprisma-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geoprisma-users
>
>
>
> _______________________________________________
> Geoprisma-users mailing list
> Geoprisma-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geoprisma-users
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geoprisma-users/attachments/20121203/a416f2ef/attachment.html>
More information about the Geoprisma-users
mailing list