automatically open shapefiles with qgis-spaces in filenames

3 messages Options
Embed this post
Permalink
Tisham Dhar

automatically open shapefiles with qgis-spaces in filenames

Reply Threaded More More options
Print post
Permalink
Hi all,

Double click opening of files is a registry entry in windows, I will
test and add it to the installer in this release as soon someone figures
out why files/install locations with spaces in them are failing in
latest build available here:
http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe


Regards,

Tishampati Dhar

 Remote Sensing Software Developer

 APOGEE IMAGING INTERNATIONAL

 Building 12B

 1 Adelaide - Lobethal Road

 Lobethal SA 5241

  Telephone: +61 - 8 - 8389 5499

 Fax: +61 - 8 - 8389 5488

 Mobile: +61 - 406114165

Email: [hidden email] mailto:[hidden email]>

Web: www.apogee.com.au <http://www.apogee.com.au>

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"The information in this e-mail may be confidential and/or commercially
privileged. It is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised. If you are not the
intendedrecipient, any disclosure, copying, distribution or action taken
or omitted to be taken in reliance on it, is prohibited and may be
unlawful."


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
[hidden email]
Sent: Thursday, 21 February 2008 8:00 AM
To: [hidden email]
Subject: Qgis-developer Digest, Vol 24, Issue 29[Scanned]

Send Qgis-developer mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Qgis-developer digest..."


Today's Topics:

   1. automatically open shapefiles with qgis (windows)
      (Micha?l Douchin)
   2. Re: automatically open shapefiles with qgis (windows)
      (John C. Tull)
   3. Re: [Qgis-user] Building image pyramids -> qgis crashing
      (Maciej Sieczka)
   4. segfault on adding the tiff layer. (Oleg Gusev)
   5. Re: segfault on adding the tiff layer. (Frank Warmerdam)
   6. Re: segfault on adding the tiff layer. (Frank Warmerdam)
   7. Re: Postgis reading error since v0.9 (kimaidou)


----------------------------------------------------------------------

Message: 1
Date: Tue, 19 Feb 2008 14:00:03 +0100
From: Micha?l Douchin <[hidden email]>
Subject: [Qgis-developer] automatically open shapefiles with qgis
        (windows)
To: qgis-developer <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi list,

I would like to know whether it is possible to double-click on a
shapefile (in MSWindows file explorer) and load it this way in qgis :
* open qgis and then load the shapefile if qgis wasn't running
* adding the shapefile to the map if qgis was running.

Any clue ?

Thanks in advance

Michael


------------------------------

Message: 2
Date: Tue, 19 Feb 2008 08:20:50 -0800
From: "John C. Tull" <[hidden email]>
Subject: Re: [Qgis-developer] automatically open shapefiles with qgis
        (windows)
To: Micha?l Douchin <[hidden email]>
Cc: qgis-developer <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Michael,

Currently, this does not work. Gary Sherman is work on a drag-and-drop  
feature that allows you to drag a shapefile onto the Qgis icon to open  
or add it to a map. I believe his work will allow double-clicking  
shapefiles as you suggest, but I will defer to him or someone else  
with first-hand knowledge of this. I do not know when his work is  
expected to make it into a release.

John

On Feb 19, 2008, at 5:00 AM, Micha?l Douchin wrote:

> Hi list,
>
> I would like to know whether it is possible to double-click on a
> shapefile (in MSWindows file explorer) and load it this way in qgis :
> * open qgis and then load the shapefile if qgis wasn't running
> * adding the shapefile to the map if qgis was running.
>
> Any clue ?
>
> Thanks in advance
>
> Michael
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer



------------------------------

Message: 3
Date: Tue, 19 Feb 2008 18:18:58 +0100
From: Maciej Sieczka <[hidden email]>
Subject: Re: [Qgis-developer] [Qgis-user] Building image pyramids ->
        qgis crashing
To: QGIS <[hidden email]>
Cc: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Oleg Gusev pisze:
> Am Samstag 16 Februar 2008 00:57:28 schrieb Mikhail Umorin:
>> ERROR 1: TIFFReadEncodedTile() failed.
> ...
>> What is the problem and/or how can I track it down?

> It's a longstanding gdal bug for
> updating compressed .tiff tiles. The only
> known workaround is to disable compression.

A way to avoid such problems in future would be to modify QGIS not to
build internal overviews (at least as an option). It could build
external overviews instead, in .aux files.

The benefits of external overviews:

1. The input raster doesn't need to be uncompressed.
2. The input data are not modified.
3. Input data remain compatible with software that don't tolerate
internal overviews.
4. Ergo - no need to duplicate data for safety/usability reasons before
building overviews.
5. Other software support external overviews that GDAL creates - eg.
ArcGIS, ERDAS Imagine.

What do developers think about it? Should I make an enhacement request?

Maciek

P.S.

For now, to create a external overwiev from CLI use eg.:
gdaladdo --config USE_RRD YES some.tif 2 4 8 16


------------------------------

Message: 4
Date: Tue, 19 Feb 2008 21:47:08 +0100
From: Oleg Gusev <[hidden email]>
Subject: [Qgis-developer] segfault on adding the tiff layer.
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain;  charset="us-ascii"


The current CVS version crashes on adding a tiff layer
with 2 stored GCPs:

-------------------------------------------------------
Warning: Creating Warped VRT.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b77be58a1f0 (LWP 5273)]
GDALGenImgProjTransform (pTransformArg=0x0, bDstToSrc=0, nPointCount=84,

padfX=0x7ffff75c36c0, padfY=0x7ffff75c28f0, padfZ=0x7ffff75c1b20,
    panSuccess=0x7ffff75c4490) at gdaltransformer.cpp:775
775             pGCPTransformArg = psInfo->pSrcGCPTransformArg;
Current language:  auto; currently c++
(gdb) bt
#0  GDALGenImgProjTransform (pTransformArg=0x0, bDstToSrc=0,
nPointCount=84,
padfX=0x7ffff75c36c0, padfY=0x7ffff75c28f0, padfZ=0x7ffff75c1b20,
    panSuccess=0x7ffff75c4490) at gdaltransformer.cpp:775
#1  0x00002b77b87b2ba7 in GDALSuggestedWarpOutput2 (hSrcDS=<value
optimized
out>, pfnTransformer=0x2b77b87b1fc0 <GDALGenImgProjTransform>,
    pTransformArg=0x0, padfGeoTransformOut=0x7ffff75c4c10,
pnPixels=0x7ffff75c4c4c, pnLines=0x7ffff75c4c48,
padfExtent=0x7ffff75c4bd0,
    nOptions=0) at gdaltransformer.cpp:270
#2  0x00002b77b87b3001 in GDALSuggestedWarpOutput (hSrcDS=0x0,
pfnTransformer=0, pTransformArg=0x28,
padfGeoTransformOut=0x7ffff75c36c0,
    pnPixels=0x7ffff75c28f0, pnLines=0x7ffff75c1b20) at
gdaltransformer.cpp:161
#3  0x00002b77b877469d in GDALAutoCreateWarpedVRT (hSrcDS=0xae9630,
pszSrcWKT=0x0, pszDstWKT=0x0, eResampleAlg=<value optimized out>,
    dfMaxError=0.20000000000000001, psOptionsIn=<value optimized out>)
at
vrtwarped.cpp:139
#4  0x00002b77b73e5348 in QgsRasterLayer::readFile ()
from /usr/local/lib/libqgis_core.so
#5  0x00002b77b73eab79 in QgsRasterLayer::QgsRasterLayer ()
from /usr/local/lib/libqgis_core.so
#6  0x00000000004dd6cc in QgisApp::addRasterLayer ()
#7  0x00000000004e3c87 in QgisApp::openLayer ()
#8  0x00000000004da708 in main ()



------------------------------

Message: 5
Date: Tue, 19 Feb 2008 16:12:48 -0500
From: Frank Warmerdam <[hidden email]>
Subject: Re: [Qgis-developer] segfault on adding the tiff layer.
To: Oleg Gusev <[hidden email]>
Cc: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Oleg Gusev wrote:
> The current CVS version crashes on adding a tiff layer
> with 2 stored GCPs:
>
> -------------------------------------------------------
> Warning: Creating Warped VRT.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x2b77be58a1f0 (LWP 5273)]
> GDALGenImgProjTransform (pTransformArg=0x0, bDstToSrc=0,
nPointCount=84,
> padfX=0x7ffff75c36c0, padfY=0x7ffff75c28f0, padfZ=0x7ffff75c1b20,
>     panSuccess=0x7ffff75c4490) at gdaltransformer.cpp:775
> 775             pGCPTransformArg = psInfo->pSrcGCPTransformArg;
> Current language:  auto; currently c++
> (gdb) bt
> #0  GDALGenImgProjTransform (pTransformArg=0x0, bDstToSrc=0,
nPointCount=84,
> padfX=0x7ffff75c36c0, padfY=0x7ffff75c28f0, padfZ=0x7ffff75c1b20,
>     panSuccess=0x7ffff75c4490) at gdaltransformer.cpp:775

Oleg,

Can you provide a tiff file demonstrating this problem?

Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
[hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,
http://osgeo.org



------------------------------

Message: 6
Date: Tue, 19 Feb 2008 21:57:04 -0500
From: Frank Warmerdam <[hidden email]>
Subject: Re: [Qgis-developer] segfault on adding the tiff layer.
To: Oleg Gusev <[hidden email]>
Cc: qgis-developer <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Oleg Gusev wrote:

> Am Dienstag 19 Februar 2008 22:12:48 schrieben Sie:
>> Can you provide a tiff file demonstrating this problem?
>>
>
> Hi Frank,
>
>  i have attached the script that creates a data file which
>  crashes qgis on my amd64 machine.
>
>  Oleg.

Oleg,

It turned out there were two bugs.

One was that the GDAL "Warped VRT" creation logic in GDAL failed to
recover gracefully if the gcp based transformer could not be created.
The other was that the qgis code I added to use this did not gracefully
recover if vrt warped creation failed.

I have have the first problem in GDAL trunk and 1.5 branch so it will be
in the 1.5.1 GDAL/OGR release.

The second I have fixed in the qgis gdalogr capi branch and this will
hopefully soon roll into trunk.

Thanks for the report.

Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
[hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,
http://osgeo.org



------------------------------

Message: 7
Date: Wed, 20 Feb 2008 02:03:22 -0800 (PST)
From: kimaidou <[hidden email]>
Subject: Re: [Qgis-developer] Postgis reading error since v0.9
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=us-ascii


I all,

It seems that qgis can't handle numeric(a,b) type.
I change the type of all my columns to "double precision", and now
everything's fine.

Kimaidou
--
View this message in context:
http://www.nabble.com/Postgis-reading-error-since-v0.9-tp15084446p155858
14.html
Sent from the qgis-developer mailing list archive at Nabble.com.



------------------------------

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer


End of Qgis-developer Digest, Vol 24, Issue 29
**********************************************


_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Leonardo Lami

Re: automatically open shapefiles with qgis-spaces in filenames

Reply Threaded More More options
Print post
Permalink
Tisham Dhar ha scritto:

> Hi all,
>
> Double click opening of files is a registry entry in windows, I will
> test and add it to the installer in this release as soon someone figures
> out why files/install locations with spaces in them are failing in
> latest build available here:
> http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>
>
>  
Hi Tisham,
a very good work!

The bug about dbf driver for GRASS vector is fixed!
For me all is ok if I open a raster in a directory with spaces in the
path...

Only a little, but quite important thing, doesn't still work.
Between the GRASS command in the C:\Programmi\QuantumGIS\grass\bin the
command r.cats is missing....

It is a little module of GRASS but very important because many other
modules depend from it.
There is a particular problem about it or it is only a forgetfulness?

Thank you very much

Regards

Leonardo



_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
Tisham Dhar

Re: automatically open shapefiles with qgis-spaces in filenames[Scanned]

Reply Threaded More More options
Print post
Permalink
In reply to this post by Tisham Dhar
Hi,

I do a standard Grass build, if r.cats is not built it would be because
something is failing on it and quite a few Grass modules fail in my
build. I will have a 2nd look.

Regards,

Tishampati Dhar

 Remote Sensing Software Developer

 APOGEE IMAGING INTERNATIONAL

 Building 12B

 1 Adelaide - Lobethal Road

 Lobethal SA 5241

  Telephone: +61 - 8 - 8389 5499

 Fax: +61 - 8 - 8389 5488

 Mobile: +61 - 406114165

Email: [hidden email] mailto:[hidden email]>

Web: www.apogee.com.au <http://www.apogee.com.au>

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"The information in this e-mail may be confidential and/or commercially
privileged. It is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised. If you are not the
intendedrecipient, any disclosure, copying, distribution or action taken
or omitted to be taken in reliance on it, is prohibited and may be
unlawful."


-----Original Message-----
From: Leonardo Lami [mailto:[hidden email]]
Sent: Tuesday, 26 February 2008 8:01 AM
To: Tisham Dhar
Cc: [hidden email]; [hidden email]
Subject: Re: [Qgis-developer] automatically open shapefiles with
qgis-spaces in filenames[Scanned]

Tisham Dhar ha scritto:
> Hi all,
>
> Double click opening of files is a registry entry in windows, I will
> test and add it to the installer in this release as soon someone
figures
> out why files/install locations with spaces in them are failing in
> latest build available here:
>
http://whatnick.dyndns.org:8080/tisham/qgis_setup0.9.2rc1_16_02_2008.exe
>
>
>  
Hi Tisham,
a very good work!

The bug about dbf driver for GRASS vector is fixed!
For me all is ok if I open a raster in a directory with spaces in the
path...

Only a little, but quite important thing, doesn't still work.
Between the GRASS command in the C:\Programmi\QuantumGIS\grass\bin the
command r.cats is missing....

It is a little module of GRASS but very important because many other
modules depend from it.
There is a particular problem about it or it is only a forgetfulness?

Thank you very much

Regards

Leonardo





_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer