Transformation & labeling bug

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Transformation & labeling bug

Anita Graser
Hi,

I get nasty forward transformation errors with today's nightly when using  
a predefined road style and labels:

forward transform of
(12557.230023, 71897.228375)
PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=aea +lat_1=55  
+lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft  
+no_defs
Error: latitude or longitude exceeded limits

(afterwards QGIS hangs)

Data is Natural Earth's road shapefile in WGS84.  
(http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip)

Project CRS is Alaska NAD (EPSG:2964).

Should I file a bug report?

Best wishes,
Anita
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Transformation & labeling bug

Andre Joost
Am 27.04.2013 16:14, schrieb Anita Graser:

> Hi,
>
> I get nasty forward transformation errors with today's nightly when
> using a predefined road style and labels:
>
> forward transform of
> (12557.230023, 71897.228375)
> PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=aea +lat_1=55
> +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft
> +no_defs
> Error: latitude or longitude exceeded limits
>
> (afterwards QGIS hangs)
>
> Data is Natural Earth's road shapefile in WGS84.
> (http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip)
>

The layer extent is:
xMin,yMin -166.532;-55.1121 : xMax,yMax 178.372;71.1777

so I don't know what coordinates are to be forward transformed in your
error message. Has your road style and labelling any coordinate information?

It works for me on QGIS Lisboa and without styles, but looks a bit weird
in the middle of Africa.

Greetings,
André Joost

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Transformation & labeling bug

Anita Graser
Am 28.04.2013, 18:01 Uhr, schrieb Andre Joost <[hidden email]>:

> Am 27.04.2013 16:14, schrieb Anita Graser:
>> Hi,
>>
>> I get nasty forward transformation errors with today's nightly when
>> using a predefined road style and labels:
>>
>> forward transform of
>> (12557.230023, 71897.228375)
>> PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=aea +lat_1=55
>> +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft
>> +no_defs
>> Error: latitude or longitude exceeded limits
>>
>> (afterwards QGIS hangs)
>>
>> Data is Natural Earth's road shapefile in WGS84.
>> (http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip)
>>
>
> The layer extent is:
> xMin,yMin -166.532;-55.1121 : xMax,yMax 178.372;71.1777
>
> so I don't know what coordinates are to be forward transformed in your  
> error message. Has your road style and labelling any coordinate  
> information?

I'm using the "Primary road" style which comes with nightly by default.  
The style alone seems to work. Once I enable labeling using street "name",  
the forward transform error pops up.

Earlier today I used a different style and no error happened so you might  
be on to something with your theory that the road style contains  
coordinate information.

Thanks and best wishes,
Anita
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Transformation & labeling bug

Larry_S
Hi Anita,

On Sun, Apr 28, 2013 at 1:27 PM, Anita Graser <[hidden email]> wrote:
Am 28.04.2013, 18:01 Uhr, schrieb Andre Joost <[hidden email]>:

Am <a href="tel:27.04.2013%2016" value="+12704201316" target="_blank">27.04.2013 16:14, schrieb Anita Graser:
Hi,

I get nasty forward transformation errors with today's nightly when
using a predefined road style and labels:

forward transform of
(12557.230023, 71897.228375)
PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=aea +lat_1=55
+lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft
+no_defs
Error: latitude or longitude exceeded limits

(afterwards QGIS hangs)

Data is Natural Earth's road shapefile in WGS84.
(http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip)


The layer extent is:
xMin,yMin -166.532;-55.1121 : xMax,yMax 178.372;71.1777

so I don't know what coordinates are to be forward transformed in your error message. Has your road style and labelling any coordinate information?

I'm using the "Primary road" style which comes with nightly by default. The style alone seems to work. Once I enable labeling using street "name", the forward transform error pops up.

I can confirm this on Mac. However, it doesn't happen when labeling is turned on, but when symbol levels are set (and labeling is on). Symbol levels and labels work individually, but if either is turned on when the other is on the error occurs and force quitting becomes the only option.

I get the following (note it is being on-the-fly transformed to UTM here):

Debug: src/core/qgspallabeling.cpp: 1305: (registerFeature) Ignoring feature 1893 due PAL exception: Geometry Type is unknown
Debug: src/core/qgscoordinatetransform.cpp: 623: (transformCoords) Projection failed emitting invalid transform signal: forward transform of
(25075.946436, 81366.459079)
PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=utm +zone=13 +datum=WGS84 +units=m +no_defs
Error: latitude or longitude exceeded limits

I've traced it to line 1057 in qgspallabeling.cpp [0]. Just guessing, but it looks like something is different between how the features are sent to QgsPalLayerSettings::registerFeature from QgsVectorLayer::drawRendererV2Levels as opposed to QgsVectorLayer::drawRendererV2, which works fine.

Please create a ticket if you have the time.
Regards,

Larry
 
Earlier today I used a different style and no error happened so you might be on to something with your theory that the road style contains coordinate information.

Thanks and best wishes,
Anita
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer


_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: Transformation & labeling bug

Anita Graser
On Mon, Apr 29, 2013 at 1:44 AM, Larry Shaffer <[hidden email]> wrote:
Hi Anita,

Please create a ticket if you have the time.



 
Regards,

Larry
 
Earlier today I used a different style and no error happened so you might be on to something with your theory that the road style contains coordinate information.

Thanks and best wishes,
Anita
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer



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