Tag Info

Hot answers tagged

1

Looking at GDAL autotests, I see only the refresh token is defined. As far as I understand the code, the access token will be automatically got from the refresh token (since the access token is apparently renewed from the refresh token, so it is not practical setting its value directly). So try to undefine the access token ("GFT:" as connection string), and ...


1

As described in https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html the function is used as ST_Line_Interpolate_Point( line Curve , fraction Double precision ) : Point An example that can be tested with SQL command line for example with spatialite-gui. Fraction=0.5 finds the midpoint. SELECT ST_AsText( ST_Line_Interpolate_Point ...


1

SQL query is wrong, it should be: result = dataSource.ExecuteSQL("select * from roi_classMacro WHERE C_info = 'g19' or C_info = 'g22' or C_info = 'g23'") For attribute filter try: mylayer.SetAttributeFilter("C_info = 'g19' or C_info = 'g22' or C_info = 'g23'")


1

I use fiona and shapely for that kind of tasks: import fiona from shapely.geometry import shape with fiona.open(r'd:\Projects\_00_Data\_USstates\fe_2007_us_state00.shp', 'r') as features: for i, feat in enumerate(features): geom = shape(feat['geometry']) name = feat['properties']['NAME00'] print ','.join((name,) + tuple([str(i) ...



Only top voted, non community-wiki answers of a minimum length are eligible