Quantcast
Channel: Question and Answer » osgeo4w
Viewing all 11 articles
Browse latest View live

How to install Apache Web Server from OSGeo4W?

$
0
0

Good morning, I’m trying to create a QGIS web client on my Windows 8 But with OSGEO4W not appear the option to make Apache installs Web Server, as of this writing in several tutorials and documentations.

A print screen of my Windows 8

enter image description here

Should this well, this print belongs to a tutorial found on the web

enter image description here


Export Raster Attribute Table using Open Source software

$
0
0

I’ve got 120 or so geotiff files that I’d like to build and export the raster attribute table to something a little more friendly (e.g. csv).

I’m curious if there is an open source way to do this. The files are rather large 36001 X 36001 pixels so brute force solutions may be out. Ideally, I’m looking to do this in gdal commandline/OSGEO4w or Qgis. Grass in a pinch.

Thanks!

QGIS installation from OSGeoW4: entry point not found in qgis_core.dll

$
0
0

I have installed QGIS through OSGeo4W installation. My operation system is windows 7 64x. I try to start the program QGIS Desktop from start menu this error:
enter image description here

Do I need to do something? Installation was successful and re installing doesn’t change anything.

Using gdal-java of OSGeo4W

$
0
0

I would like to use gdal_polygonize and gdalinfo in java.
This site says: “Note that OSGeo4W includes a gdal-java package and a Java runtime making it fairly easily to build local Java applications using GDAL.” But how?

Is it possible to host QGIS web application in Oracle weblogic server

$
0
0

I am new to QGIS and I want to know whether it possible to host QGIS through oracle web logic server instead of apache web server.

Qgis 2.8, gdal python scripts gives error at end of process

$
0
0

I am using Qgis 2.8.1 64-bit (Standalone installer) which also packages a number or other applications, like OSGeo4W Shell, Saga GIS et.c.

In the OSGeo4W Shell I am encountering a problem with some gdal/ogr python scripts that seem identical to what is described here in another question: link

The problem seems to be restricted to gdal2tiles and gdal_calc, I have done some quick testing and the problem doesn’t seem to exist for other scripts.

What causes this error and how can it be resolved?

System information:
Path in OSGeo4W Shell:
C:PROGRA~1QGISWI~1appsPython27Scripts;C:PROGRA~1QGISWI~1bin;C:Windowssystem32;C:Windows;C:WindowsWBem;
C:PROGRA~1QGISWI~1appsmsysbin

pythonhome:
C:PROGRA~1QGISWI~1appsPython27

gdal_data:
C:PROGRA~1QGISWI~1sharegdal

OSGeo4W and GDAL – gdal2tiles.py error

$
0
0

Wondering why gdal2tiles is throwing errors, I’ve added the gdaldata and gdalplugins environmental variables and my python is at Python27/ArcGIS10.3/, and am wondering if that is messing with the OSGeo4W python located in the C:OSGeo4Wbin folder, or do I need to direct my environment variables every time I want to use OSGeo4W vs. ArcGIS python versions? Or is it working and the error I’m seeing below has to do with something else totally seperate?

This is really confusing to me, thanks! –and the stackexchange tag should be “gdal2tiles.py” there is only “gdal2tile” available…I don’t have enough cred to add one

OSGEO4W home is C:OSGeo4W

                   -={ OSGeo4W Shell Commands }=-

       bmp2tiff             listgeo              raw2tiff
       cs2cs                nad2bin              rgb2ycbcr
       curl                 ncdump               rpcgen
       dllupdate            ncgen                rpcinfo
       fax2ps               nearblack            testepsg
       fax2tiff             nircmd               textreplace
       gdaladdo             nircmdc              thumbnail
       gdalbuildvrt         ogdi_import          tiff2bw
       gdaldem              ogdi_info            tiff2pdf
       gdalenhance          ogr2ogr              tiff2ps
       gdalinfo             ogrinfo              tiff2rgba
       gdallocationinfo     ogrlineref           tiffcmp
       gdalmanage           ogrtindex            tiffcp
       gdalserver           opj_compress         tiffcrop
       gdalsrsinfo          opj_decompress       tiffdither
       gdaltindex           opj_dump             tiffdump
       gdaltransform        osgeo4w-setup-work   tiffinfo
       gdalwarp             osgeo4w-setup        tiffmedian
       gdal_contour         pal2rgb              tiffset
       gdal_grid            portmap              tiffsplit
       gdal_rasterize       ppm2tiff             w9xpopen
       gdal_translate       proj                 xmlcatalog
       geod                 psql                 xmllint
       geotifcp             python               xxmklink
       gif2tiff             pythonw
       gltpd                ras2tiff


       epsg_tr           gdalmove          make-bat-for-py
       esri2wkt          gdal_auth         mkgraticule
       gcps2vec          gdal_calc         o-help
       gcps2wld          gdal_edit         o4w_env
       gdal2tiles        gdal_fillnodata   pct2rgb
       gdal2xyz          gdal_merge        rgb2pct
       gdalchksum        gdal_polygonize   setup-test
       gdalcompare       gdal_proximity    setup
       gdalident         gdal_retile
       gdalimport        gdal_sieve

GDAL 1.11.2, released 2015/02/10

C:UsersmaugustDesktop>gdal2tiles.py C:UsersmaugustDesktopexample_tifsPie
rce_2010_84.tif C:UsersmaugustDesktopexample_tifstilegdal
Traceback (most recent call last):
  File "C:OSGeo4Wbingdal2tiles.py", line 2278, in <module>
    gdal2tiles.process()
  File "C:OSGeo4Wbingdal2tiles.py", line 482, in process
    self.open_input()
  File "C:OSGeo4Wbingdal2tiles.py", line 856, in open_input
    self.out_ds.SetMetadataItem('NODATA_VALUES','%i %i %i' % (self.in_nodata[0],
self.in_nodata[1],self.in_nodata[2]))
IndexError: list index out of range

C:UsersmaugustDesktop>

What is the easiest way to install a really old Nightly Build of QGIS Master (in Windows)?

$
0
0

I would like to test which nightly build between QGIS 1.8 and 2.0 caused a certain change in QGIS behavior. I know that there are very convenient exe files of weekly builds available on http://qgis.org/downloads/weekly/ . Yet, their temporal scope is limited. They do not go back in time enough for my purposes.

The archive at http://download2.osgeo.org/osgeo4w/release/qgis/qgis-dev/ goes back to the very beginnings, but offers only *.tar.bz2 format. Is it possible to use them with osgeo4W “local directory” installation? I have tried with the current osgeo4W version, but the files I downloaded to the local qgis_dev subdirectory were not recognized (osgeo4w continues to offer only the most recent and the previous versions for install). I have downloaded also an old 1.8 osgeo4w version but it does not have the GUI and I do not know what to write in the command line in order to install 1.9 nightly builds.

Well, I really hope there is something more convenient than to compile the source code “manually” according to the methods described on github.


Gdal_calc works but I get a pyhon error at the end of each process

$
0
0

I have a problem while using gdal_calc by a .bat file.
Here is the code :

call “C:OSGeo4w64bino4w_env.bat”
gdal_calc -A”D:tuilage_script_1tuilagendvi4_810000_6370000_820000_6360000_ndvi.tif” –calc=”A” –outfile=”D:tuilage_script_1tuilagendvitest_gdal_cal3.tif”

It first loads OSGEO environment then it copys the input raster “A” in an output raster “outfile”. The operation is done, but I get the following error messsage : “Python has stopped working”, see picture enclosed

Screenshot

I already read this topic :
GDAL_CALC works but I get a python error at the end of each process that prevents automation

But the solution doesn’t fit with the aim of my batch file that must be automated to be runned from an office basic script for more than 100 operations.

I am using 1.11.2 Gdal version with 2.8 Qgis Wien, 2.7 Python version on Windows-7.

I would be very grateful for any idea/suggestion about this.
Thanks!

Enable ECW support in QGIS Server on Windows

$
0
0

I’d like to enable the ECW support on a QGIS Server installed on a Windows computer. I know it’s “manualy” deactivated in source code and it seems both Desktop and Server ECW licence can be used on the same machine.

Is there any process to follow to get it work? It can go through paying the licence to Intergraph (better if it can be avoided)

Thank you by advance for your answers

OSGeo4W GDAL Polygonize Batch Convert?

$
0
0

I’m trying to use GDAL polygonize to run a batch convert but I cannot for the life of my figure out a way to get it to read a text file as input that contains all of the commands. Do any of you know the correct command to run this conversion in one step so I don’t have to do it many times over?

Here’s an example of a single line of my input txt file:

gdal_polygonize X:Source-ImagerySatelliteWaterMaskCollection_52000ALLMOD44W_Water_2000_ML1920.tifMOD44W_Water_2000_ML1920.tif -f "ESRI Shapefile" X:Source-ImagerySatelliteWaterMaskCollection_52000ALLMOD44W_Water_2000_ML1920.tifMOD44W_Water_2000_ML1920.shp 

The txt file contains 176 lines to convert.

Thanks in advance!
-Matt

Viewing all 11 articles
Browse latest View live