|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Python Rasterstats||446||33||33||24 days ago||33||October 29, 2021||27||bsd-3-clause||Python|
|Summary statistics of geospatial raster datasets based on vector geometries.|
|Essentialmath||259||4 years ago||7||other||C|
|Example code and libraries for the book "Essential Mathematics for Games and Interactive Applications."|
|Georasters||192||5||2||2 months ago||49||January 13, 2023||21||gpl-3.0||Python|
|GeoRasters is a Python module that provides a fast and flexible tool to work with GIS raster files.|
|Make Surface||86||5 years ago||26||February 27, 2015||13||mit||Python|
|Vector surfaces creation routines|
|Vapour||72||1||4 days ago||13||August 25, 2021||40||C++|
|GDAL API package for R|
|Pyspatial||61||4 years ago||9||September 10, 2017||5||other||Python|
|Paraview Plugins||47||19 days ago||1||mit||Python|
|Buzzard||30||8 months ago||16||October 26, 2020||1||apache-2.0||Python|
|Advanced raster and geometry manipulations|
|Raster_geometry||22||3||2 months ago||7||April 11, 2020||3||gpl-3.0||Python|
|Create/manipulate N-dim raster geometric shapes.|
|Starspan||20||10 years ago||5||other||C++|
|Fast algorithms for raster pixel extraction from geometry features|
Quickie (PHP and ASP.NET) web viewer for viewing PostGIS geometry and rasters
This is a simple PostGIS query tool for rendering PostGIS raster and geometry outputs.
It can only display one image at a time and is currently hard-coded to output PNG using PostGIS raster image functions. Feel free to extend it for your needs.
##PREREQUISITES## ASP.NET 2.0+ (this will work just fine with the light-weight web server packaged with VS or VS Web Express) or PHP 5+ It hasn't been tested on Mono, but should work fine. We have a GetRasterVB.ashx for VB.NET lovers like us and GetRasterCS.ashx for C# (those other people :) ) and also GetRaster.php. The application is defaulted to use the GetRaster.php handler, but if you prefer ASP.NET just change the line in postgis_viewer.htm:
var postgis_handler = "GetRaster.php";
var postgis_handler = "GetRasterCS.ashx";
var postgis_handler = "GetRasterVB.ashx";
You need PostGIS 2.0 or later built with raster support.
Change the web.config to the credentials of your database. If you are using PHP then change the config.inc.php to credentials of your databse Please note that this tool since it allows some ad-hoc queries, if your app is easily accessible on the web, you'll want to use an account with low level permissions. It just needs access to the function postgis_viewer_image. And that function needs to be created under an account that has access to the tables and all the PostGIS and raster functions you want the user to have access to.
run the toraster.sql function in your database to install the helper stored function. Not the owner of the function needs to have access to tables, functions etc you want the user to have access to.
Make sure the account you specified in web.config has rights to execute the function To verify it works, try this function in psql or PgAdmin logged in as the account you have in your web.config (making sure the account you specified in web.config has rights to execute the function SELECT postgis_viewer_image('ST_Point(10,20)', 'geometry', ARRAY[100,0,0]);
Copy the files to your web server. Open up: http://yourserver/postgis_webviewer/postgis_viewer.htm
in a browser.
The viewer currently only shows one geometry or raster at a time, so you need to type an SQL expression that resolves to one geometry or one raster. So for example if you are outputing from a table, you need to have just one column and wrap the query around for example: (SELECT geom FROM sometable WHERE town='Boston')
Some more examples: For geometry: Toggle the spatial type drop down to "Geometry": Choose a color you want to output the query (the color picker is only relevant for Geometry) Type in an sql expression that resolves to a geometry.
-- a more complex geometry example --
ST_Polygon( (SELECT ST_SetBandNoDataValue(ST_Band(rast,1),255) FROM ch13.pele_chunked WHERE rid = 1) )
ST_AsRaster( ST_Buffer( ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), 10,'join=bevel'), 200,200,ARRAY['8BUI', '8BUI', '8BUI'], ARRAY[118,154,118], ARRAY[0,0,0])
(SELECT rast FROM ch13.pele_chunked ORDER BY rid LIMIT 1 OFFSET 4)
--raw mode allows you to completely control the rendering process -- assumed to output an image
SELECT ST_AsJPEG(rast, ARRAY[3,2,1]) FROM ch13.pele limit 1;