Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/data/LayerReader.txt @ 76

Revision 76, 1.3 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1
2.. currentmodule:: GeoExt.data
3
4:class:`GeoExt.data.LayerReader`
5================================================================================
6
7
8.. cssclass:: meta
9
10
11Extends
12    * `Ext.data.DataReader <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader>`_
13   
14
15
16
17
18
19
20.. class:: LayerReader(meta, recordType)
21
22    Data reader class to create an array of
23    :class:`GeoExt.data.LayerRecord` objects from an array of
24    ``OpenLayers.Layer`` objects for use in a
25    :class:`GeoExt.data.LayerStore` object.
26
27
28
29Example Use
30-----------
31
32Sample using a reader to create records from an array of layers:
33
34.. code-block:: javascript
35
36    var reader = new GeoExt.data.LayerReader();
37    var layerData = reader.readRecords(map.layers);
38    var numRecords = layerData.totalRecords;
39    var layerRecords = layerData.records;
40
41   
42
43
44
45
46
47
48Public Methods
49--------------
50
51Public methods in addition to those
52listed for `Ext.data.DataReader <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader>`_.
53
54
55.. method:: LayerReader.readRecords
56
57    :param layers: ``Array(OpenLayers.Layer)`` List of layers for creating
58        records.
59    :return: ``Object``  An object with ``records`` and ``totalRecords``
60        properties.
61   
62    From an array of ``OpenLayers.Layer`` objects create a data block
63    containing :class:`GeoExt.data.LayerRecord` objects.
64
65
66
67
68
Note: See TracBrowser for help on using the repository browser.