adding point via URL broken in MS5?

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

adding point via URL broken in MS5?

John Cole X
Has the syntax for adding a point via the URL (for mapserver cgi) changed in MS5?

I have a map that no longer puts a point on the map in MS5 but the same query works in MS4.

MS4: (address point works)
http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450

MS5: (address point missing)
http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450

Thanks,

John
Reply | Threaded
Open this post in threaded view
|

Re: adding point via URL broken in MS5?

tbonfort
have you read the migration guide at
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT
?

notably the URL configuration changes

cheers,
tb

On 9/25/07, John Cole <[hidden email]> wrote:

> Has the syntax for adding a point via the URL (for mapserver cgi) changed in
> MS5?
>
> I have a map that no longer puts a point on the map in MS5 but the same
> query works in MS4.
>
> MS4: (address point works)
> http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450
>
> MS5: (address point missing)
> http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450
>
> Thanks,
>
> John
> --
> View this message in context: http://www.nabble.com/adding-point-via-URL-broken-in-MS5--tf4515013.html#a12877874
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: adding point via URL broken in MS5?

piero.cavalieri
In the migration guide I read:
 
 ...Now you CAN pass chunks of mapfiles....but you CAN change multiple properties at one time...Note that you CAN use either a '_' or a '.' to seperate identifiers...
 
So I don't read there's no backward compatibility.
However, this what I have in map file:
 
LAYER
   NAME 'pointClick'
   TYPE CIRCLE
   TRANSFORM FALSE
   STATUS ON
   DEBUG OFF
    CLASS
     STYLE
       COLOR 255 0 0
     END
   END
END
 
and this is the query:
 
//MS4 Ok, not woriking in MS5
queryString = baseUrl + layersString + "&mode=query" + zoomStr +"&imgext=" + imgext + "&imgxy=" + imgxy +"&savequery=true" +"&map_pointClick_feature=new&map_pointClick_feature_points=" + setCircleCoords(imgxy) ;

//MapServer 5.0: Ok
queryString = baseUrl + layersString + "&mode=query" + zoomStr +"&imgext=" + imgext + "&imgxy=" + imgxy +"&savequery=true" +"&map.layer[pointClick]=FEATURE POINTS " + setCircleCoords(imgxy) + " END END";
 
where setCircleCoords is a simple function which returns:
x1 + " " + y1 + " " + x2 + " " + y2
which is the BBox of the circle.
 
Cheers
  Piero

 
2007/9/25, thomas bonfort <[hidden email]>:
have you read the migration guide at
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT
?

notably the URL configuration changes

cheers,
tb

On 9/25/07, John Cole <[hidden email]> wrote:
> Has the syntax for adding a point via the URL (for mapserver cgi) changed in
> MS5?
>
> I have a map that no longer puts a point on the map in MS5 but the same
> query works in MS4.

>
> MS4: (address point works)
> http://pmap1.hud.uai.com/cgi-bin4/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450
>
> MS5: (address point missing)
> http://pmap1.hud.uai.com/cgi-bin/mapserv.exe?map=/mapserver/gdt/main4.map&LAYERS=bound%2Chydro%2Clandmark%2Creviteblocks%2Cacablocks%2Croads%2Croads_anno%2Cbase_anno%2Chydro_anno%2Clandmark_point%2Ccity%2Cproperties_np_wfs%2Cselected%2Caddress%2Ccopyright&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&map_copyright_feature=new&map_copyright_feature_points=496.5%20440&map_copyright_feature_text=%C2%A9%202005%20TANA%2C%20Inc.%2C%20Rel.%2004%2F2005&map_address_feature=new&map_address_feature_points=-86.57704727363421%2034.69944180009092&map_address_feature_text=3410%20Ohara%20Rd%20SW%2C%20Huntsville%2C%20Alabama%2035801&SRS=EPSG%3A4326&BBOX=-86.598355%2C34.689786%2C-86.55574%2C34.709098&WIDTH=993&HEIGHT=450
>
> Thanks,
>
> John
> --
> View this message in context: http://www.nabble.com/adding-point-via-URL-broken-in-MS5--tf4515013.html#a12877874
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>