GDAL polygonize lines
I have a raster file containing roads (left image). I polygonize the raster file with GDAL (see the script below). In the end I like to have vector lines. However GDAL only gives me something like this...
View ArticleOGRFeature::DestroyFeature fails
I am using OGR to read features from a shape file; when the feature is destroyed I am getting an error 0xC0000005: Access violation reading location 0xffffffffffffffff. This secton of the code looks...
View ArticleTrying to build GDAL's ECW plugin in 64 bit Linux
I’m trying to build the GDAL’s ECW plugin in Linux. I’m using the latest version of the SDK from Intergraph’s site (5.0). It fails because it tries to compile against the 32 bit version of the library...
View ArticleCan GDAL Retile run multi-threaded?
gdal_retile is currently using only one CPU of the available eight and it is taking a while (48 hours already) to retile 5TB of data.
View Articlewhy readOGR() is not reading projection information from .spj – r
0 down vote favorite I successfully import a polygon shapefile with readOGR, however the information in the .prj file is not being imported. test class : SpatialPolygonsDataFrame nfeatures : 19407...
View ArticleHow to define a BoundingBox when using GDAL's WCS Driver (Java API)?
Is it possible to define a bounding box when requesting a coverage subset using the GDAL WCS Driver, accessed using GDAL’s Java API? I’ve read several mailing lists and related posts on...
View ArticleHow do I iterate through every cell in a continuous raster?
See this link for more details. The Problem: I want to loop through a continuous raster (one that has no attribute table), cell by cell, and get the value of the cell. I want to take those values and...
View ArticleUninstall ERDAS ECW/JP2 SDK Version 5.0 (Ubuntu)
I am using Ubuntu Linux as main OS when it comes to geoprocessing but I am not yet an expert using it. I recently needed QGIS to have ECW support, so I followed the instructions of Luke in the...
View Articlegdalinfo image.tif>stats.txt – returns empty text file (Windows 7 64 bit)
I am trying to output the gdalinfo image statistics results into a text file with the following command: gdalinfo image.tif>stats.txt The stats.txt file gets created, however it is empty. It does...
View ArticleHow do I convert a VMAP to a shapefile using GDAL?
This is my first time trying to convert a VMAP to a shapefile and the examples online aren’t as straightforward to me. Any guidance is appreciated.
View ArticleReproject MODIS level 3 chlorophyll data using gdal
I am trying to reproject MODIS Level 3 chlorophyll data (for instance, this file) using gdal in R. I used gdal_translate and gdalwarp functions. There was no crs information associated with...
View ArticleRead large raster into lat/lon value pair to csv file using python and/or gdal?
I have rasters for all of the states in US and they are in 10m resolution. So they can be very large, containing a large number of pixels if you think of TX or AK. I want to create a csv file with each...
View ArticleUse GDAL command line to copy projections
I have two images, a georeferenced Tiff and a second Tiff without a reference. The second image is a copy of the first, but it lost its reference. Now, I want to copy the reference from the first Tiff...
View ArticleAdding a Vertex To Exisiting Feature(linear) Using OGR Python
I am working on a project that involves finding the intersection of linears in a shapefile, if that vertex(the found intersection) doesn’t already exist for each(or one) of the features, then that...
View Articlegdal2Tiles output differs from MapTiler
I’m in need to process a large batch of Landsat images with MapTiler and since the version I’m using (1.0 Beta 2) does not support multiple input files, I created a simple python script that calls...
View Articlegdal_grid with CSV file and VRT "No point geometry found on layer"
Given the following .vrt file which I manually created: <OGRVRTDataSource> <OGRVRTLayer name="DGM5_BE"> <SrcDataSource>DGM5_BE.txt</SrcDataSource>...
View ArticleCreating records in output shapefile using Python
I have a list (output from a previous loop) containing attributes from an input shapefile. What I am stuck with is inputting those attributes to a new shapefile. I have plotted the point data using...
View ArticleMySQL+GDal+MapServer+OpenLayers WebMercator problem
I have a problem/question what is the most efficiant way to go from WGS84 (epsg:4326) to webmercator. Outline of the structure right now: MySQL Database: with point Latitude/Lontiude Data [~200 million...
View ArticleHow can you calculate the union/merge two polygons in ogr2ogr?
I want to calculate the union/merge two overlapping polygons using ogr2ogr (as I have 300+ to do). I want the output to be the same as you would get if you used the ‘Merge shapefiles to one’ command in...
View Articleraster2pgsql does nothing
I try to load rasters through raster2pgsql. I try to call it through pgAdmin command line, but when I call any raster2pgsql command (even raster2pgsql -G), it does nothing, I just get another line to...
View Article