Reprojection problem

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCAN.GC.CA
Mon Jan 23 15:12:27 EST 2006


Stephen,

I really should do that huh? :) Steve is aware of it, but yes, I'll whip
something up.  The problem is that the circusmtances under which this
happens aren't always very clear ... I guess I'll use this last example as a
base.

J.F.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Stephen Woodbridge
Sent: January 23, 2006 3:04 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Reprojection problem

J.F.,

Did you write a bug up on this? I think it would worth while as this sounds
like a nasty problem to diagnose and it might not be so easy to find for the
next unsuspecting user.

-Steve W.

Ed McNierney wrote:
> Good job - I never would have figured that one out!
> 
> 	- Ed
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> On Behalf Of Doyon, Jean-Francois
> Sent: Monday, January 23, 2006 2:16 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Reprojection problem
> 
> Problem solved!
> 
> Turns out it was nother problem with point vs. annotation layers, and how
some combinations of configurations make mapserver die silently ...
> 
> J.F. 
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> On Behalf Of Doyon, Jean-Francois
> Sent: January 23, 2006 1:28 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Reprojection problem
> 
> Aha!
> 
> It looks like the combination of cgi map_layer_class_expression and the
projection causes MS to generate an error!
> 
> This is a bug :(
> 
> J.F.
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> On Behalf Of Doyon, Jean-Francois
> Sent: January 23, 2006 1:17 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Reprojection problem
> 
> Here you go Ed ... I'm at a loss!  Right now I have to think there's a
bizarre issue with the data, or maybe it's the fact I set the expression and
symbol via the URL? I 'll look into that last one ...
> 
> The MAP PROJECTION:
> 
>   PROJECTION
>     "init=epsg:42304"
>   END
> 
> The LAYER:
> 
>   LAYER
>     NAME featureannotate
>     TYPE point
>     STATUS off
>     DATA geo_np
>     PROJECTION
>       "init=epsg:4326"
>     END
>     METADATA
>       LEGEND_GROUP "theme"
>       GROUP_CONTROLLER "0"
>       LAY_TITLE "Annotation layer for feature"
>       CHECKABLE "0"
>       LEGEND_ORDER "-1"
>     END
>     LABELITEM "FEATURE_NA"
>     CLASSITEM "UNIQUE_KEY"
>     CLASS
>       EXPRESSION "w8g9q7regc87ctr8743tbca084ytc"
>       SYMBOL -1
>       SIZE 30
>       COLOR 0 0 0
>       LABEL
>         TYPE TRUETYPE
>         FONT "arial"
>         SIZE 14
>         COLOR 0 0 0
>         OUTLINECOLOR 226 226 226
>         POSITION ur
>         FORCE TRUE
>       END
>     END
>   END
> 
> J.F.
> 
> -----Original Message-----
> From: Ed McNierney [mailto:ed at topozone.com]
> Sent: January 23, 2006 12:43 PM
> To: Doyon, Jean-Francois; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: RE: [UMN_MAPSERVER-USERS] Reprojection problem
> 
> JF -
> 
> That sounds very strange!  Can you post the LAYER definition for the
troublesome layer, or at least the PROJECTION block for it?
> 
> 	- Ed
> 
> Ed McNierney
> President and Chief Mapmaker
> TopoZone.com / Maps a la carte, Inc.
> 73 Princeton Street, Suite 305
> North Chelmsford, MA  01863
> Phone: +1 (978) 251-4242
> Fax: +1 (978) 251-1396
> ed at topozone.com
> 
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] 
> On Behalf Of Doyon, Jean-Francois
> Sent: Monday, January 23, 2006 12:03 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Reprojection problem
> 
> Hello,
> 
> I recently upgraded from 3.6.6 to 4.6.1, and now I'm having problems with
a map that reprojects a single layer ...
> 
> I have a MAP level PROJECTION object, and one layer with a different
PROJECTION than the others ... (The map is in an LCC projection, and the
layer in geographic).
> 
> This used to work fine in 3.6.6, but now I get "msDrawMap(): Image
handling error. Failed to draw layer named 'featureannotate'." ... That
layer being the one in geographic that should be getting reprojected.
> 
> If I take out the PROJECTION parameter of the layer, no errors!  I 
> tried moving it's definition with the layer, which didn't change 
> anything ... I also tried using both epsg codes and in-line 
> definitions, which also didn't help :(
> 
> I was using PROJ 4.4.5 ... Upgraded to 4.4.9 ... That didn't help.  I
re-compiled MS just to be safe, the problem remains ...
> 
> I have a WMS server running off the same setup without complaints
(including reprojection).  The shapefile looks ok, shpdump/shptest and
dbfdump didn't produce anything out of the ordinary ...
> 
> Any ideas?
> 
> Thanks!
> 
> Jean-François Doyon
> Internet Service Development and Systems Support / Spécialiste de 
> dèveloppements internet et soutien technique Canada Centre for Remote 
> Sensing/Centre Canadien de télédétection Natural Resources 
> Canada/Ressources Naturelles Canada http://atlas.gc.ca
> Tel./Tél.: (613) 992-4902
> Fax: (613) 947-2410
> 



More information about the mapserver-users mailing list