[mapserver-users] Web Client
Hi, First of all I would like to say Hello to everybody as I am a newbie of both MapServer and the mailing list. I need some suggestions about the web based client to send WMS and WFS requests to Map Server to display map and database records. I had a look at the internet and found some projects. But it takes unbelievable long time to read all documentations to see if it provides a few things I need. The basic functions I need are: - Possible to list layers - Solid zoom in/out functions - Design/icons and display functions customizable - Preferably written in PHP (not a must) I won't say no if there's one provides more functions :) So I wanted to ask which clients are good enough just like a daily chat with friends :) I hope I am not breaking any rules of the group at the first day. Any suggestions? Many thanks in advance Ceyhun ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Web Client
I recommend you use QGIS as a desktop client to test the WxS server setup, it is simple robust, and helps get things working well server side before you start on the web client. Alternatives include uDIG and gvSIG. To build the web client, try Openlayers or Leaflet. For PHP you can use the Mapscript that comes with Mapserver. Welcome to the QGIS project!OpenLayers: Home Leaflet — an open-source JavaScript library for interactive maps PHP MapScript — MapServer 6.4.1 documentation HTH, Brent Wood From: Ceyhun Ganioglu ceyhunganio...@gmail.com To: mapserver-users@lists.osgeo.org Sent: Tuesday, August 12, 2014 10:37 PM Subject: [mapserver-users] Web Client Hi, First of all I would like to say Hello to everybody as I am a newbie of both MapServer and the mailing list. I need some suggestions about the web based client to send WMS and WFS requests to Map Server to display map and database records. I had a look at the internet and found some projects. But it takes unbelievable long time to read all documentations to see if it provides a few things I need. The basic functions I need are: - Possible to list layers - Solid zoom in/out functions - Design/icons and display functions customizable - Preferably written in PHP (not a must) I won't say no if there's one provides more functions :) So I wanted to ask which clients are good enough just like a daily chat with friends :) I hope I am not breaking any rules of the group at the first day. Any suggestions? Many thanks in advance Ceyhun ___ 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] Web Client
Hi, Have a look at MapIgniter https://github.com/taviroquai/MapIgniter - Based on PHP, CodeIgniter, MapServer, Postgis and OpenLayers 2.11 - Interface as a CMS (like Joomla or Drupal) - 3 default roles with specific menus: public, user, administrator - [Your requirements here] The MapIgniter project is not ready for production but can be a very good start for your development version. There will be a MapIgniter version 2 based on a recent framework/cms :) Cheers, Marco Afonso 2014-08-12 11:37 GMT+01:00 Ceyhun Ganioglu ceyhunganio...@gmail.com: Hi, First of all I would like to say Hello to everybody as I am a newbie of both MapServer and the mailing list. I need some suggestions about the web based client to send WMS and WFS requests to Map Server to display map and database records. I had a look at the internet and found some projects. But it takes unbelievable long time to read all documentations to see if it provides a few things I need. The basic functions I need are: - Possible to list layers - Solid zoom in/out functions - Design/icons and display functions customizable - Preferably written in PHP (not a must) I won't say no if there's one provides more functions :) So I wanted to ask which clients are good enough just like a daily chat with friends :) I hope I am not breaking any rules of the group at the first day. Any suggestions? Many thanks in advance Ceyhun ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetFeatureInfo error with native vector tileindex
Even Rouault wrote: Le lundi 11 août 2014 15:13:47, Rahkonen Jukka (Tike) a écrit : Hi, I have something like 1 shapefiles which I have combined to one layer with a tileindex shapefile which is created with ogrtindex utility. I can make WMS to render the layer fine both with the native Mapserver tileindex connection and by reading the tileindex with OGR by using CONNECTIONTYPE OGR. However, GetFeatureInfo works well only with OGR connection to tileindex. The native tileindex throws occasionally this error (record number varies, naturally). msDBFReadAttribute(): DBASE file error. Invalid record number 231855. Is the error always the same or changing for the exact same GetFeatureInfo request ? Are you able to determine which shape is at that location and find how many records are there in the .DBF ? (what ogrinfo should report) That error is returned when : if( hEntity 0 || hEntity = psDBF-nRecords ) So it would mean that there is an attempt of reading more records than there are actually. Which could happen if the DBF would be truncated. But I'm not clear why you wouldn't see the error through OGR. Difficult to know without being able to reproduce... Hi, At least I can reproduce something odd now with a minimal setup which I can share. I use a trimmed MS4W version with fresh Mapserver 6.5-dev binaries from gisinternals. The test package is in http://latuviitta.org/downloads/vectortileindex_map.zip The package contains: - mapfile in \apps - one shapefile in \apps\data - ogrtindex index shap in \apps - GetFeatureInfo templates for text/html output in \apps\templates Mapfile has section: CONNECTIONTYPE OGR TILEINDEX c:\ms4w\apps\debug.shp TILEITEM location When tileindex is read like this through OGR GetFeatureInfo works but not if CONNECTIONTYPE OGR is commented out. Rendering works fine with both settings. Here is a request to test with. It should find data as KALTEVUUS ALA NOPEUS EROOSIO 0.400.6316.00 0 http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/vectortileindex.mapSERVICE=WMSVERSION=1.3.0REQUEST=GetFeatureInfoBBOX=322114.29698474460747093,6747927.06825653277337551,322258.16823926079086959,6748042.80528055597096682CRS=EPSG:3067WIDTH=1079HEIGHT=868LAYERS=SMK_uoma-analyysi_alaSTYLES=FORMAT=image/pngQUERY_LAYERS=SMK_uoma-analyysi_alaINFO_FORMAT=text/htmlI=813J=483FEATURE_COUNT=10 With DEBUG 5 and when having a correctly working OGR connection into tileindex I get all this into MS_ERRORFILE after successful GetFeatureInfo [Tue Aug 12 14:11:33 2014].119000 msOGRFileOpen(c:\ms4w\apps\debug.shp)... [Tue Aug 12 14:11:33 2014].119000 OGROPen(c:\ms4w\apps\debug.shp) [Tue Aug 12 14:11:33 2014].119000 msConnPoolRegister(SMK_uoma-analyysi_ala,(null),019956E0) [Tue Aug 12 14:11:33 2014].119000 msOGRFileOpen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp,0)... [Tue Aug 12 14:11:33 2014].119000 OGROPen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp) [Tue Aug 12 14:11:33 2014].119000 msConnPoolRegister(SMK_uoma-analyysi_ala,(null),019C3638) [Tue Aug 12 14:11:33 2014].119000 msOGRFileWhichShapes: Setting spatial filter to 3322545.770087 6750733.636809 3322548.437923 6750736.304646 [Tue Aug 12 14:11:33 2014].119000 msOGRFileClose(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp,0). [Tue Aug 12 14:11:33 2014].119000 msConnPoolRelease(SMK_uoma-analyysi_ala,(null),019C3638) [Tue Aug 12 14:11:33 2014].119000 msOGRFileOpen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp,0)... [Tue Aug 12 14:11:33 2014].119000 OGROPen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp) [Tue Aug 12 14:11:33 2014].129000 msConnPoolRegister(SMK_uoma-analyysi_ala,(null),019CACC0) [Tue Aug 12 14:11:33 2014].129000 msOGRFileWhichShapes: Setting spatial filter to 3322545.770087 6750733.636809 3322548.437923 6750736.304646 [Tue Aug 12 14:11:33 2014].129000 msOGRFileNextShape: Returning shape=130023, tile=0 [Tue Aug 12 14:11:33 2014].129000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Tue Aug 12 14:11:33 2014].129000 msOGRFileClose(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp,0). [Tue Aug 12 14:11:33 2014].129000 msConnPoolRelease(SMK_uoma-analyysi_ala,(null),019CACC0) [Tue Aug 12 14:11:33 2014].129000 msOGRFileOpen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp,0)... [Tue Aug 12 14:11:33 2014].129000 OGROPen(c:/ms4w/apps/data/vesiensuojelu_teema_ii.shp) [Tue Aug 12 14:11:33 2014].139000 msConnPoolRegister(SMK_uoma-analyysi_ala,(null),019CADA0) [Tue Aug 12 14:11:33 2014].139000 msOGRFileWhichShapes: Setting spatial filter to 3322545.770087 6750733.636809 3322548.437923 6750736.304646 [Tue Aug 12 14:11:33 2014].139000 freeLayer(): freeing layer at 0198D638. [Tue Aug 12 14:11:33 2014].139000 msOGRLayerClose((null)). [Tue Aug 12 14:11:33 2014].139000 msOGRFileClose(c:\ms4w\apps\debug.shp,0). [Tue Aug 12 14:11:33 2014].139000 msConnPoolRelease(SMK_uoma-analyysi_ala,(null),019956E0) [Tue Aug 12 14:11:33 2014].139000
Re: [mapserver-users] Web Client
For something simpler, you may want to consider GeoMOOSE. 1. It has a very nice catalog that has been really refined over the years. 2. The Zoom-in/Zoom-out and other capabilities are built atop the well-proven OpenLayers 2.X code base. 3. It is highly customizable with CSS but comes with a nice set of icons from the start. It also uses Dojo for its widget library and can be highly customized with that toolset. 4. The services (such as search, etc.) are based on PHP but are also very small, light weight, and easy to change. GeoMOOSE has some other advantages: - The install is not very large. - It requires no more PHP dependencies than MapScript (the windows/MS4W deploy is very easy) - It can be configured with an XML file. - We are constantly working on documentation and have a lot of it at our website www.geomoose.org along with a handy demo at demo.geomoose.org /me will now stop self promoting. :-) On Tue, Aug 12, 2014 at 5:58 AM, Marco Afonso mafonso...@gmail.com wrote: Hi, Have a look at MapIgniter https://github.com/taviroquai/MapIgniter - Based on PHP, CodeIgniter, MapServer, Postgis and OpenLayers 2.11 - Interface as a CMS (like Joomla or Drupal) - 3 default roles with specific menus: public, user, administrator - [Your requirements here] The MapIgniter project is not ready for production but can be a very good start for your development version. There will be a MapIgniter version 2 based on a recent framework/cms :) Cheers, Marco Afonso 2014-08-12 11:37 GMT+01:00 Ceyhun Ganioglu ceyhunganio...@gmail.com: Hi, First of all I would like to say Hello to everybody as I am a newbie of both MapServer and the mailing list. I need some suggestions about the web based client to send WMS and WFS requests to Map Server to display map and database records. I had a look at the internet and found some projects. But it takes unbelievable long time to read all documentations to see if it provides a few things I need. The basic functions I need are: - Possible to list layers - Solid zoom in/out functions - Design/icons and display functions customizable - Preferably written in PHP (not a must) I won't say no if there's one provides more functions :) So I wanted to ask which clients are good enough just like a daily chat with friends :) I hope I am not breaking any rules of the group at the first day. Any suggestions? Many thanks in advance Ceyhun ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Regards, Marco Afonso http://goo.gl/ZDtQjm ___ 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] Web Client
I'm using the Nasa Worldwind sample client. You can use the canned demo, or get the SDK and build your own. Look at the WMSLayerManager.jnlp link off of this page: http://goworldwind.org/demos/ -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ceyhun Ganioglu Sent: Tuesday, August 12, 2014 4:37 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Web Client Hi, First of all I would like to say Hello to everybody as I am a newbie of both MapServer and the mailing list. I need some suggestions about the web based client to send WMS and WFS requests to Map Server to display map and database records. I had a look at the internet and found some projects. But it takes unbelievable long time to read all documentations to see if it provides a few things I need. The basic functions I need are: - Possible to list layers - Solid zoom in/out functions - Design/icons and display functions customizable - Preferably written in PHP (not a must) I won't say no if there's one provides more functions :) So I wanted to ask which clients are good enough just like a daily chat with friends :) I hope I am not breaking any rules of the group at the first day. Any suggestions? Many thanks in advance Ceyhun smime.p7s Description: S/MIME cryptographic signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Title on the legend?
Didn't see a reply to this but the legend functionality has never supported anything like this. The legend labels controls the label properties associated with the legend labels themselves, not a title. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tom Price Sent: Monday, August 04, 2014 3:59 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Title on the legend? Using C# Mapscript, _map.legend.label.setText(Title) ; doesn't set a title above an imbeded legend. The legend itself displays fine. What am I missing? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users