This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package fr.geocite.myprojet | |
| import javafx.event.ActionEvent | |
| import javafx.event.EventHandler | |
| import javafx.scene.{control, Group, Scene} | |
| import javafx.scene.control._ | |
| import javafx.scene.effect.Lighting | |
| import javafx.scene.paint.Color | |
| import javafx.scene.text.Text | |
| import javafx.stage.Stage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package fr.geocite.myprojet | |
| import javafx.event.ActionEvent | |
| import javafx.event.EventHandler | |
| import javafx.scene.Group | |
| import javafx.scene.Scene | |
| import javafx.scene.control._ | |
| import javafx.scene.effect.Lighting | |
| import javafx.scene.paint.Color | |
| import javafx.scene.text.Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| #gdalwarp -q -cutline "/media/robin/DATA/Donnees_M2/monPolygoneLAEA.shp" -crop_to_cutline -dstalpha -of GTiff "/media/robin/DATA/Donnees_M2/popu01clc00v5/popgrid.tif" "/media/robin/DATA/Donnees_M2/popu01clc00v5/popgridCut.tif" | |
| # This command works | |
| polyPath = "/media/robin/DATA/Donnees_M2/monPolygoneLAEA.shp" | |
| rasterPath = "/media/robin/DATA/Donnees_M2/popu01clc00v5/popgrid.tif" | |
| outRasterPath = "/media/robin/DATA/Donnees_M2/popu01clc00v5/popgridCut.tif" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from osgeo import ogr | |
| roadShpPath = "D:\\DonneesM2\\UMZ_2000_Cut.shp" | |
| fieldToUse = 'Type' | |
| driver = ogr.GetDriverByName("ESRI Shapefile") | |
| datasource = driver.Open(roadShpPath) | |
| layer = datasource.GetLayer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Tue Nov 13 16:30:23 2012 | |
| @author: robin | |
| """ | |
| from qgis.core import * | |
| from qgis.analysis import * | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Thu Jul 19 20:58:18 2012 | |
| @creation : 2012-07-19 | |
| @author : Robin Cura | |
| @email : robin.cura@gmail.com | |
| """ | |
| # Chemin vers le CSV à traiter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def selfIntersection(x, y): | |
| """ | |
| ATTENTION A NE PAS LANCER LE TEST SUR DES GEOMETRIES INFERIEUR A TROIS COORDONNEES DISTINCTES | |
| """ | |
| print x, y | |
| for i in xrange(len(x)-1): | |
| xSeg1 = [x[i], x[i+1]] | |
| ySeg1 = [y[i], y[i+1]] | |
| seg1 = guilabs.createGeometry(2, xSeg1, ySeg1) | |
| for j in xrange(i + 2, len(x)-3): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function concatenateTables(table1, table2, columnsNameList) | |
| { | |
| gNewTable = new google.visualization.DataTable(); | |
| //alert(columnsNameList); | |
| for (i in columnsNameList) | |
| { | |
| gNewTable.addColumn('string', columnsNameList[i], columnsNameList[i]); | |
| }; | |
| // alert(gNewTable.toJSON()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <html> | |
| <script type="text/javascript"> | |
| var testvar = 'JIHIBNBUI'; | |
| function test() | |
| { | |
| document.getElementById('result').innerHTML = testvar; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <html> | |
| <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
| <script type="text/javascript"> | |
| var gAxesTable = null ; | |
| var gMembersTable = null ; | |
| google.load("visualization", "1"); | |
| // Set callback to run when API is loaded |