Quantcast
Channel: Ecostudies » SQLite
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Finding and removing carriage returns in your SQLite table

The problem with copy data from e.g., an excel or calc sheet into an SQLite database (or any database I reckon) is that the data you copy might include an carriage return. I found this out the hard way...

View Article



Image may be NSFW.
Clik here to view.

New spatialite plugin for QGIS

For some time now it is possible to load SpatiaLite data layers in QGIS. It is read only though, any changes will need to be saved as shapefile. There is a Spatialite manager plugin, which offers an...

View Article

Image may be NSFW.
Clik here to view.

Select random sample from SQLite table

I came across this post by underdark about how to select a random sample from a table in PostgreSQL. You can achieve the same (selecting 1000 random features from a table) in SQLite using something...

View Article

Image may be NSFW.
Clik here to view.

SQLiteMap

Looks interesting, a R package that provides bindings to Spatialite functionalities. Through this bindings one can carry out the spatial functions available in Spatialite from within R using simple SQL...

View Article

Image may be NSFW.
Clik here to view.

Concatenate in SQLite

I wrote before on using concatenate in OpenOffice / LibreOffice and how this alternatively can be done in R using the paste function. You can do the same in SQLite using a query too. For example if you...

View Article


Image may be NSFW.
Clik here to view.

Split strings in SQLite

I am just back from vegetation survey in Kenya and Uganda. Before starting with the analysis, I will have to go through the more boring data entry and organization. I will use a Spatialite database to...

View Article

Image may be NSFW.
Clik here to view.

Extract X and Y coordinates from a spatial table in Spatialite

A quick note on adding two columns with X and Y values in a vector layer in spatialite. Spatialite stores the information about the geometry in binary format in the ‘Geometry’ field. You can use the...

View Article

Image may be NSFW.
Clik here to view.

Find and select duplicate values in your vector attribute table

Suppose you have a vector layer in your GRASS GIS database and you want to find all duplicate values in one of the columns of the attribute table of that layer? If you are using SQLite or PostgreSQL as...

View Article


Image may be NSFW.
Clik here to view.

Reprojecting your layer in Spatialite

I have a vector layer ‘nursery data’ in a Spatialite database. The coordinate reference system of the layer is WGS84 geodetic (EPSG 4326). What if I need to reproject the layer in WGS84/UTM37N (EPSG...

View Article


Image may be NSFW.
Clik here to view.

Spatialite 4.0 is out

The release of Spatialite 4.0 was just announced on the Spatialite user group. You can download it from the Spatialite website. And while you are on the website, check out the page about switching to...

View Article

Image may be NSFW.
Clik here to view.

Sum up values of neighbouring polygons – a GRASS GIS approach

How to sum up values of neighbouring polygons in QGIS? This question was asked on gis.stackexchange, with two interesting answers. One answer explains how to use Spatialite and SQL to achieve this. The...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images