RE: [mapserver-users] Working with shapefiles in PHP

2010-08-25 Thread Peter Hopfgartner

XING : http://www.xing.com/go/invita/8917535 



Peter web...@pl.net wrote
Subject: [mapserver-users] Working with shapefiles in PHP
Date: 25.08.2010 02:51

Hi Peter

Regarding my previous query regarding tools to work with shapefiles in
PHP, ive written a progress report, that might be useful to other passing
PHP GIS newcomers.

http://www.webspaces.net.nz/page.php?view=working_with_shapefiles


Did you have a look at the shapelib bindings at 
http://pecl.php.net/package/shape ?

Thanks to everyone for all the great help, you all have been awesome.
When ive done the evaluations of Mapserver and Mapnik, ill add to it.

Regards

Peter
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Peter, too
ner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
E-Mail: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RGBA transparent images?

2010-08-25 Thread Wim Vanbelle
Hi Steve,

I have this in my file:

OUTPUTFORMAT
NAME AGGPNG
DRIVER AGG/PNG
EXTENSION png
MIMETYPE image/png;mode=24bit;
IMAGEMODE RGBA
FORMATOPTION INTERLACE=true
FORMATOPTION QUANTIZE_NEW=ON
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_DITHER=ON
FORMATOPTION QUANTIZE_COLORS=256
END

And in my layer, if you want opacity:

OPACITY 60


That should render nice lines :).





On 24 August 2010 21:16, Stephen Woodbridge wood...@swoodbridge.com wrote:

 If I want to generate RGBA transparent images using AGG, what should my
 OUTPUTFORMAT block look like?


 I was using this one for 8-bit images, but the anti aliasing was creating
 blackish artifacts along the rendered lines. Is there a way to avoid them?

  OUTPUTFORMAT
NAME agg_qn
DRIVER AGG/PNG
EXTENSION png
MIMETYPE image/png
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION INTERLACE=false
FORMATOPTION QUANTIZE_NEW=ON
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_DITHER=OFF
FORMATOPTION QUANTIZE_COLORS=37
FORMATOPTION TRANSPARENT=ON
  END

 Trying 32bit RGBA:

  IMAGECOLOR 0 0 0

  OUTPUTFORMAT
NAME agg_qn
DRIVER AGG/PNG
EXTENSION png
MIMETYPE image/png
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION TRANSPARENT=ON
  END

 Generated black backgrounds and not transparent. Is it as simple as
 removing the IMAGECOLOR? I didn't try that.

 -Steve W
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RGBA transparent images?

2010-08-25 Thread Wim Vanbelle
Erm, pick interlace=false instead. That was just a test and I forgot to put
that back

On 25 August 2010 13:22, Wim Vanbelle wimvanbe...@gmail.com wrote:

 Hi Steve,

 I have this in my file:

 OUTPUTFORMAT
 NAME AGGPNG

 DRIVER AGG/PNG
 EXTENSION png
 MIMETYPE image/png;mode=24bit;
 IMAGEMODE RGBA
 FORMATOPTION INTERLACE=true

 FORMATOPTION QUANTIZE_NEW=ON
 FORMATOPTION QUANTIZE_FORCE=ON
 FORMATOPTION QUANTIZE_DITHER=ON
 FORMATOPTION QUANTIZE_COLORS=256
 END

 And in my layer, if you want opacity:

 OPACITY 60


 That should render nice lines :).






 On 24 August 2010 21:16, Stephen Woodbridge wood...@swoodbridge.comwrote:

 If I want to generate RGBA transparent images using AGG, what should my
 OUTPUTFORMAT block look like?


 I was using this one for 8-bit images, but the anti aliasing was creating
 blackish artifacts along the rendered lines. Is there a way to avoid them?

  OUTPUTFORMAT
NAME agg_qn
DRIVER AGG/PNG
EXTENSION png
MIMETYPE image/png
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION INTERLACE=false
FORMATOPTION QUANTIZE_NEW=ON
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_DITHER=OFF
FORMATOPTION QUANTIZE_COLORS=37
FORMATOPTION TRANSPARENT=ON
  END

 Trying 32bit RGBA:

  IMAGECOLOR 0 0 0

  OUTPUTFORMAT
NAME agg_qn
DRIVER AGG/PNG
EXTENSION png
MIMETYPE image/png
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION TRANSPARENT=ON
  END

 Generated black backgrounds and not transparent. Is it as simple as
 removing the IMAGECOLOR? I didn't try that.

 -Steve W
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Tile mode multiple layers

2010-08-25 Thread Clément MONIER

Hi,

I'm facing a (probable widely encountered) problem using MapServer with 
tile-mode option.
It seems like multiple layers aren't allowed ??

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 = ok
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer2
 = ok

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1,layer2
 = ko !

Why ?

Thanks  Regards

Clément

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Tile mode multiple layers

2010-08-25 Thread Wim Vanbelle
Hi Clément,

Your request is wrong ;).

Try using a space instead. Take a look here :

http://mapserver.org/output/tile_mode.html

Good luck.

On 25 August 2010 13:47, Clément MONIER clement.mon...@v-trafic.com wrote:



 Hi,



 I’m facing a (probable widely encountered) problem using MapServer with
 tile-mode option.

 It seems like multiple layers aren’t allowed ??




 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1=
  ok


 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer2=
  ok




 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1,layer2=
  ko !



 Why ?



 Thanks  Regards



 *Clément *



 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how to disappear Warning: session_start() in the page?

2010-08-25 Thread elisabeth theresia
Hello All Mr.

Already works... Thanks for you advices, yesterday i did some changes in coding 
and no more error message. ~~Horray !!~~
I don't use index_cobacham.phtml anymore. just change in the coding for 
template.

in the template for map i put: 

html
headx/head

body
form
//css

//code HTML...~bla...bla.bla~

body onLoad=CWC2OnLoadFunction()


table border=0 cellpadding=2 cellspacing=0
tr
td colspan=3 align=center
CWC2 TYPE=MapDHTML
VISIBLE=true
WIDTH=384
HEIGHT=204
ALLOWRESIZE=true
MARQUEECOLOR=#FF
MARQUEEWIDTH=2
MINSCALE=1/

CWC2 TYPE=Title
VISIBLE=true
LABEL=Aplikasi Web-based GIS
LABELCLASS=CWCHelpTitle1 /

 CWC2 TYPE=Scale VISIBLE=true /
 
 CWC2 TYPE=LegendTemplate
 VISIBLE=true
ENABLED=true
EMBEDDED=false
POPUPWIDTH=500
POPUPHEIGHT=250

TEMPLATE=./legend_template_widget2.html/

   CWC2 TYPE=ZoomIn
   VISIBLE=true
IMAGETIP=Zoom In: box atau klik
TOOLSET=Navigation
IMAGEWIDTH=24
IMAGEHEIGHT=24
IMAGE STATE=normal
IMAGE=images/tool_zoomin_off.gif/
IMAGE STATE=hover
IMAGE=images/tool_zoomin_over.gif/
IMAGE STATE=selected
IMAGE=images/tool_zoomin_on.gif/ 
 /CWC2 
 bZoom In/bbr
 
 CWC2 TYPE=Recenter
 VISIBLE =true
IMAGETIP=Menggeser Tampilan Peta
   TOOLSET=Navigation
IMAGEWIDTH=24
IMAGEHEIGHT=24
IMAGE=images/tool_pan_off.gif/
/CWC2
bPan/Recenter/bbr

cwc2 TYPE=PanMap
VISIBLE=true
IMAGETIP=Menggeser: drag
TOOLSET=Navigation
IMAGEWIDTH=24
IMAGEHEIGHT=24
IMAGE=images/tool_pan_off.gif/
 /cwc2
 b Pan/Drag/bbr
 
 CWC2 TYPE=Zoomout
 VISIBLE=true
IMAGETIP=Memperkecil Tampilan Peta
TOOLSET=Navigation
IMAGEWIDTH=24
IMAGEHEIGHT=24
IMAGE=images/tool_zoomout_off.gif/
  /CWC2 
  bZoom Out/bbr
  
  CWC2 TYPE=ZoomAllLayers
  ENABLED=true
VISIBLE=true
IMAGETIP=Zoom Full Extent
TOOLSET=Navigation
IMAGEWIDTH=24
IMAGEHEIGHT=24
IMAGE=images/tool_zoomfull_off.gif/
  /CWC2
  
  bFull Extent/bbr

cwc2 TYPE=CursorPos
axis=X
label=Bujur :
labelposition=8
labelvalign=middle
labelclass=label
widgetclass=inputbox/

cwc2 TYPE=CursorPos
axis=Y
label=Lintang:
labelposition=8
labelvalign=middle
labelclass=label
widgetclass=inputbox/

 cwc2 TYPE=Query
 VISIBLE= true
IMAGETIP=Identifikasi Unsur
TOOLSET=Navigation
IMAGEWIDTH=20
IMAGEHEIGHT=20
IMAGE=images/icon_query.gif
POPUPWIDTH=400
POPUPHEIGHT=200
RADIUS=3
MAXFEATURES=15
  /cwc2
  bQuery/bbr
  
 cwc2 TYPE=UpdateMap
 VISIBLE=true
IMAGETIP=Meng-update/Refresh tampilan Peta
IMAGE=images/icon_update.gif
LABEL=Redraw Map
IMAGEWIDTH=90
IMAGEHEIGHT=22
 /cwc2
   /td
   /tr
   /table
   
   CWC2 TYPE=ErrorReport
   POPUPWIDTH=500
POPUPHEIGHT=400
TOOLBAR=false
STATUS=false
MENUBAR=false
VISIBLE=false
IMAGE=images/icon_error.png IMAGEWIDTH=18

[mapserver-users] Re: [mapserver user]how to set LegendTemplate display color same like class in the mapfile?

2010-08-25 Thread elisabeth theresia
pic of :my_strangelegend.jpeg



  attachment: my_strangeLegend.JPG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Tile mode multiple layers

2010-08-25 Thread Clément MONIER
Thanks a lot !

I have another bothering issue :

PNG outputs of my MS CGI requests now don’t look nicely rendered any more (i.e 
no smoothly antialiased AGG display)
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 
layer2http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1%20layer2
as it was with similar WMS requests targeting the same mapfile though

Where should I specify the desired output format ?

Thank you for your help

De : mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] De la part de Wim Vanbelle
Envoyé : mercredi 25 août 2010 13:50
À : mapserver-users@lists.osgeo.org
Objet : Re: [mapserver-users] Tile mode  multiple layers

Hi Clément,

Your request is wrong ;).

Try using a space instead. Take a look here :

http://mapserver.org/output/tile_mode.html

Good luck.
On 25 August 2010 13:47, Clément MONIER 
clement.mon...@v-trafic.commailto:clement.mon...@v-trafic.com wrote:

Hi,

I’m facing a (probable widely encountered) problem using MapServer with 
tile-mode option.
It seems like multiple layers aren’t allowed ??

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 = ok
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer2
 = ok

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1,layer2
 = ko !

Why ?

Thanks  Regards

Clément


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Tile mode multiple layers

2010-08-25 Thread Wim Vanbelle
Hi Clément,

Under your MAP you can specify an OUTPUTFORMAT tag.

See http://mapserver.org/mapfile/outputformat.html for details. There's also
some additional information about the format options at the bottom.

Use AGG for best quality results.


On 25 August 2010 14:37, Clément MONIER clement.mon...@v-trafic.com wrote:

  Thanks a lot !



 I have another bothering issue :



 PNG outputs of my MS CGI requests now don’t look nicely rendered any more
 (i.e no smoothly antialiased AGG display)

 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 layer2http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1%20layer2

 as it was with similar WMS requests targeting the same mapfile though



 Where should I specify the desired output format ?



 Thank you for your help



 *De :* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *De la part de* Wim Vanbelle
 *Envoyé :* mercredi 25 août 2010 13:50
 *À :* mapserver-users@lists.osgeo.org
 *Objet :* Re: [mapserver-users] Tile mode  multiple layers



 Hi Clément,


 Your request is wrong ;).

 Try using a space instead. Take a look here :

 http://mapserver.org/output/tile_mode.html

 Good luck.

 On 25 August 2010 13:47, Clément MONIER clement.mon...@v-trafic.com
 wrote:



 Hi,



 I’m facing a (probable widely encountered) problem using MapServer with
 tile-mode option.

 It seems like multiple layers aren’t allowed ??




 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1=
  ok


 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer2=
  ok




 http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1,layer2=
  ko !



 Why ?



 Thanks  Regards



 *Clément *




 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Tile mode multiple layers

2010-08-25 Thread Clément MONIER
I’ve already correctly specified my output format inside the mapfile.

Anyway, these 2 requests doesn’t give the same rendering :
(tile mode)
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
(wms)
http://localhost/cgi-bin/mapserv.exe?map=mymapfile.mapSERVICE=WMSREQUEST=GetMapVERSION=1.3.0LAYERS=layer1STYLES=FORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=TRUECRS=EPSG:4326BBOX=y1,x1,y2,x2WIDTH=256HEIGHT=256
But maybe I didn’t understand the appropriate use of tile mode.

Should I expect these 2 requests to give the same png output by the way ?

Thanks

De : mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] De la part de Wim Vanbelle
Envoyé : mercredi 25 août 2010 14:52
À : mapserver-users@lists.osgeo.org
Objet : Re: [mapserver-users] Tile mode  multiple layers

Hi Clément,

Under your MAP you can specify an OUTPUTFORMAT tag.

See http://mapserver.org/mapfile/outputformat.html for details. There's also 
some additional information about the format options at the bottom.

Use AGG for best quality results.

On 25 August 2010 14:37, Clément MONIER 
clement.mon...@v-trafic.commailto:clement.mon...@v-trafic.com wrote:
Thanks a lot !

I have another bothering issue :

PNG outputs of my MS CGI requests now don’t look nicely rendered any more (i.e 
no smoothly antialiased AGG display)
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 
layer2http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1%20layer2
as it was with similar WMS requests targeting the same mapfile though

Where should I specify the desired output format ?

Thank you for your help

De : 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 
[mailto:mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org]
 De la part de Wim Vanbelle
Envoyé : mercredi 25 août 2010 13:50
À : mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Objet : Re: [mapserver-users] Tile mode  multiple layers

Hi Clément,


Your request is wrong ;).

Try using a space instead. Take a look here :

http://mapserver.org/output/tile_mode.html

Good luck.
On 25 August 2010 13:47, Clément MONIER 
clement.mon...@v-trafic.commailto:clement.mon...@v-trafic.com wrote:

Hi,

I’m facing a (probable widely encountered) problem using MapServer with 
tile-mode option.
It seems like multiple layers aren’t allowed ??

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1
 = ok
http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer2
 = ok

http://localhost/cgi-bin/mapserv.exe?mode=tiletilemode=gmaptile=X+Y+Smap=mymapfile.mapLAYERS=layer1,layer2
 = ko !

Why ?

Thanks  Regards

Clément


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Feature select performance

2010-08-25 Thread Lime, Steve D (DNR)
Like with everything it depends...  Selection of features via a bounding box 
shouldn't be much, or really any, slower than drawing since it's basically the 
same mechanism for both. Attribute queries can be quite slow with shapefiles 
since MapServer doesn't do any attribute indexing. That's where the RDMS really 
adds value. There shouldn't be much of a difference with a bbox query, and in 
fact, a local shapefile will probably be faster, even on larger datasets as 
long as you've build an spatial index file.

Anyway, it's what you do with results afterwards that matters and that's 
probably specific to your application.  I've used query files to persist 
selected features over many map draws successfully on modest (50,000 feature) 
sized shapefiles.

Steve

From: Chris Jackson [mailto:webturt...@gmail.com]
Sent: Tuesday, August 24, 2010 10:34 AM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Feature select performance

Steve

The selection of layer data is done by a bounding box, though querying by 
parameter values is just as slow.  The mapfile is directly calling up the 
shapefile (I had just followed the P.Mapper examples of displaying/querying 
shapefiles directly).  So probably the answers to those questions lie under the 
hood of P.Mapper, which I assume is using the PHP mapscript.dll to do the work. 
 Is the direct query to shapefile approach v.efficient for larger datasets..?.  
Ignoring the app I am using what is a good approach to large feature datasets 
from a MapServer perspective?

Thanks
Chris


On 24 August 2010 14:27, Lime, Steve D (DNR) 
steve.l...@state.mn.usmailto:steve.l...@state.mn.us wrote:
How is the selection done? How is the highlighting done? Those processes will 
really impact performance depending on how things are implemented.

Steve


From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 
[mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org]
 On Behalf Of Chris Jackson [webturt...@gmail.commailto:webturt...@gmail.com]
Sent: Tuesday, August 24, 2010 3:19 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Feature select performance

Hi all

I have rigged up a webGIS app (P.Mapper framework) where one of the underlying 
datasets is a model grid (many thousand cells) in a shapefile.  The data 
displays nice and quick when just viewing, but if I allow the user to select 
say 5000 cells it is very (extremely) slow to redraw with the highlighted 
cells.  Doing the same task in a very old ArcGIS server web app was much 
quicker (admittedly the data was in SDE/MS SQL).  So my question is what is the 
best way to improve performance - would just transferring the shapefile to to 
say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good step or is there 
are better way to present the data in the Map file?
Many thanks
Chris

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Feature select performance

2010-08-25 Thread Chris Jackson
Steve

I was pursuing the performance issue on the pmapper mailing list too.  It
transpires it is related to browser performance (from a JS aspect) for the
web apps query/redraw processes - IE7 - awful (8mins), IE8 and FF pretty
good - around 20secs for returning/highlighting 5000 features (and building
results table) and Chrome about 13 secs, that is without even creating a
spatial index.  Thanks for the info and I think I may even not have to go
down the db route (which keeps life simple!) just advise IE6/7 users to
switch browsers (not the first webGIS app I know that does this!)

Thanks
Chris.

On 25 August 2010 18:08, Lime, Steve D (DNR) steve.l...@state.mn.us wrote:

  Like with everything it depends…  Selection of features via a bounding
 box shouldn’t be much, or really any, slower than drawing since it’s
 basically the same mechanism for both. Attribute queries can be quite slow
 with shapefiles since MapServer doesn’t do any attribute indexing. That’s
 where the RDMS really adds value. There shouldn’t be much of a difference
 with a bbox query, and in fact, a local shapefile will probably be faster,
 even on larger datasets as long as you’ve build an spatial index file.



 Anyway, it’s what you do with results afterwards that matters and that’s
 probably specific to your application.  I’ve used query files to persist
 selected features over many map draws successfully on modest (50,000
 feature) sized shapefiles.



 Steve



 *From:* Chris Jackson [mailto:webturt...@gmail.com]
 *Sent:* Tuesday, August 24, 2010 10:34 AM
 *To:* Lime, Steve D (DNR)
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Feature select performance



 Steve

 The selection of layer data is done by a bounding box, though querying by
 parameter values is just as slow.  The mapfile is directly calling up the
 shapefile (I had just followed the P.Mapper examples of displaying/querying
 shapefiles directly).  So probably the answers to those questions lie under
 the hood of P.Mapper, which I assume is using the PHP mapscript.dll to do
 the work.  Is the direct query to shapefile approach v.efficient for larger
 datasets..?.  Ignoring the app I am using what is a good approach to large
 feature datasets from a MapServer perspective?

 Thanks
 Chris


  On 24 August 2010 14:27, Lime, Steve D (DNR) steve.l...@state.mn.us
 wrote:

 How is the selection done? How is the highlighting done? Those processes
 will really impact performance depending on how things are implemented.

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org [
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson [
 webturt...@gmail.com]
 Sent: Tuesday, August 24, 2010 3:19 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Feature select performance


 Hi all

 I have rigged up a webGIS app (P.Mapper framework) where one of the
 underlying datasets is a model grid (many thousand cells) in a shapefile.
  The data displays nice and quick when just viewing, but if I allow the user
 to select say 5000 cells it is very (extremely) slow to redraw with the
 highlighted cells.  Doing the same task in a very old ArcGIS server web app
 was much quicker (admittedly the data was in SDE/MS SQL).  So my question is
 what is the best way to improve performance - would just transferring the
 shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good
 step or is there are better way to present the data in the Map file?
 Many thanks
 Chris



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How to appear Graph?

2010-08-25 Thread elisabeth theresia
Hi all... :D
I am making Webgis (PHP, MapServer,Postgis, Chameleon Framework) then, i 
already 
can display Map that load from Mapserv+Postgis, but how to display Graph or 
chart?


Thanks

-Theresia



  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users