Tag Info

New answers tagged

0

I experienced a similar problem. I use Windows 7. I compiled the binaries for MinGW using the steps found on this page http://trac.osgeo.org/gdal/wiki/BuildingWithMinGW (I could not find prebuilt binaries for MinGW, the links in the documentation were a dead end). The produced DLL and LIB files were linked correctly but my program still crashed. I also had ...


0

Are you sure you set the environment variables? Are the GDAL DLLs of the right bitness on your path? SysWOW64 indicates to me that you're trying to run 32-bit on a 64-bit OS. -reilly.


4

No the API is fine what is happening is Python is seeing \n and treating it as a new line which is what \n means. You will need to put a r in the front of your string. (r"c:\yourpwth")


6

I was able to replicate your problem, but found a solution. You have to remove the datasets that are used by Terrain dataset first before you can delete it. A bit weird but that seems the way it must work... So the following code completely removed the FeatureDataset containing the Terrain datasets and the FeatureClass used to construct it. The order that ...


1

Generally speaking FWTools is pretty old and it should be used with care. However, FWTools is very easy to install and therefore I keep FWTools 2.0.6 and a few more versions always with me on USB stick. FWTools includes its own python and at least those python scripts which are included in the \bin directory of FWTools should work without troubles. Open ...


0

Please do not use FWTools anymore. It is outdated. Current GDAL for Windows with python support is available via OSGEO4W (which works with Python 2.7), or from http://www.gisinternals.com/sdk/


3

I think your problem is related to the layer names of your raster stack ('rasters'). Make sure these are the same as in your .csv. You can get the layer names with names(rasters) and set them with names(rasters) <- c("band1", "band2", "band3") Hope this helps TimSalabim


1

HTTP Status Codes WMTS errors are a bit of an odd one compared to the other OGC mapping standards (WMS/WFS in particular). In the case of WMS/WFS, when there's an error, an exception is returned in a valid web-page with some variant of XML. The exception usually details what the problem is. However with WMTS the committee seems to have decided that rather ...


4

The os Python module will help you solve this problem. For example: import os, arcpy arcpy.env.overwriteOutput = True arcpy.env.workspace = "C:\\Users\\Documents\\ArcGIS\\Testing" arcpy.env.scratchWorkspace = "C:\\Users\\Documents\\ArcGIS\\Testing" space = "C:\\Users\\Documents\\ArcGIS" scratch = os.path.join(space, "Testing") workspace = ...


1

Although it is cut off in the output you posted it appears that you are trying to create a shapefile named nofptreprojected_2014121_geog.tif.shp which I suspect is not a valid shapefile name. Try replacing: arcpy.RasterToPolygon_conversion(raster, raster +".shp", "SIMPLIFY") with: arcpy.RasterToPolygon_conversion(raster, raster.replace("tif","shp"), ...


1

For your first question: memory layers are only stored by QGIS temporarily, so you should always save them as seperate shapefiles immediately if you don't want to lose any changes. Secondly, I have never seen that error (I use QGIS 2.2) but some people claim it to be a bug which has been reported: https://hub.qgis.org/issues/10747 An alternative may be to ...


0

I think you can compile the library against python27 by yourself. Here is a description about compilation and installation. If you are also comfortable with python25 or python26, there are downloadable installer available for python25/26 here. I've tested the python26 installer and it works fine for me.



Top 50 recent answers are included