Follow the NOOBS Setup instructions.
Update Raspbian from its Debian wheezy base to Debian jessie:
sudo vi /etc/apt/sources.list # or use your favourite editor
change all references of wheezy to jessie
sudo apt-get update
sudo apt-get upgrade # this will take a long time, with occasional user prompts
sudo apt-get dist-...
Blender has a Python API. Therefore, I use Python in Blender and import the GDAL libraries and construct a Blender-native mesh directly from the GIS data. The only thing you need to be careful of is that the version of GDAL you have matches the version of Python in the Blender release you are using.
If you don't want to write your own script ...
I use following intro for stand-alone applications:
from qgis.core import *
from PyQt4.QtGui import *
# app specific code
if __name__ == '...
Go to the "Settings -> Options -> Data Sources" menu,
and look for the checkbox "Ignore shapefile encoding declaration",
when you uncheck it, the default encoding (for shapefiles) will be 'set to' UTF8.
This will actually prevent ogr's 'on the fly' conversion of shapefiles encoding.
See this thread for further details.
I always keep a Portable OpenOffice Calc (or Libre Office Calc) for editing DBF files. Here's a link (I haven't tried):
It is possible to directly edit a dbf file using this approach - even if the GIS file is open in another program (such as ArcGIS). To refresh the table in GIS Software, just ...
You can do that by first creating an empty geometry and "unioning" it with the polygons of the shapefile:
from osgeo import ogr
test = ogr.Open('polygons.shp')
layer = test.GetLayer()
3 # -> polygons
# empty geometry
union_poly = ogr.Geometry(ogr.wkbPolygon)
# make the union of polygons
for feature in layer:
Starting with the release of QGIS 3.14 there is a real QGIS command line mode to use QGIS Processing Algorithms (including GDAL, SAGA and GRASS). It's called qgis_process. See the change log and search for the new feature: New standalone console tool for running processing algorithms.
According to the manpage http://trac.osgeo.org/gdal/wiki/SOSI you have to compile the SOSI support yourself.
This is dependent on the operating system (which you have not mentioned) and documented on the page.
If you are on a mac, see also Converting SOSI to ESRI Shape
This page (also available in English) has a link to compiled binaries for Linux and ...
Assuming you really do need a JPEG output file, not a GeoTIFF with internal JPEG compression...
The JPEG driver supports the CreateCopy but not the Create method. It's not mentioned specifically in the gdal raster formats list (and probably should be). If you check the command line documentation using gdalinfo you'll see this.
gdalinfo --format JPEG
I have found that NVIZ (which is a part of the GRASS package) is a useful tool for visualizing DEM data as a 3D model.
In order to install the GRASS plugin (if you already have QGIS installed), just navigate to Plugins --> Manage and Install Plugins --> Get More and install GRASS. Make sure it is checked in your Manage and Install Plugins list!
Once you ...
gdal_merge.py -o output.tif `ls *.tif`
The back ticks mean execute whatever is inside the back ticks before the main command, so this will find all tif files in current directory, which will then be used as the input to gdal_merge.py.
Instead of backticks, you can also use the $(command) syntax, ie,
gdal_merge.py -o output.tif $(ls *.tif)
is equivalent ...
GEOS is the software you get from https://libgeos.org/ (which has the title you mentioned, so it is likely what you meant).
There are C and C++ interfaces as part of a standard build. libgeos_c means the C interface. On Ubuntu (and probably Debian) it is the
libgeos-c1 Geometry engine for Geographic Information Systems - C Library
package. Other ...
This seems to be a known system/software bug:
and from the gpsd manpage http://www.catb.org/gpsd/gpsd.html:
There are exactly two circumstances under which ...
I just went through solving this problem.
The post by AndreJ is accurate and helped to start my investigation as to why the system clock was so far off.
In my case, I'm connecting a GPS receiver to a Raspberry Pi 2 running Ubuntu 14.04. Raspberry Pis don't have hardware clocks and so early in the boot process, before ntp can set the clock, the time/date are ...
You could create a custom script in your model to clear the '/tmp' folder at the end of each run. There's numerous ways to delete files but I like to use shutil.rmtree which deletes all files/folders in a specified directory.
To do this, go to Processing Toolbox > Scripts > Tools > Create new script and copy the following (adjust the path):
It appears you are dealing with an ArcInfo Exchange file - check this out How To: Import an ArcInfo interchange file (E00) in ArcGIS. Your trying to do this using R.
If you wanted to use a command-line approach to unpack e00 you could use E00compr - A Library to Read/Write Compressed E00 Files with is open source.
Using the 'e00conv' Conversion Program
You could try looking int this OS option, Skeletron, it:
generalizes collections of lines to a specific spherical mercator
zoom level and pixel precision, using a polygon buffer and voronoi diagram
It is based off of a 1996 paper by Alnoor Ladak and Roberto B. Martinez, "Automated
Derivation of High Accuracy Road Centrelines Thiessen Polygons ...
SPDlib provides a very comprehensive line tools for processing Laser Scanning data (both Terrestrial and Airborne data). It is available for Linux and can be easily installed using Anaconda. SPDlib also has a viewer called that can be used to visualise point clouds (see screenshot). There is a number of very useful tutorials on available on the wiki and on ...
My guess is that the gdal-dev version you have is outdated and that the version of python binding you got in pip is not compatible any more. I accidentally uninstalled python-gdal from RHEL, and unsuccessfully tried to install gdal with pip today. The first error I got was
extensions/gdal_wrap.cpp:3373: error: ‘CPLGetErrorHandlerUserData’ was not declared ...
I recommend never editing a shapefile's dbf outside a GIS software, you could risk damaging your GIS file (for example if you delete a line in the dbf).
Keep a column with a unique id number in the shapefile and export all the other columns plus a copy of the one with the ID in a table format like dbf, csv, or others QGIS can read. You could even put the ...
One thing that tripped me up when reading SOSI files using GDAL:
You need to make sure you have write access to the directories containing the SOSI files. The library creates a temp file in the same directory as the file you are reading from. This is explained in a NOTE on the page http://trac.osgeo.org/gdal/wiki/SOSI
Also, make sure the environment ...
The thing here is that you have given the example of amenity = school tag, but you are actually querying building = school. It is normal for buildings inside school to be tagged as building = yes, hence the query will not return them.
In the second query, the format of bbox-query should be like below.
<bbox-query e="7.25" n="50.8" s="50.7" w="7.1"/>
GeoServer does not do anything to control the permissions of the directories, so it gets the default permissions the OS would assign.
I believe you have to change the umask for the user that's running the GeoServer process: http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html
I did a little more digging and found the answer to my question:
instead of using os.system, the correct syntax for storing the result in a variable is:
result = os.popen('gdallocationinfo -valonly -wgs84 %s %s' % (lyr, loc)).read()
If you are able to use ogr2ogr it will ignore create options when appending, and ignore append options when creating.
for shp in $(ls *.shp);
ogr2ogr -f "PostgreSQL" PG:dbname=databasename -append -a_srs 27700 -nln schema.table_name $shp
Or in windows in the command line:
for /R %f in (*.shp) do ogr2ogr -f "PostgreSQL" PG:dbname=databasename -...
I finally find the solution :
First, to add an extra style additionnal to the defaut style you have to use <styles> (and not <style>):
curl -u admin:pass -XPUT -H 'Content-type: text/xml' -d '<layer><styles><name>sld_name</name><workspace>workspace_name</workspace></styles></layer>' http://...