Ugrás a fő tartalomra

Bejegyzések

Bejegyzések megjelenítése ebből a hónapból: július, 2020

Python térkép kezelés OSM modullal

Használathoz szükséges csomagok: import networkx as nx import osmnx as ox import requests import matplotlib.cm as cm import matplotlib.colors as colors import matplotlib.pyplot as plt from descartes import PolygonPatch from shapely.geometry import Polygon , MultiPolygon % matplotlib inline ox . config ( use_cache = True , log_console = True ) ## ox.__version__ Települések úthálózat kialakulása: https://atlo.team/utak-epuletek-halozatok/ Értelmezése : https://osmnx.readthedocs.io/en/stable/osmnx.html#module-osmnx.stats Minták: https://hub.gke.mybinder.org/user/klajosw-python-kjuuo8ij/tree

Python és a gráf kezelés

Netwokx csomag használata Networkx osztályú típusú önhurkok megengedettek. Párhuzamos élek megengedettek Graph nem irányytott Igen Nem DiGraph irányított Igen Nem MultiGraph nem irányítot Igen Igen MultiDiGraph irányított Igen Igen ## Minta 1: import matplotlib.pyplot as plt import networkx as nx G = nx.Graph() G = nx.path_graph(4) print(list(G.nodes)) print(list(G.edges)) #$plt.subplot(126) nx.draw(G) print('-------1-------') G = nx.DiGraph() G = nx.path_graph(4) G =G.subgraph([0, 1, 2]) print(list(G.nodes)) print(list(G.edges)) #plt.subplot(121) nx.draw(G) #G.clear() print('-------2-------') G = nx.MultiGraph() G = nx.path_graph(4) print(list(G.nodes)) print(list(G.edges)) #plt.subplot(122) nx.draw(G) G.clear() print('-------3-------') G = nx.MultiDiGraph() G = nx.path_graph(4) print(list(G.nodes)) print(list(G.edges)) #plt.subplot(123) nx.draw(G) G.clear() g =

SqlDeveloper adatmodellezés

Az Orcale SqlDeveloper nagyon jól használható adatmodellezésre. Automatizállás és gyorsítás céljára még scriptelhető is: Indítása : Tools-> Data Modeler -> Design Rules And.. -> Transformations  Nashorn engine (értelmező használata) c:\apps\sqldeveloper192\jdk\ jre\lib\ext\nashorn.jar   Jruby   engine (értelmező használata) c:\apps\sqldeveloper192\jdk\ jre\lib\ext\jruby.jar   Jpython  engine (értelmező használata) c:\apps\sqldeveloper192\jdk\jre\lib\ext\jython-standalone-2.7.1.jar /// Minta kezdet var t_name = "table_template"; var p_name = "ctemplateID"; template = model.getTableSet().getByName( t_name); if(template!=null){     tcolumns = template.getElements();     tables = model.getTableSet().toArray();   // táblák tömbbe helyezése     for (var t = 0; t<tables.length;t++){           // tábla tömb bejárása           table = tables[t];           // compare name ignoring the case          if(!table.getName(). equalsIgnoreCase(t_name)){