[QGIS-ZA-user] SOLVED: Re: Field calculator issue - QGIS version,3.10.1-A Coruña on Win10 via OSGEO4W64

Neil Falconer nfalconersa at gmail.com
Fri May 8 08:53:08 PDT 2020


Yup, I agree but see you found the issue. Cheers Neil

On Fri, 8 May 2020, 16:51 Zoltan Szecsei via qgis-za-user, <
qgis-za-user at lists.osgeo.org> wrote:

> Hi Neil,
> Nope - an integer should be able to be cast as 'double'
>
> Thanks for the interest, though.
> Regards,
> Zoltan
>
> On 2020/05/08 17:37, Neil Falconer via qgis-za-user wrote:
>
> Hi Zoltan, Seems crazy but could it possibly be because the 17 is an
> integer...if it was 17.0 it would be recognised as a Double? Regards Neil
>
> On Fri, 8 May 2020, 16:04 Zoltan Szecsei via qgis-za-user, <
> qgis-za-user at lists.osgeo.org> wrote:
>
>> Hiya,
>> Blooming decimal point/comma issue :-(
>>
>> Thanks anyway,
>> Zoltan
>>
>> On 2020/05/08 16:26, Zoltan Szecsei via qgis-za-user wrote:
>>
>> Hi,
>> Can anyone shed light on why I get:  Eval Error: Cannot convert '[LonM]'
>> to double
>> from this expression:
>>
>> if( "LonD"  IS 'Longitude' , 0.0,  "LonD" + (  "LonM"  / 60.0 ))
>>
>> I've pulled a CSV file into 'Layer' and failed to generate Point using
>> Toolbox->Geometry by Expression, so I am now trying to create decimal Deg
>> columns (virtual).
>> The first few lines in the CSV are:
>>
>> Num,LonD,LonM,LonS,DirE,LatD,LatM,LatS,DirN
>> A1,Longitude,Latitude,,,,
>> 1,17,25.00,0.0,E,23,7.53,0.0,N
>> 2,17,25.10,0.0,E,23,7.52,0.0,N
>>
>> Thanks and regards,
>> Zoltan
>>
>> --
>>
>> ===============================================
>> Zoltan Szecsei GPrGISc 0031
>> Geograph (Pty) Ltd.
>> GIS and Photogrammetric Services
>>
>> P.O. Box 7, Muizenberg 7950, South Africa.
>>
>> Mobile: +27-83-6004028  (Best option: WhatsApp)
>> India:	+91 83418 01616
>> Qatar:  +974 5083 2722   www.geograph.co.za
>> ===============================================
>>
>>
>> _______________________________________________
>> qgis-za-user mailing listqgis-za-user at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/qgis-za-user
>>
>>
>> --
>>
>> ===============================================
>> Zoltan Szecsei GPrGISc 0031
>> Geograph (Pty) Ltd.
>> GIS and Photogrammetric Services
>>
>> P.O. Box 7, Muizenberg 7950, South Africa.
>>
>> Mobile: +27-83-6004028  (Best option: WhatsApp)
>> India:	+91 83418 01616
>> Qatar:  +974 5083 2722   www.geograph.co.za
>> ===============================================
>>
>> _______________________________________________
>> qgis-za-user mailing list
>> qgis-za-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-za-user
>>
>
> _______________________________________________
> qgis-za-user mailing listqgis-za-user at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/qgis-za-user
>
>
> --
>
> ===============================================
> Zoltan Szecsei GPrGISc 0031
> Geograph (Pty) Ltd.
> GIS and Photogrammetric Services
>
> P.O. Box 7, Muizenberg 7950, South Africa.
>
> Mobile: +27-83-6004028  (Best option: WhatsApp)
> India:	+91 83418 01616
> Qatar:  +974 5083 2722   www.geograph.co.za
> ===============================================
>
> _______________________________________________
> qgis-za-user mailing list
> qgis-za-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-za-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-za-user/attachments/20200508/1e7ef1e6/attachment.html>


More information about the qgis-za-user mailing list