Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| project:electronomy [2013/03/22 14:55] – created fabienroduit | project:electronomy [2013/08/15 22:23] (current) – tagged loleg | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Ma commune peut elle vivre en autonomie électrique ? | Ma commune peut elle vivre en autonomie électrique ? | ||
| Le potentiel de production solaire photovoltaique en rapport à la consommation électrique | Le potentiel de production solaire photovoltaique en rapport à la consommation électrique | ||
| + | |||
| + | === Méthodologies, | ||
| + | == A - Consommation électrique des ménages par commune == | ||
| + | |||
| + | La consommation de la grande industrie doit etre sortie des consommations. Dans le cadre de l' | ||
| + | |||
| + | 1 - Consommation électrique totale des ménages sur l' | ||
| + | |||
| + | 2 - Nombre d' | ||
| + | |||
| + | 3 - En multipliant (2) par (3), la consommation électrique de la commune est évaluée. | ||
| + | |||
| + | 4 (optionnel) - Le marquage de l' | ||
| + | |||
| + | == B - Productions potentielles de PV par commune == | ||
| + | |||
| + | 1 - Listes des communes par NPA (source : http:// | ||
| + | |||
| + | 2 - Nombre de batiments par commune (source : http:// | ||
| + | |||
| + | 3 - Surface de toiture potentielles par batiment - Hypothèse : surface de toiture de 50m2 par batiment. Doit etre affiné en important les données réelles, par exemple depuis le RegBL | ||
| + | |||
| + | 4 - Production annuelle par m2 de panneau - Hypothèse : production anuelle de 160 kWh/m2. Doit etre affiné en important les production effectives, en tenant compte de l' | ||
| + | |||
| + | 5 - En multipliant (2) par (3) par (4), déduction du potentiel de production communal | ||
| ===== Data ===== | ===== Data ===== | ||
| Line 8: | Line 33: | ||
| * List and link your actual and ideal data sources. | * List and link your actual and ideal data sources. | ||
| + | ===== Capture d' | ||
| + | |||
| + | ===== Captures ===== | ||
| + | |||
| + | {{: | ||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Code ===== | ||
| + | |||
| + | Index.html : | ||
| + | |||
| + | <code html> | ||
| + | < | ||
| + | <script type=" | ||
| + | var map,popup; | ||
| + | | ||
| + | map = new GeoAdmin.Map(" | ||
| + | map.switchComplementaryLayer(' | ||
| + | // Ajout du layer pour voir les communes | ||
| + | map.addLayerByName(" | ||
| + | // Ajout du layer pour voir les limites du canton | ||
| + | map.addLayerByName(" | ||
| + | map.zoomToExtent(new OpenLayers.Bounds(543550, | ||
| + | |||
| + | // Dessiner un cercle | ||
| + | var vector = new OpenLayers.Layer.Vector(" | ||
| + | styleMap: new OpenLayers.StyleMap({ | ||
| + | " | ||
| + | pointRadius: | ||
| + | fillColor: "# | ||
| + | fillOpacity: | ||
| + | strokeColor: | ||
| + | strokeOpacity: | ||
| + | strokeWidth: | ||
| + | }), | ||
| + | " | ||
| + | pointRadius: | ||
| + | fillColor: ' | ||
| + | fillOpacity: | ||
| + | strokeColor: | ||
| + | strokeOpacity: | ||
| + | }, OpenLayers.Feature.Vector.style.temporary) | ||
| + | }) | ||
| + | }); | ||
| + | |||
| + | // Dessiner un cercle sur Martigny | ||
| + | var feature1 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(572494, | ||
| + | attributes: {text: ' | ||
| + | }); | ||
| + | // Dessiner un cercle sur Sion | ||
| + | var feature2 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(596118, | ||
| + | attributes: {text: ' | ||
| + | }); | ||
| + | |||
| + | // Add features | ||
| + | vector.addFeatures([feature1, | ||
| + | |||
| + | map.addLayers([vector]); | ||
| + | |||
| + | // Attach a control on the feature to display the popup on hover | ||
| + | var hover = new OpenLayers.Control.SelectFeature(vector, | ||
| + | renderIntent: | ||
| + | hover: true, | ||
| + | highlightOnly: | ||
| + | eventListeners: | ||
| + | featurehighlighted: | ||
| + | popup = new OpenLayers.Popup.FramedCloud(" | ||
| + | new OpenLayers.LonLat(data.feature.geometry.x, | ||
| + | new OpenLayers.Size(40, | ||
| + | "< | ||
| + | null, | ||
| + | false | ||
| + | ); | ||
| + | map.addPopup(popup); | ||
| + | }, | ||
| + | featureunhighlighted: | ||
| + | map.removePopup(popup); | ||
| + | } | ||
| + | } | ||
| + | }); | ||
| + | |||
| + | // Add the control to the map | ||
| + | map.addControls([hover]); | ||
| + | |||
| + | hover.activate(); | ||
| + | } | ||
| + | </ | ||
| + | <body onload=" | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | GetCentroid.html | ||
| + | |||
| + | <code html> | ||
| + | < | ||
| + | <script src=" | ||
| + | |||
| + | < | ||
| + | $(document).ready(function() { | ||
| + | var url = ' | ||
| + | | ||
| + | // A completer par le npa de toutes les communes | ||
| + | var test = new Array(); | ||
| + | test[0] = 3960; | ||
| + | test[1] = 1920; | ||
| + | test[2] = 1950; | ||
| + | |||
| + | for (var i=0; | ||
| + | |||
| + | $.getJSON(url + '? | ||
| + | $.each(data.results, | ||
| + | var content = "NPA: " +val.nr+ "< | ||
| + | content += " | ||
| + | var coord = new Array(); | ||
| + | $.each(val.bbox, | ||
| + | coord[i] = j; | ||
| + | }); | ||
| + | |||
| + | // Avoir la longitude et latitude de la commune | ||
| + | content += coord[0]+6400+" | ||
| + | content += coord[1]+6400; | ||
| + | content += "< | ||
| + | $('# | ||
| + | }); | ||
| + | }); | ||
| + | } | ||
| + | }); | ||
| + | </ | ||
| + | < | ||
| + | <div id=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | * Problèmes à regler centroid | ||
| + | * Manque plus que le for each sur chaque communes | ||
| ===== Team ===== | ===== Team ===== | ||
| * [[user: | * [[user: | ||
| - | * and other team members | + | * Grégoire Largey |
| + | * Anthony Bernardo | ||
| + | * Romain Paccolat | ||
| + | |||
| + | ===== Data ===== | ||
| + | |||
| + | * {{: | ||
| ===== Links ===== | ===== Links ===== | ||
| Line 19: | Line 190: | ||
| * Tools you used ... | * Tools you used ... | ||
| | | ||
| - | {{tag> | + | {{tag> |