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/lib/GeoExt/data/LayerReader.html @ 76

Revision 76, 9.9 KB checked in by djay, 10 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml">
5  <head>
6    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7   
8    <title>GeoExt.data.LayerReader &mdash; GeoExt v1.0</title>
9    <link rel="stylesheet" href="../../../_static/geoext.css" type="text/css" />
10    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
11    <script type="text/javascript">
12      var DOCUMENTATION_OPTIONS = {
13        URL_ROOT:    '../../../',
14        VERSION:     '1.0',
15        COLLAPSE_MODINDEX: false,
16        FILE_SUFFIX: '.html',
17        HAS_SOURCE:  true
18      };
19    </script>
20    <script type="text/javascript" src="../../../_static/jquery.js"></script>
21    <script type="text/javascript" src="../../../_static/doctools.js"></script>
22    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
23    <link rel="top" title="GeoExt v1.0" href="../../../index.html" />
24    <link rel="up" title="GeoExt.data" href="../data.html" />
25    <link rel="next" title="GeoExt.data.LayerRecord" href="LayerRecord.html" />
26    <link rel="prev" title="GeoExt.data.FeatureStore" href="FeatureStore.html" />
27   
28   
29   
30   
31   
32
33  </head>
34  <body>
35    <div class="header">
36        <div class="wrap">
37            <h1 id="logo"><a href="../../../index.html">GeoExt</a></h1>
38            <ul id="top-nav">
39                <li class="first"><a href="../../../docs.html">Documentation</a></li>
40                <li><a href="../../../examples.html">Examples</a></li>
41                <li><a href="../../../downloads.html">Download</a></li>
42                <li><a href="http://trac.geoext.org/">Development</a></li>
43            </ul>
44            <div id="searchbox">
45                <form class="search" action="../../../search.html" method="get">
46                    <input id="searchbox-query" type="text" name="q" size="25" value="Search &hellip;" tabindex="3" onblur="if(this.value=='') this.value='Search &hellip;';" onfocus="if(this.value=='Search &hellip;') this.value='';" />
47                    <input id="searchbox-submit" type="image" value="Search" src="../../../_static/img/search_icon_green.png" />
48                    <input type="hidden" name="check_keywords" value="yes" />
49                    <input type="hidden" name="area" value="default" />
50                </form>
51            </div>
52        </div>
53    </div>
54
55    <div class="related">
56      <h3>Navigation</h3>
57      <ul>
58        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
59          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
60          <li><a href="../data.html" accesskey="U"><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> &raquo;</li>
61        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.LayerReader</span></tt></a></li>
62      </ul>
63    </div>
64
65      <div class="sphinxsidebar">
66        <div class="sphinxsidebarwrapper">
67            <h3><a href="../../../index.html">Table Of Contents</a></h3>
68            <ul>
69<li><a class="reference external" href="#"><tt class="docutils literal"><span class="pre">GeoExt.data.LayerReader</span></tt></a><ul>
70<li><a class="reference external" href="#example-use">Example Use</a></li>
71<li><a class="reference external" href="#public-methods">Public Methods</a></li>
72</ul>
73</li>
74</ul>
75
76            <h4>Previous topic</h4>
77            <p class="topless"><a href="FeatureStore.html"
78                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data.FeatureStore</span></tt></a></p>
79            <h4>Next topic</h4>
80            <p class="topless"><a href="LayerRecord.html"
81                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a></p>
82        </div>
83      </div>
84
85
86    <div class="document">
87      <div class="documentwrapper">
88        <div class="bodywrapper">
89          <div class="body">
90           
91  <div class="section" id="geoext-data-layerreader">
92<h1><a title="GeoExt.data.LayerReader" class="reference internal" href="#GeoExt.data.LayerReader"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerReader</span></tt></a><a class="headerlink" href="#geoext-data-layerreader" title="Permalink to this headline">¶</a></h1>
93<dl class="meta docutils">
94<dt>Extends</dt>
95<dd><ul class="first last simple">
96<li><a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader">Ext.data.DataReader</a></li>
97</ul>
98</dd>
99</dl>
100<dl class="class">
101<dt id="GeoExt.data.LayerReader">
102<em class="property">class </em><tt class="descclassname">GeoExt.data.</tt><tt class="descname">LayerReader</tt><big>(</big><em>meta</em>, <em>recordType</em><big>)</big><a class="headerlink" href="#GeoExt.data.LayerReader" title="Permalink to this definition">¶</a></dt>
103<dd>Data reader class to create an array of
104<a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> objects from an array of
105<tt class="docutils literal"><span class="pre">OpenLayers.Layer</span></tt> objects for use in a
106<a title="GeoExt.data.LayerStore" class="reference external" href="LayerStore.html#GeoExt.data.LayerStore"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerStore</span></tt></a> object.</dd></dl>
107
108<div class="section" id="example-use">
109<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
110<p>Sample using a reader to create records from an array of layers:</p>
111<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">reader</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">data</span><span class="p">.</span><span class="nx">LayerReader</span><span class="p">();</span>
112<span class="kd">var</span> <span class="nx">layerData</span> <span class="o">=</span> <span class="nx">reader</span><span class="p">.</span><span class="nx">readRecords</span><span class="p">(</span><span class="nx">map</span><span class="p">.</span><span class="nx">layers</span><span class="p">);</span>
113<span class="kd">var</span> <span class="nx">numRecords</span> <span class="o">=</span> <span class="nx">layerData</span><span class="p">.</span><span class="nx">totalRecords</span><span class="p">;</span>
114<span class="kd">var</span> <span class="nx">layerRecords</span> <span class="o">=</span> <span class="nx">layerData</span><span class="p">.</span><span class="nx">records</span><span class="p">;</span>
115</pre></div>
116</div>
117</div>
118<div class="section" id="public-methods">
119<h2>Public Methods<a class="headerlink" href="#public-methods" title="Permalink to this headline">¶</a></h2>
120<p>Public methods in addition to those
121listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader">Ext.data.DataReader</a>.</p>
122<dl class="method">
123<dt id="GeoExt.data.LayerReader.readRecords">
124<tt class="descclassname">LayerReader.</tt><tt class="descname">readRecords</tt><big>(</big><big>)</big><a class="headerlink" href="#GeoExt.data.LayerReader.readRecords" title="Permalink to this definition">¶</a></dt>
125<dd><table class="docutils field-list" frame="void" rules="none">
126<col class="field-name" />
127<col class="field-body" />
128<tbody valign="top">
129<tr class="field"><th class="field-name">Parameter:</th><td class="field-body"><em>layers</em> &#8211; <tt class="docutils literal"><span class="pre">Array(OpenLayers.Layer)</span></tt> List of layers for creating
130records.</td>
131</tr>
132<tr class="field"><th class="field-name">Returns:</th><td class="field-body"><tt class="docutils literal"><span class="pre">Object</span></tt>  An object with <tt class="docutils literal"><span class="pre">records</span></tt> and <tt class="docutils literal"><span class="pre">totalRecords</span></tt>
133properties.</td>
134</tr>
135</tbody>
136</table>
137<p>From an array of <tt class="docutils literal"><span class="pre">OpenLayers.Layer</span></tt> objects create a data block
138containing <a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> objects.</p>
139</dd></dl>
140
141</div>
142</div>
143
144
145          </div>
146        </div>
147      </div>
148      <div class="clearer"></div>
149    </div>
150    <div class="related">
151      <h3>Navigation</h3>
152      <ul>
153            <li class="right" style="margin-right: 10px">
154              <a href="../../../genindex.html" title="General Index"
155                 accesskey="I">index</a></li>
156            <li class="right" >
157              <a href="../../../modindex.html" title="Global Module Index"
158                 accesskey="M">modules</a> |</li>
159            <li class="right" >
160              <a href="LayerRecord.html" title="GeoExt.data.LayerRecord"
161                 accesskey="N">next</a> |</li>
162            <li class="right" >
163              <a href="FeatureStore.html" title="GeoExt.data.FeatureStore"
164                 accesskey="P">previous</a> |</li>
165        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
166          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
167          <li><a href="../data.html" ><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> &raquo;</li>
168        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.LayerReader</span></tt></a></li>
169      </ul>
170    </div>
171
172    <div class="footer">
173      &copy; Copyright 2009-2010, GeoExt Community.
174    </div>
175  </body>
176</html>
Note: See TracBrowser for help on using the repository browser.