Re: [mapserver-users] MapServer vs ArcGIS server
Hello Ya I agree on everything Mike said. On the API question I must say that ESRI (finally) has done a great job. All kind of APIs are available free of charge and make it really easy to develop apps, see: http://resources.arcgis.com/content/arcgisserver/web-apis Here an app we created with the JS API (City of Bern): http://map.bern.ch/stadtplan/index_en.htm In addition they have SDKs for creating apps for iOS, Android and Windows Phone ... The city of Zurich has done a pretty good iPhone App, even with routing for bike and pedestrians ... look for zuriplan (only in German I think) ... Mit freundlichem Gruss / Best regards Flavio Hendry TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch Mit freundlichen Gruessen / Kind Regards Flavio Hendry, CEO - mailto:fla...@tydac.ch TYDAC AG - http://www.tydac.ch Geographic Information Solutions Optingenstrasse 27 -- CH-3013 Bern Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] World file creation
Maybe I'm not searching on the correct terms. But what is the magic formula for creating world files ?? I have a map of the US with the following projection info ullat=53.3638 ullon=-130.964 lrlat=18.2977 lrlon=-69.1058 sp1=0 sp2=39 cm=-95.5 rlat=36.5 width=640 height=480 projection=lambert now how on earth do you figure the meter per pixel?? prefer php, but guess I could convert -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer vs ArcGIS server
On Jul 4, 2012, at 6:03 AM, Wang, Ya wrote: > Mike: > Thank you very much for the sharing. It is really great information. I have > another question now. How does MapServer compare with ArcGIS server in terms > of providing API or service layers to support the enthusiasm of the online > development community? > .. Why don't you summarize for us how and what ArcGIS Server provides in terms of "API or service layers" and how it supports the enthusiasm of its online development community? That knowledge would benefit several of us, I believe. Also, try asking the same question on the ArcGIS Server email list, if there is one, and then summarize the responses you get there. I would be very curious to read those. Finally, wrt MapServer's programming hooks and APIs, have you visited the docs at http://mapserver.org? Lots of great, entirely community developed information there. Remember, no one owns MapServer -- you and I and others and everyone owns it. -- Puneet Kishor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer vs ArcGIS server
Mike: Thank you very much for the sharing. It is really great information. I have another question now. How does MapServer compare with ArcGIS server in terms of providing API or service layers to support the enthusiasm of the online development community? Regards, Ya -Original Message- From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: Tuesday, July 03, 2012 5:26 PM To: Wang, Ya; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapServer vs ArcGIS server Ya, MapServer is cgi (or fastcgi). So it doesn't hold data in memory like ArcGIS Server does. Also, each MapServer session (since its cgi) is independent of each other so there is no service to go down. As long as Apache is running, so is MapServer. I find that MapServer scales much better for large numbers of request and multiple maps. ArcGIS Server does well with smaller data sets and less services (due to ram issues). ArcGIS server can be faster to start with, since you are composing your maps graphically, but I find the MapServer mapfile editing much (much) faster for repetitive operations. I can script and copy/paste and (with includes) reuse more styling. With ArcGIS Server, for anything other that setting basic colors, I find it much slower and quite tedious. I find that MapServer works at small or large scale, I run into issues with ArcGIS server at large scales (lots of data and lots of services). Then there is the fact that ArcGIS will change on you over time and the whole architecture can go away and any time. In the time we have been doing MapServer (coming up on 12 years now), ESRI has gone through 6 different (and incompatible) web mapping engines. Our mapserver stuff still works. Something to think about when you are in it for the long haul. Also, when something critical has come up and I need a fix NOW, I have both made my own code changes and requested fixes from the community and had responses within hours (sometimes minutes). That is just not possible with ArcGIS Server. MapServer has a truly impressive community with both enthusiasts and mature business providing development and support (MapGears and Gateway Geomatics are two that I am very familiar with and they are top notch). We are a government agency and MapServer is production code for us, for over a decade. And we serve out a lot of data with it. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 7/3/12 8:50 PM, "Wang, Ya" wrote: >Hello All, > >I am wondering if any of you have experience with both MapServer and >ArcGIS server. How does MapServer compare with ArcGIS server? Besides the >fact that MapServer is more customizable and more extensible and less >expensive, what other advantages do MapServer have against ArcGIS server? > > > >Thanks in advance! > >Ya > > >___ >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] MapServer vs ArcGIS server
Ya, MapServer is cgi (or fastcgi). So it doesn't hold data in memory like ArcGIS Server does. Also, each MapServer session (since its cgi) is independent of each other so there is no service to go down. As long as Apache is running, so is MapServer. I find that MapServer scales much better for large numbers of request and multiple maps. ArcGIS Server does well with smaller data sets and less services (due to ram issues). ArcGIS server can be faster to start with, since you are composing your maps graphically, but I find the MapServer mapfile editing much (much) faster for repetitive operations. I can script and copy/paste and (with includes) reuse more styling. With ArcGIS Server, for anything other that setting basic colors, I find it much slower and quite tedious. I find that MapServer works at small or large scale, I run into issues with ArcGIS server at large scales (lots of data and lots of services). Then there is the fact that ArcGIS will change on you over time and the whole architecture can go away and any time. In the time we have been doing MapServer (coming up on 12 years now), ESRI has gone through 6 different (and incompatible) web mapping engines. Our mapserver stuff still works. Something to think about when you are in it for the long haul. Also, when something critical has come up and I need a fix NOW, I have both made my own code changes and requested fixes from the community and had responses within hours (sometimes minutes). That is just not possible with ArcGIS Server. MapServer has a truly impressive community with both enthusiasts and mature business providing development and support (MapGears and Gateway Geomatics are two that I am very familiar with and they are top notch). We are a government agency and MapServer is production code for us, for over a decade. And we serve out a lot of data with it. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 7/3/12 8:50 PM, "Wang, Ya" wrote: >Hello All, > >I am wondering if any of you have experience with both MapServer and >ArcGIS server. How does MapServer compare with ArcGIS server? Besides the >fact that MapServer is more customizable and more extensible and less >expensive, what other advantages do MapServer have against ArcGIS server? > > > >Thanks in advance! > >Ya > > >___ >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] MapServer vs ArcGIS server
Hello All, I am wondering if any of you have experience with both MapServer and ArcGIS server. How does MapServer compare with ArcGIS server? Besides the fact that MapServer is more customizable and more extensible and less expensive, what other advantages do MapServer have against ArcGIS server? Thanks in advance! Ya ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] One template for every text type
Hi, As report from documentation, MapServer will allow to define a template to set the return from an identify. I need to define almost two distinct kind of returns: One for user (text/plain or text/html) and one for business application (text/xml). So I like to define not only a template for return an XML but also a template for return an html page. I don't know how to say to MapServer what template us for text/html and what for text/xml. Is this possibile ? Thx. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem querying personal GDB
Bob, You may need to add a "using unique" clause like "using unique gid" http://www.mapserver.org/input/vector/postgis.html#data-access-connection-method Best Regards, Brent Fraser On 7/3/2012 2:12 PM, Bistrais, Bob wrote: Please excuse me if this is redundant- I've also posted this to the GeoMoose list, and I can't remember what I've posted where on this issue. I am building an application with MapServer 6.0.2, and GeoMoose 2.6 on the front end. One of the layers is contained in an ESRI personal Geodatabase, i.e. a Microsoft Access database. This layer displays properly. I can also do an Identify on it and get expected results. It's when I try to do a Search (a select by attributes) when things fall apart. Checking the error log, I see msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. It's also worth noting that, if I convert the layer to shapefile and use that in the application, it will work. But there's a few operational considerations that make it preferable to use the GDB. So the problem seems to be with querying the MDB. Does anyone have any ideas? ___ 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] Mapserver docs and i18n
Hello Jeff, hello all, *# First think to understand* I praise the Mapserver community and the team behind the engine. I'm a big fan of Mapserver and Sphinx and I've always love the really great documentation but I know people who deal only with there native language to do the job. So translation is a core part of a project to extend popularity accross countries (althought Mapserver popularity is already established) My motivation is to deal with the french translation with i18n and not with RST. I want to make think better, the way we do it is good but can be improve. Why? Some thoughts to explain below *# Advantages* *1. Fulfillment* Really important for me because a community is based on humans who search small and big achievements and it's more easy with i18n to measure the job. Imagine one rst file of 1000 lines (around 100 lines of empty lines or special rst declarations) You generate is equivalent in pot file. The number of string to translate is 430 Offline: Step by step you see what you've done and can by example, see that you've done 86 lines so, 20% of the job is done for the file. Your objective to go until 30%. When you reach it, you're happy. You've done 10% more of the file translation. Online: See this online app based on pottle for the Qgis community. You can see the http://translate.qgis.org/fr/qgis-user-guide/ example. In this case, you can make a survey of users who contribute, you can review with others, you now if a file translation is completed. You can distribute task between the community of users and not only of advanced users / developpers. You can have a dedicated community of translators who care about content and not about the way to use sphinx and others technical things. *2. Separate presentation from contents* When you generate pot files, the string length is quite short. You don't have to care too much about rst indent : you will not break anything. If the presentation change, you content don't. I'm thinking about the annual change for FOSS4G image. You have to backport it manually with a merge in every langage version. *3. History and maintainability* *## The typical workflow now* You cut and paste a rst file and you make the translation. Ok it's nice!! Why does I need to care about i18n? This guy is crazy!! Because now imagine, you've done the translation 3 years ago (your community said "do it" and it was done). The content was in english (the letter are use to represent a block of content in master version and number for content of translated example) In the past EnglishFrench A 111 B 22 C 33 D 44 E 55 77 H 88 Nowadays B ?? C ?? D ?? FF ?? ?? H ?? The way you do if you kept during three years the file you use to translate the original Compare both english version A dissapear B seems to stay the same (B is a block so are you sure there no typo fixed?) C is the same D is the same E dissapear FF appear is the same H is the same Now find in the french file the corresponding I now A dissapear in english so let's go delete it in the french version Find the equivalent in french of A (where it begins and finish) and delete it Find B block in english and see what was the french string corresponding and replace now Do the same for C, D E dissapear so where is french equivalent (more difficult to find where it begins and finish) to delete FF appear so translate Find G block in english and see what was the french string corresponding and replace now. Do the same for H. You get at the end the result. You just do a semantic three way merge manually (and I haven't imagine a case where there was reordering of content or small string fix) B 22 C 33 D 44 FF 66 77 H 88 *## I18N workflow* First translation EnglishFrench A 11 B 22 C 33 D 44 E 55
[mapserver-users] Problem querying personal GDB
Please excuse me if this is redundant- I've also posted this to the GeoMoose list, and I can't remember what I've posted where on this issue. I am building an application with MapServer 6.0.2, and GeoMoose 2.6 on the front end. One of the layers is contained in an ESRI personal Geodatabase, i.e. a Microsoft Access database. This layer displays properly. I can also do an Identify on it and get expected results. It's when I try to do a Search (a select by attributes) when things fall apart. Checking the error log, I see msEvalExpression(): General error message. Cannot evaluate expression, no item index defined. It's also worth noting that, if I convert the layer to shapefile and use that in the application, it will work. But there's a few operational considerations that make it preferable to use the GDB. So the problem seems to be with querying the MDB. Does anyone have any ideas? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver docs and i18n
Hello Thomas, Thank you for your contributions! Before moving forward, I would like to hear more about the problems you are having with restructured text files. Now that we have moved to Github I am noticing more contributions from users directly through those rst/text files and their Github clones (wow excellent!). Also, this is the first I have heard of problems with translated files (a system has been in place for language support for several years now; you can see all of the different translations in the source directory - German, Spanish, French, Italian, and recently Chinese https://github.com/mapserver/docs/tree/master). So yes, I agree, before making any changes, let's have a high-level public discussion about what is good currently, what is a challenge/problematic, and how we can keep contributors happy in all languages. (a wise man once told me 'if it ain't broke don't fix it', so it's good to discuss things before making changes) Thanks for this discussion! :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-03 11:58 AM, Thomas Gratier wrote: > Hello list, > > I've been working since some weeks on making i18n available in Mapserver > docs. I've done some translation in the past of french part and I was > fed up with maintaining rst files languages to languages and not simple > shorts strings. For the french part, I've already backported all to i18n > system. > I've already submit a pull request (e.g > https://github.com/mapserver/docs/pull/7) on Github but a community > feedback is welcome because this request can change the way we do > translations on the project. > For already existing translation, things can stay as they 're depending > on every langage community. > You can read more about the process > https://github.com/ThomasG77/docs/wiki/How_to-i18n > All inputs are welcome against like for > > Regards > > ThomasG77 > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] msLoadMSRasterBufferFromFile(): General error message. unable to open file
Hello, my SYMBOLSET file is wrong, in the middle of the file had an END that was not read the rest of symbols, so mapserver not find them. I already work correctly. Thank you very much for everything. Regards Pepe -- View this message in context: http://osgeo-org.1560.n6.nabble.com/msLoadMSRasterBufferFromFile-General-error-message-unable-to-open-file-tp4984932p4985716.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver docs and i18n
Hello list, I've been working since some weeks on making i18n available in Mapserver docs. I've done some translation in the past of french part and I was fed up with maintaining rst files languages to languages and not simple shorts strings. For the french part, I've already backported all to i18n system. I've already submit a pull request (e.g https://github.com/mapserver/docs/pull/7) on Github but a community feedback is welcome because this request can change the way we do translations on the project. For already existing translation, things can stay as they 're depending on every langage community. You can read more about the process https://github.com/ThomasG77/docs/wiki/How_to-i18n All inputs are welcome against like for Regards ThomasG77 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapcache - wmts - getfeatureinfo
Hi, working with mapcache I'm trying to do a getfeatureinfo request to a wmts service. * I have my wms and I can do the getfeatureinfo request like: http://localhost/cgi-bin/mapserv?map=/var/www/mapserver/mapfile/meteosat_parametros.map&Service=WMS&Version=1.1.0&Request=GetFeatureInfo&LAYERS=meteosat&QUERY_LAYERS=meteosat&SRS=EPSG:4326&BBOx=-2.464,38.269,6.021,44.284&WIDTH=700&HEIGHT=500&X=240&Y=330&info_format=text/html&any=2012&mes=05&dia=20&hora=01&minut=00&acum=60 * throught mapcache I can do the gettile request like: http://localhost/mapcache/wmts/?ANY=2012&MES=05&DIA=20&HORA=02&MINUT=00&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=Meteosat_params&STYLE=default&TILEMATRIXSET=WGS84&TILEMATRIX=3&TILEROW=4&TILECOL=10&FORMAT=image/png * But when I try to do the getfeatureinfo throught wmts with mapcache I get an error: http://localhost/mapcache/wmts/?ANY=2012&MES=05&DIA=20&HORA=02&MINUT=00&SERVICE=WMTS&REQUEST=GetFeatureInfo&VERSION=1.0.0&LAYER=Meteosat_params&QUERY_LAYERS=Meteosat_params&TILEMATRIXSET=WGS84&TILEMATRIX=3&TILEROW=4&TILECOL=10&i=10&j=10&infoformat=text/html Somebody knows wich is the problem? the getcapabilities of the wmts in mapcache returns that the getfeatureinfo as a possible operation but I cant do the request. Thanks, Helen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] msLoadMSRasterBufferFromFile(): General error message. unable to open file
You're getting this error because the "7383" symbol was not found in the symbolset. I would first check you are actually loading the symbolset that contains the definition for 7383, or even inline the 7383 symbol in your mapfile. If that still fails, try renaming your symbol to something that begins with non numeric characters. If the last action solves your problem, please open a issue as this would be a bug. regards, thomas On Fri, Jun 29, 2012 at 6:15 PM, xam wrote: > Hello, I recently updated to version 6.0.2 mapserver. > > I have a mapfile that uses a file of symbols, which use a truetype font that > I have defined it. > In version 5.6 worked perfectly, but now I have this message: /msDrawMap (): > Image handling error. Failed to draw layer named 'airport'. > msLoadMSRasterBufferFromFile (): General error message. unable to open file > /var/www/ms/7383 for reading./ > > The airport layer definition is: > > CLASS > NAME 'Airport' > STYLE >SYMBOL "7383" >SIZE 16 >COLOR 110 110 110 >OUTLINECOLOR 255 0 0 > END > LABEL >FONT sans >TYPE truetype >SIZE 8 >COLOR 0 0 0 >ANGLE 0 >POSITION uc >FORCE true >AntiAlias true ># PARTIALS true ># BackgroundColor 255 255 255 >OUTLINEWIDTH 5 >OUTLINECOLOR 255 255 255 >BUFFER 10 > END > END > > and the symbol 7383: > > SYMBOL # Airport >NAME "7383" >TYPE TRUETYPE >FONT "poi" >CHARACTER "B" >TRUE AntiAlias > END > > The source truetype "poi" I have created myself and I have included in the > file fonts. > I thought it could be for OUTPUTFORMAT, I use > DRIVER AGG / PNG > IMAGEMODE RGBA, but don't know. > > Might miss some library? > > Thanks for your help > Pepe > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/msLoadMSRasterBufferFromFile-General-error-message-unable-to-open-file-tp4984932.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > 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] Pie chart does not show
Hi, Not sure what your're trying to obtain, or how to write mssql queries, but charts work when your data query returns rows that are of the form: [geometry,attribute1,attribute2,attribute3,...] each pie slice is defined with a mapserver CLASS: CLASS NAME "attribute1" STYLE SIZE [attribute1] COLOR r1 g1 b1 END END CLASS NAME "attribute2" STYLE SIZE [attribute2] COLOR r2 g2 b2 END END -- thomas On Tue, Jul 3, 2012 at 12:59 AM, julia paredes wrote: > Hi all > > I want to create a pie chart for some data. The problem that I'm facing is > that i'm not getting any errors when I test the layer using shp2img; > however, I just get a white image. This is my mapfile: > > MAP > EXTENT -20037508 -20037508 20037508 20037508 > SIZE 400 400 > IMAGETYPE PNG > LAYER > NAME "Survey" > TYPE CHART > CONNECTIONTYPE OGR > CONNECTION "MSSQL:server=myserver;database=data;uid=me;pwd=key" > DATA "SELECT Option, COUNT(*) AS RESULT FROM Survey GROUP BY Option" > PROCESSING "CHART_TYPE=pie" > PROCESSING "CHART_SIZE=30" > STATUS ON > CLASSITEM 'Option' > CLASS > EXPRESSION '1' > NAME "one" > STYLE > SIZE [RESULT] > COLOR 255 244 237 > END > END > CLASS > EXPRESSION '2' > NAME "two" > STYLE > SIZE [RESULT] > COLOR 255 217 191 > END > END > CLASS > EXPRESSION '3' > NAME "three" > STYLE > SIZE [RESULT] > COLOR 255 186 140 > END > END > CLASS > EXPRESSION '4' > NAME "Four" > STYLE > SIZE [RESULT] > COLOR 255 186 0 > END > END > END > END > > > Any ideas of what could be missing in my mapfile? > > Thanks > > ___ > 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