Opened 20 years ago

Closed 19 years ago

#899 closed defect (fixed)

shpxy fails when projection provided

Reported by: pspencer@… Owned by: sdlime
Priority: highest Milestone:
Component: MapServer C Library Version: 4.3
Severity: blocker Keywords:
Cc:

Description

This was discovered using the php/mapscript interface but I think it is really
an issue in the core.  When using the shpxy tag in a layer template and invoking
it using processQueryTemplate, the processor fails (and crashes php) when a
proj="<projection>".

This does not happen with proj="image" or no proj.  It only happens with
proj="<some valid projection string>"

PHP/MapScript test case to be attached.

Assefa has investigated and it appears that the tag processor fails because
valid projections contain = so the tag looks like:

[shpxy proj="init=epsg:4326"]

or

[shpxy proj="+proj=latlong +ellps=wgs84"]

The = embedded in the proj strings cause the problem.

This affects every version that has the shpxy tag available (4.2 and 4.3 I think)

Attachments (1)

test_shpxy.php (1.5 KB ) - added by pspencer@… 20 years ago.
shpxy test script

Download all attachments as: .zip

Change History (3)

by pspencer@…, 20 years ago

Attachment: test_shpxy.php added

shpxy test script

comment:1 by sdlime, 20 years ago

Status: newassigned
Then we should be able to skip embedded = signs in the tag parser in much the
same way that spaces are skipped. I'll take a look.

Steve

comment:2 by sdlime, 19 years ago

Resolution: fixed
Status: assignedclosed
Julien fixed the template tag parser to allow equal signs within quoted tags. 
This change made it into 4.4 and as far as I know works fine. Marking as fixed 
for now...

Steve
Note: See TracTickets for help on using tickets.