GDAL2Tiles: MapTiles from BSB/KAP are Switched
As an example I have a BSB file from NOAA which is a navigational map. The map has a SRS of WGS84 and a Mercator projection. I initially translate the file from BSB format to GTiff format using the...
View ArticleSubsetting geotiff with python
I’m sub-setting a geotiff with the gdal python binding and numpy. Essentially, i am providing a central location (coordinates of a flux tower) from which i produce a subsetted image. I then want to...
View ArticlePython GDAL/OGR: retrieved feature is NoneType
I’m doing some scripts in Python to deal with shapefiles, and I have an issue I don’t understand. I’m looping over a shapefile, and I want to retrieve the geometry of each feature, but very often I get...
View Articleogr2ogr coverting DXF to shapefile, why am I losing part of the feature?
I’m starting to mess around with some of the GDAL toolsets, specifically the ogr2ogr. I’m working with converting a 2000 ACSII DXF file to shapefiles depending on geometry. Everything seems to work...
View Articlesetup Mapserver WMS from tile files
I’m totally new to Mapserver and I’ve been banging my head trying to figure out how to mount a WMS server that will seed images of a small geographical area to a OpenLayers HTML page. I already...
View Articlegdal_merge.py with single band raster
I’m trying to mosaic the True Marble world imagery 250M geotiffs using gdal_merge.py though one of them doesn’t have RGB bands like the rest and gdal_merge fails (same number of bands is listed as a...
View ArticleWhy is GDAL ECW compression much poorer than ECW compression from ERDAS
We use ECW compressor shipped with ERDAS Imagine to export Orthoimagery for our different departments. Because we are facing problems with the Imagine license server, we had to choose GDAL (built with...
View ArticleGDAL Utilties – Multiple Bands with Different Output Types
I have a raster dataset with 5 bands. 4 of the bands are 8bit unsigned and the 5th band is 32bit floating point. I need to clip the dataset into tiles using GDAL (I’m using gdalwarp with a cutline from...
View ArticleWhere can I find a python GDAL 1.8.0 package?
I have python 2.7.4 installed on my RHEL 5 machine along with gdal-devel-1.8.0 and gdal-1.8.0. I tried to install the GDAL 1.9.1 package available on python’s page...
View ArticleHow to check are there any OGRGeometry (polygons) within an OGRGeometry...
Please see my image: I used the below statements to get Geometry: OGRGeometry *poGeometry; poGeometry = poFeature->GetGeometryRef(); Do you know how to check whether the Polygon 1 (geometry) is...
View ArticleCan I append to different tables using ogr2ogr?
I have been through many related questions and links but I am still confused as to how/if this is achievable. So, I have defined tables in my postgis database and I would like my ogr2ogr commnand to...
View Articleprocessing MODIS hdf files with gdal
I’m trying to open an MODIS file (hdf format) with gdal in a python script under windows OS. I use the HDF4 driver, as read at http://www.gdal.org/frmt_hdf4.html. But when I run it I got this error...
View ArticleProblem installing GDAL and fiona module in arcmap10?
I am getting message like this Traceback (most recent call last): File “”, line 1, in File “C:Python26ArcGIS10.0libsite-packagesgdal.py”, line 2, in from osgeo.gdal import deprecation_warn File...
View ArticleCompletely new to GDAL: please help me with the best way to study it
This is the first time that I post here so pardon me for asking such a beginner question. I’m completely new to GDAL and I’m going to use it to work with satellite images, DEMs, etc. I have some...
View ArticleHow to install Shapely, but got stuck into Python language
I have a MAC OSX 10.7.5 and am trying to learn how to use QGIS. Following a couple of tutorials I came to know I have to install shapely. I followed the instructions by the multi-cited...
View ArticleIs there a way to tell the supported input formats of libmap.dll without the...
I have only compiled Mapscript_csharp and supporting dlls used in a .NET application – not the executables. Is there a way to tell what input / output formats are supported by these dlls?
View Articlegdal_grid unable to get nodata outside of original data area
I have a vector based csv file that I want to convert into a grid using gdal_grid, but I want to force null data values strictly around the area where there is data. I can get gdal_grid to work but it...
View ArticleHow to read csv with WKT geometry in Arcmap?
I have found several parcels I need on a county map viewer. However, the only option to download any of the data is found on a click context menu to “Copy selection as csv” which gives me this:...
View ArticleWhy does ogr2ogr SHP import error out trying to create a database?
All, Can anyone tell me what the error is with OGR2OGR when trying to import a .SHP into MSSQLSPATIAL? ERROR 1: MSSQL Spatial driver doesn't currently support database creation. Please create database...
View ArticleQGIS 1.8.0 on Linux treats NetCDF 4 as HDF5
I’ve been generating some large (28800×13920) grids of BYTE data representing the NALCMS2005 North American Land Cover dataset (original 250m projected data resampled to a WGS84 grid at 15 arc sec). I...
View Article