From Andreas.Eichner at sid.sachsen.de Mon Jul 2 00:15:26 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 2 Jul 2012 09:15:26 +0200 Subject: [mapserver-users] [Mapserver-users] map cache - is it possible to access different was sources based on the current resolution or scale? References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> <36CA828A36E29F45B7CF0A1766E5DFA312E920@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A3@KS-EVS1.smi.sachsen.de> <36CA828A36E29F45B7CF0A1766E5DFA312FF72@swmail01.r8nssis.local> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3AB@KS-EVS1.smi.sachsen.de> Hello, > Second, I am using windows (ms4w) so I don't > know if that would have an impact on how or if I can set up > seemliness. Did you set your seemliness up in the Linux OS, > or under the Apache configuration? I set it up under Linux. Apache and even MapCache are out of scope since this is a trick using pure filesystem capabilities. I asked a windows system administrator and he told me that Windows 7 and Windows Server 2008 support hard links. The easiest way to set this up would be to let the Apache web server/MapCache create the filesystem structure by requesting at least one tile for every zoom level of both tilesets. When this works as expected then you can delete the level directories of one tileset for the levels to be shared an recreate them as links to the directories of the second tileset. HTH From fabiobrolese-forum at yahoo.it Mon Jul 2 15:19:39 2012 From: fabiobrolese-forum at yahoo.it (Fabio Brolese) Date: Mon, 2 Jul 2012 23:19:39 +0100 (BST) Subject: [mapserver-users] how to select an object on a map Message-ID: <1341267579.55105.YahooMailNeo@web132401.mail.ird.yahoo.com> Hello, I have a map drawn using MapServer (of course) and object drawn on the map getting their coordinates from a PostGIS db. What I want to do is select an object with the mouse and then show its detailed informations in a info page. Can anyone give me a suggestion on how to do this? TIA Fabio -------------- next part -------------- An HTML attachment was scrubbed... URL: From japr94 at hotmail.com Mon Jul 2 15:59:43 2012 From: japr94 at hotmail.com (julia paredes) Date: Mon, 2 Jul 2012 22:59:43 +0000 Subject: [mapserver-users] Pie chart does not show Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jul 3 06:10:05 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Jul 2012 15:10:05 +0200 Subject: [mapserver-users] Pie chart does not show In-Reply-To: References: Message-ID: 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Tue Jul 3 06:13:50 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Jul 2012 15:13:50 +0200 Subject: [mapserver-users] msLoadMSRasterBufferFromFile(): General error message. unable to open file In-Reply-To: <1340986527975-4984932.post@n6.nabble.com> References: <1340986527975-4984932.post@n6.nabble.com> Message-ID: 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hsansegundo at meteo.cat Tue Jul 3 07:25:01 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Tue, 3 Jul 2012 16:25:01 +0200 Subject: [mapserver-users] mapcache - wmts - getfeatureinfo In-Reply-To: <4FED80EE.5060507@meteo.cat> References: <36CA828A36E29F45B7CF0A1766E5DFA312E8B8@swmail01.r8nssis.local> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3A1@KS-EVS1.smi.sachsen.de> <4FED80EE.5060507@meteo.cat> Message-ID: <4FF300BD.2000500@meteo.cat> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Tue Jul 3 07:58:24 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Tue, 3 Jul 2012 16:58:24 +0200 Subject: [mapserver-users] Mapserver docs and i18n Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From torrespri at gmail.com Tue Jul 3 08:04:01 2012 From: torrespri at gmail.com (xam) Date: Tue, 3 Jul 2012 08:04:01 -0700 (PDT) Subject: [mapserver-users] msLoadMSRasterBufferFromFile(): General error message. unable to open file In-Reply-To: References: <1340986527975-4984932.post@n6.nabble.com> Message-ID: <1341327841349-4985716.post@n6.nabble.com> 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. From jmckenna at gatewaygeomatics.com Tue Jul 3 08:30:54 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 03 Jul 2012 12:30:54 -0300 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: References: Message-ID: <4FF3102E.70007@gatewaygeomatics.com> 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 > From Bob.Bistrais at maine.gov Tue Jul 3 13:12:31 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 3 Jul 2012 20:12:31 +0000 Subject: [mapserver-users] Problem querying personal GDB Message-ID: 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Tue Jul 3 13:13:05 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Tue, 3 Jul 2012 22:13:05 +0200 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: <4FF3102E.70007@gatewaygeomatics.com> References: <4FF3102E.70007@gatewaygeomatics.com> Message-ID: 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 English French AAAAAAAAA 1111111 BBBBBBBBB 222222 CCCCCCCCC 333333 DDDDDDDDD 444444 EEEEEEEEE 555555 GGGGGGGG 777777 HHHHHHHHH 888888 Nowadays BBBBBBBBB ?????? CCCCCCCCC ?????? DDDDDDDDD ?????? FFFFFFFFFF ?????? GGGGGGGG ?????? HHHHHHHHH ?????? The way you do if you kept during three years the file you use to translate the original Compare both english version AAAAAAAAA dissapear BBBBBBBBB seems to stay the same (BBBBBBBBB is a block so are you sure there no typo fixed?) CCCCCCCCC is the same DDDDDDDDD is the same EEEEEEEEE dissapear FFFFFFFFFF appear GGGGGGGG is the same HHHHHHHHH is the same Now find in the french file the corresponding I now AAAAAAAAA dissapear in english so let's go delete it in the french version Find the equivalent in french of AAAAAAAAA (where it begins and finish) and delete it Find BBBBBBBBB block in english and see what was the french string corresponding and replace now Do the same for CCCCCCCCC, DDDDDDDDD EEEEEEEEE dissapear so where is french equivalent (more difficult to find where it begins and finish) to delete FFFFFFFFFF appear so translate Find GGGGGGGGG block in english and see what was the french string corresponding and replace now. Do the same for HHHHHHHHH. 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) BBBBBBBBB 222222 CCCCCCCCC 333333 DDDDDDDDD 444444 FFFFFFFFFF 666666 GGGGGGGG 777777 HHHHHHHHH 888888 *## I18N workflow* First translation English French AAAAAAAAA 111111 BBBBBBBBB 222222 CCCCCCCCC 333333 DDDDDDDDD 444444 EEEEEEEEE 555555 GGGGGGGG 777777 HHHHHHHHH 888888 In the future, (if community change nothing) BBBBBBBBB ?????? CCCCCCCCC ?????? DDDDDDDDD ?????? FFFFFFFFFF ?????? GGGGGGGG ?????? HHHHHHHHH ?????? The way how msgmerge or manual poedit merge do Open the translated file at a time (po file), open the newly pot file and say merge. What happen, the block AAAAAAAAA match nothing compare to before so comment in the po file BBBBBBBBB block match, keep it. CCCCCCCCC block match, keep it. DDDDDDDDD block match, keep it. The block EEEEEEEEE match nothing compare to before so comment in the po file FFFFFFFFFF match nothing but wasn't there ,so add it GGGGGGGG block match, keep it. HHHHHHHHH block match, keep it. The UI like poedit or pootle tell you, you only have to translate FFFFFFFFF, the three way merge is mostly done automatically. That the only job. Quite nice compare to before You foreign (not english) language is more easily updated like that and small change are easy to see. *# Drawbacks* 1. Less flexibility because, the workflow to be in the core doc repository is to ask to integrate change in the english version (master version) and after, you backport everything in every langage. 2. Some content are outside of the i18n parsing with sphinx. When you generate i18n strings, see also directive or caption (for legend of image) are not parsed. So you must refactor a bit the syntax for image caption to put the legend outside. The same for see also. 3. Need to add more explicit links in original doc Example for the glossary :ref:`gis` must be replace with :ref:`gis `__ because not helpful for translators not aware of sphinx syntax (the problem is already the same nowadays) Sorry for the long "monologue" Any reactions welcome Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Jul 3 15:01:03 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 03 Jul 2012 16:01:03 -0600 Subject: [mapserver-users] Problem querying personal GDB In-Reply-To: References: Message-ID: <4FF36B9F.3000108@geoanalytic.com> 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Jul 3 15:42:24 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 4 Jul 2012 00:42:24 +0200 Subject: [mapserver-users] One template for every text type Message-ID: 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 ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ya.Wang at vta.org Tue Jul 3 16:50:56 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Tue, 3 Jul 2012 23:50:56 +0000 Subject: [mapserver-users] MapServer vs ArcGIS server In-Reply-To: References: Message-ID: 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 From Michael.Smith at erdc.dren.mil Tue Jul 3 17:25:27 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 4 Jul 2012 00:25:27 +0000 Subject: [mapserver-users] MapServer vs ArcGIS server In-Reply-To: Message-ID: 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 at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Ya.Wang at vta.org Tue Jul 3 17:33:30 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Wed, 4 Jul 2012 00:33:30 +0000 Subject: [mapserver-users] MapServer vs ArcGIS server In-Reply-To: References: Message-ID: 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.Smith at erdc.dren.mil] Sent: Tuesday, July 03, 2012 5:26 PM To: Wang, Ya; mapserver-users at 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 at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Tue Jul 3 17:45:20 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Wed, 4 Jul 2012 06:15:20 +0530 Subject: [mapserver-users] MapServer vs ArcGIS server In-Reply-To: References: Message-ID: <0526C3FD-5EEE-465F-9257-DD1DE1A74B9D@gmail.com> 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 From admin at michiganwxsystem.com Tue Jul 3 19:27:57 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Tue, 03 Jul 2012 22:27:57 -0400 Subject: [mapserver-users] World file creation Message-ID: <4FF3AA2D.2020107@michiganwxsystem.com> 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 From flavio at tydac.ch Tue Jul 3 22:13:29 2012 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 04 Jul 2012 07:13:29 +0200 Subject: [mapserver-users] MapServer vs ArcGIS server In-Reply-To: References: Message-ID: <4FF3D0F9.4030105@tydac.ch> 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:flavio at 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 ---------------------------------------------------------------- From stephan at meissl.name Wed Jul 4 02:45:39 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Wed, 04 Jul 2012 11:45:39 +0200 Subject: [mapserver-users] wms_accessconstraints In-Reply-To: References: Message-ID: <1341395140.2844.64.camel@io> On Wed, 2012-07-04 at 10:19 +0200, Bjarne Fagerbakke wrote: > ? > Hi, > > I am reading in the mapserver > documentation http://mapserver.org/development/rfc/ms-rfc-75.html that > mapserver 6.2 supports accessconstraints as described below. > > "wms_accessconstraints" "None" #value according ISO 19115 > (MD_RestrictionCode codelist) or default "None" > > Do you have an example showing how to implement use of a codelist? > > Best regards, > > City of Oslo, > Agency for Planning and Building Services > > Bjarne Fagerbakke Hi Bjarne, please copy the mapserver-users mailing list so that everybody can benefit from the discussion. Regarding your question, the comment is meant to explain that you have to provide the value for the parameter by yourself. You might want to look up a particular value in the codelist established in ISO 19115 as those are the values mandated by INSPIRE AFAIK. HTH, Stephan From yjacolin at free.fr Wed Jul 4 05:44:06 2012 From: yjacolin at free.fr (Yves Jacolin) Date: Wed, 4 Jul 2012 05:44:06 -0700 (PDT) Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: References: <4FF3102E.70007@gatewaygeomatics.com> Message-ID: <1341405846621-4985969.post@n6.nabble.com> Hello, Thanks Thomas it is interesting to get I18n directly inside Sphinx. I know that other project are going to use it also, as QGIS. Interesting because QGIS project will use Pootle with GitHub [1]. Contributor can work on the translation either via Pottl, text file or Ktranslator (or any application working on translation file). The drawbacks is that it needs works from translator to move their translation to the new system. It is better to choose quickly wich way we choose because I have some file in my file (almost all mapfile section has been translated). I have no opinion at this moment because I can help translating MapServer doc directly via GitHub but it seems that some people are enjoying working with Pootle as it really simplifies the process. I will probably use the QGIS pootle infrastructure also. @Thomas: I am using diff file for GDAL translation and it is quiet easy to see what have been changed. Thanks anyway, Y. [1] http://translate.qgis.org/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-docs-and-i18n-tp4985714p4985969.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Wed Jul 4 06:31:19 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 04 Jul 2012 07:31:19 -0600 Subject: [mapserver-users] World file creation In-Reply-To: <4FF3AA2D.2020107@michiganwxsystem.com> References: <4FF3AA2D.2020107@michiganwxsystem.com> Message-ID: <4FF445A7.3000206@geoanalytic.com> Jeff, World files use projected x/y coordinates. Use the Proj4 library functions (in Mapscript) to project the upper left and lower right spherical lon/lat coordinates to x/y, then use the image size (length, width) to calculate the values for the world file (http://en.wikipedia.org/wiki/World_file) Best Regards, Brent Fraser On 7/3/2012 8:27 PM, Jeff Lake wrote: > 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 > From thomas.bonfort at gmail.com Wed Jul 4 06:46:14 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 4 Jul 2012 15:46:14 +0200 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: References: <4FF3102E.70007@gatewaygeomatics.com> Message-ID: Hi Thomas, I'm all for simplifying the translation workflow. I tend to dislike the current one we have setup because it is difficult for translators to keep track of what has been added/modified in the english version, resulting in outdated translated docs which in my opinion is worse than having no translation at all. More inline... On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier wrote: > 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 > > English French > > AAAAAAAAA 1111111 > BBBBBBBBB 222222 > CCCCCCCCC 333333 > DDDDDDDDD 444444 > EEEEEEEEE 555555 > GGGGGGGG 777777 > HHHHHHHHH 888888 > > Nowadays > > BBBBBBBBB ?????? > CCCCCCCCC ?????? > DDDDDDDDD ?????? > FFFFFFFFFF ?????? > GGGGGGGG ?????? > HHHHHHHHH ?????? > > The way you do if you kept during three years the file you use to translate > the original > > Compare both english version > > AAAAAAAAA dissapear > BBBBBBBBB seems to stay the same (BBBBBBBBB is a block so are you sure there > no typo fixed?) > CCCCCCCCC is the same > DDDDDDDDD is the same > EEEEEEEEE dissapear > FFFFFFFFFF appear > GGGGGGGG is the same > HHHHHHHHH is the same > > Now find in the french file the corresponding > > I now AAAAAAAAA dissapear in english so let's go delete it in the french > version > > Find the equivalent in french of AAAAAAAAA (where it begins and finish) and > delete it > Find BBBBBBBBB block in english and see what was the french string > corresponding and replace now > Do the same for CCCCCCCCC, DDDDDDDDD > EEEEEEEEE dissapear so where is french equivalent (more difficult to find > where it begins and finish) to delete > FFFFFFFFFF appear so translate > Find GGGGGGGGG block in english and see what was the french string > corresponding and replace now. > Do the same for HHHHHHHHH. > > 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) > > BBBBBBBBB 222222 > CCCCCCCCC 333333 > DDDDDDDDD 444444 > FFFFFFFFFF 666666 > GGGGGGGG 777777 > HHHHHHHHH 888888 > > ## I18N workflow > > First translation > > English French > > AAAAAAAAA 111111 > BBBBBBBBB 222222 > CCCCCCCCC 333333 > DDDDDDDDD 444444 > EEEEEEEEE 555555 > GGGGGGGG 777777 > HHHHHHHHH 888888 > > In the future, (if community change nothing) > > BBBBBBBBB ?????? > CCCCCCCCC ?????? > DDDDDDDDD ?????? > FFFFFFFFFF ?????? > GGGGGGGG ?????? > HHHHHHHHH ?????? > > The way how msgmerge or manual poedit merge do > > Open the translated file at a time (po file), open the newly pot file and > say merge. > > What happen, > the block AAAAAAAAA match nothing compare to before so comment in the po > file > BBBBBBBBB block match, keep it. > CCCCCCCCC block match, keep it. > DDDDDDDDD block match, keep it. > The block EEEEEEEEE match nothing compare to before so comment in the po > file > FFFFFFFFFF match nothing but wasn't there ,so add it > GGGGGGGG block match, keep it. > HHHHHHHHH block match, keep it. > > The UI like poedit or pootle tell you, you only have to translate FFFFFFFFF, > the three way merge is mostly done automatically. > That the only job. Quite nice compare to before > > You foreign (not english) language is more easily updated like that and > small change are easy to see. > > # Drawbacks > > 1. Less flexibility because, the workflow to be in the core doc repository > is to ask to integrate change in the english version (master version) and > after, you backport everything in every langage. I don't understand how this is different from the current workflow where the english docs are updated and the translator maintainers have to backport to their language, can you elaborate please ? > > 2. Some content are outside of the i18n parsing with sphinx. > When you generate i18n strings, see also directive or caption (for legend of > image) are not parsed. So you must refactor a bit the syntax for image > caption to put the legend outside. The same for see also. can you give an example of such a change ? > > 3. Need to add more explicit links in original doc > Example for the glossary :ref:`gis` must be replace with :ref:`gis `__ > because not helpful for translators not aware of sphinx syntax (the problem > is already the same nowadays) I don't think this is a big issue. Doc writers will need to adapt, but I know that that my habit is to copy what's already present in the code so it won't be a problem if you fix the current refs once and for all. Aside from these 3 limitations, it is my understanding that the workflow for contributing to the original english docs will be unchanged (i.e. we will keep directly modifying the en/*.rst files), am I correct ? Provided the answer to the previous question was "yes", and that the updated method does not disrupt the other languages (for now at least), I would be ok for the change. cheers, thomas > > Sorry for the long "monologue" > > Any reactions welcome > > Regards > > ThomasG > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Ya.Wang at vta.org Wed Jul 4 10:37:54 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Wed, 4 Jul 2012 17:37:54 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 54, Issue 5 In-Reply-To: References: Message-ID: Flavio, Thank you very much for sharing. Just like Mike's, your information is also very helpful. I really appreciate it. Follow your link, I see a rich inventory of web services offered by ESRI, which are available through ARCGIS Server API interface. If I understand it correctly, I need to have ARC GIS Server in order to use those web services in my web application or in my smart phone application developed with SDK. Do let me know if I am wrong. The use of Map Service Layers created with MapServer on the other hand doesn't require any expensive software. However, there is no big player like ESRI to compile a list of MapServer map service layers out there in the world. This leads to my other question. I know I can load MapServer map service layers into all kinds of desktop clients such as UDig, QGIS, etc. How about service layers created by ARCGIS Server? Can I do the same thing? Regard, Ya -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Wednesday, July 04, 2012 5:44 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 54, Issue 5 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. One template for every text type (Andrea Peri) 2. MapServer vs ArcGIS server (Wang, Ya) 3. Re: MapServer vs ArcGIS server (Smith, Michael ERDC-RDE-CRREL-NH) 4. Re: MapServer vs ArcGIS server (Wang, Ya) 5. Re: MapServer vs ArcGIS server (Mr. Puneet Kishor) 6. World file creation (Jeff Lake) 7. Re: MapServer vs ArcGIS server (Flavio Hendry) 8. Re: wms_accessconstraints (Stephan Mei?l) 9. Re: Mapserver docs and i18n (Yves Jacolin) ---------------------------------------------------------------------- Message: 1 Date: Wed, 4 Jul 2012 00:42:24 +0200 From: Andrea Peri To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] One template for every text type Message-ID: Content-Type: text/plain; charset="iso-8859-1" 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 ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Tue, 3 Jul 2012 23:50:56 +0000 From: "Wang, Ya" To: "mapserver-users at lists.osgeo.org" Subject: [mapserver-users] MapServer vs ArcGIS server Message-ID: Content-Type: text/plain; charset="us-ascii" 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 ------------------------------ Message: 3 Date: Wed, 4 Jul 2012 00:25:27 +0000 From: "Smith, Michael ERDC-RDE-CRREL-NH" To: "Wang, Ya" , "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] MapServer vs ArcGIS server Message-ID: Content-Type: text/plain; charset="us-ascii" 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 at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Wed, 4 Jul 2012 00:33:30 +0000 From: "Wang, Ya" To: "'Smith, Michael ERDC-RDE-CRREL-NH'" , "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] MapServer vs ArcGIS server Message-ID: Content-Type: text/plain; charset="us-ascii" 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.Smith at erdc.dren.mil] Sent: Tuesday, July 03, 2012 5:26 PM To: Wang, Ya; mapserver-users at 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 at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 5 Date: Wed, 4 Jul 2012 06:15:20 +0530 From: "Mr. Puneet Kishor" To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer vs ArcGIS server Message-ID: <0526C3FD-5EEE-465F-9257-DD1DE1A74B9D at gmail.com> Content-Type: text/plain; charset=us-ascii 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 ------------------------------ Message: 6 Date: Tue, 03 Jul 2012 22:27:57 -0400 From: Jeff Lake To: MapServer Subject: [mapserver-users] World file creation Message-ID: <4FF3AA2D.2020107 at michiganwxsystem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 ------------------------------ Message: 7 Date: Wed, 04 Jul 2012 07:13:29 +0200 From: Flavio Hendry To: "Wang, Ya" Cc: "mapserver-users at lists.osgeo.org" , "'Smith, Michael ERDC-RDE-CRREL-NH'" Subject: Re: [mapserver-users] MapServer vs ArcGIS server Message-ID: <4FF3D0F9.4030105 at tydac.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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:flavio at 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 ---------------------------------------------------------------- ------------------------------ Message: 8 Date: Wed, 04 Jul 2012 11:45:39 +0200 From: Stephan Mei?l To: Bjarne Fagerbakke Cc: mapserver-users , "'stefan.leopold at reflex.at'" Subject: Re: [mapserver-users] wms_accessconstraints Message-ID: <1341395140.2844.64.camel at io> Content-Type: text/plain; charset="UTF-8" On Wed, 2012-07-04 at 10:19 +0200, Bjarne Fagerbakke wrote: > ? > Hi, > > I am reading in the mapserver > documentation http://mapserver.org/development/rfc/ms-rfc-75.html that > mapserver 6.2 supports accessconstraints as described below. > > "wms_accessconstraints" "None" #value according ISO 19115 > (MD_RestrictionCode codelist) or default "None" > > Do you have an example showing how to implement use of a codelist? > > Best regards, > > City of Oslo, > Agency for Planning and Building Services > > Bjarne Fagerbakke Hi Bjarne, please copy the mapserver-users mailing list so that everybody can benefit from the discussion. Regarding your question, the comment is meant to explain that you have to provide the value for the parameter by yourself. You might want to look up a particular value in the codelist established in ISO 19115 as those are the values mandated by INSPIRE AFAIK. HTH, Stephan ------------------------------ Message: 9 Date: Wed, 4 Jul 2012 05:44:06 -0700 (PDT) From: Yves Jacolin To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver docs and i18n Message-ID: <1341405846621-4985969.post at n6.nabble.com> Content-Type: text/plain; charset=us-ascii Hello, Thanks Thomas it is interesting to get I18n directly inside Sphinx. I know that other project are going to use it also, as QGIS. Interesting because QGIS project will use Pootle with GitHub [1]. Contributor can work on the translation either via Pottl, text file or Ktranslator (or any application working on translation file). The drawbacks is that it needs works from translator to move their translation to the new system. It is better to choose quickly wich way we choose because I have some file in my file (almost all mapfile section has been translated). I have no opinion at this moment because I can help translating MapServer doc directly via GitHub but it seems that some people are enjoying working with Pootle as it really simplifies the process. I will probably use the QGIS pootle infrastructure also. @Thomas: I am using diff file for GDAL translation and it is quiet easy to see what have been changed. Thanks anyway, Y. [1] http://translate.qgis.org/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-docs-and-i18n-tp4985714p4985969.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 54, Issue 5 ********************************************** From osgeo.mailinglist at gmail.com Wed Jul 4 12:51:03 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Wed, 4 Jul 2012 21:51:03 +0200 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: References: <4FF3102E.70007@gatewaygeomatics.com> Message-ID: Hello, My answer are inline with bold cross *XXXXXXXXXXXXXX* just before (for mail in html) Uline of inline of inline start to be difficult to read ;) Regards ThomasG77 2012/7/4 thomas bonfort > Hi Thomas, > > I'm all for simplifying the translation workflow. I tend to dislike > the current one we have setup because it is difficult for translators > to keep track of what has been added/modified in the english version, > resulting in outdated translated docs which in my opinion is worse > than having no translation at all. > > More inline... > > On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier > wrote: > > 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 > > > > English French > > > > AAAAAAAAA 1111111 > > BBBBBBBBB 222222 > > CCCCCCCCC 333333 > > DDDDDDDDD 444444 > > EEEEEEEEE 555555 > > GGGGGGGG 777777 > > HHHHHHHHH 888888 > > > > Nowadays > > > > BBBBBBBBB ?????? > > CCCCCCCCC ?????? > > DDDDDDDDD ?????? > > FFFFFFFFFF ?????? > > GGGGGGGG ?????? > > HHHHHHHHH ?????? > > > > The way you do if you kept during three years the file you use to > translate > > the original > > > > Compare both english version > > > > AAAAAAAAA dissapear > > BBBBBBBBB seems to stay the same (BBBBBBBBB is a block so are you sure > there > > no typo fixed?) > > CCCCCCCCC is the same > > DDDDDDDDD is the same > > EEEEEEEEE dissapear > > FFFFFFFFFF appear > > GGGGGGGG is the same > > HHHHHHHHH is the same > > > > Now find in the french file the corresponding > > > > I now AAAAAAAAA dissapear in english so let's go delete it in the french > > version > > > > Find the equivalent in french of AAAAAAAAA (where it begins and finish) > and > > delete it > > Find BBBBBBBBB block in english and see what was the french string > > corresponding and replace now > > Do the same for CCCCCCCCC, DDDDDDDDD > > EEEEEEEEE dissapear so where is french equivalent (more difficult to find > > where it begins and finish) to delete > > FFFFFFFFFF appear so translate > > Find GGGGGGGGG block in english and see what was the french string > > corresponding and replace now. > > Do the same for HHHHHHHHH. > > > > 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) > > > > BBBBBBBBB 222222 > > CCCCCCCCC 333333 > > DDDDDDDDD 444444 > > FFFFFFFFFF 666666 > > GGGGGGGG 777777 > > HHHHHHHHH 888888 > > > > ## I18N workflow > > > > First translation > > > > English French > > > > AAAAAAAAA 111111 > > BBBBBBBBB 222222 > > CCCCCCCCC 333333 > > DDDDDDDDD 444444 > > EEEEEEEEE 555555 > > GGGGGGGG 777777 > > HHHHHHHHH 888888 > > > > In the future, (if community change nothing) > > > > BBBBBBBBB ?????? > > CCCCCCCCC ?????? > > DDDDDDDDD ?????? > > FFFFFFFFFF ?????? > > GGGGGGGG ?????? > > HHHHHHHHH ?????? > > > > The way how msgmerge or manual poedit merge do > > > > Open the translated file at a time (po file), open the newly pot file and > > say merge. > > > > What happen, > > the block AAAAAAAAA match nothing compare to before so comment in the po > > file > > BBBBBBBBB block match, keep it. > > CCCCCCCCC block match, keep it. > > DDDDDDDDD block match, keep it. > > The block EEEEEEEEE match nothing compare to before so comment in the po > > file > > FFFFFFFFFF match nothing but wasn't there ,so add it > > GGGGGGGG block match, keep it. > > HHHHHHHHH block match, keep it. > > > > The UI like poedit or pootle tell you, you only have to translate > FFFFFFFFF, > > the three way merge is mostly done automatically. > > That the only job. Quite nice compare to before > > > > You foreign (not english) language is more easily updated like that and > > small change are easy to see. > > > > # Drawbacks > > > > 1. Less flexibility because, the workflow to be in the core doc > repository > > is to ask to integrate change in the english version (master version) and > > after, you backport everything in every langage. > > I don't understand how this is different from the current workflow > where the english docs are updated and the translator maintainers have > to backport to their language, can you elaborate please ? > *XXXXXXXXXXXXXX* I was thinking that in some case, community have push for their language in first and after backport this contribution to english. I'm not aware of complete history but I was thinking that the part http://www.mapserver.org/mapfile/symbology/construction.html was created in German and after translated in English. I've maybe made a mistake and it never happens like that. > > > > 2. Some content are outside of the i18n parsing with sphinx. > > When you generate i18n strings, see also directive or caption (for > legend of > > image) are not parsed. So you must refactor a bit the syntax for image > > caption to put the legend outside. The same for see also. > > can you give an example of such a change ? > > *XXXXXXXXXXXXXX* .. figure:: picture.png :scale: 50 % :alt: map to buried treasure This is the caption of the figure (a simple paragraph). The legend consists of all elements after the caption. In this case, the legend consists of this paragraph and the following table: Have to be transformated to .. figure:: picture.png :scale: 50 % :alt: map to buried treasure This is the caption of the figure (a simple paragraph). The legend consists of all elements after the caption. In this case, the legend consists of this paragraph and the following table: For the see also case, I haven't found better than putting content outside of a directive like that and use bold for example to change font style. I've also open a bug/enhancement ticket on sphinx tracker e.g https://bitbucket.org/birkenfeld/sphinx/issue/960/directive-seelaso-ignored-in-the-gettextbecause this missing/bug feature is quite annoying (althougth it can be acceptable because most "seealso" rst directive are only link references) An RST "guru" have maybe a better alternative than that. > > > > 3. Need to add more explicit links in original doc > > Example for the glossary :ref:`gis` must be replace with :ref:`gis > `__ > > because not helpful for translators not aware of sphinx syntax (the > problem > > is already the same nowadays) > > I don't think this is a big issue. Doc writers will need to adapt, but > I know that that my habit is to copy what's already present in the > code so it won't be a problem if you fix the current refs once and for > all. > > > Aside from these 3 limitations, it is my understanding that the > workflow for contributing to the original english docs will be > unchanged (i.e. we will keep directly modifying the en/*.rst files), > am I correct ? > *XXXXXXXXXXXXXX* Yes, workflow will not changed. English is in pure rst and stay like that. Each community can make choice depending on their preferences. For the moment, we're looping throught variable TRANSLATIONS = de es fr Imagine the french community choose to make the move to i18n just have to make change below TRANSLATIONS = de es TRANSLATIONI18N = fr So German community or Spanish one are not impacted and they can switch or not (I've just added a loop for dealing with TRANSLATIONI18N) That why I've said I haven't reinvented the wheel because I respect both old way of doing and maybe future i18n way. > > Provided the answer to the previous question was "yes", and that the > updated method does not disrupt the other languages (for now at > least), I would be ok for the change. > > cheers, > thomas > > > > > Sorry for the long "monologue" > > > > Any reactions welcome > > > > Regards > > > > ThomasG > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Wed Jul 4 19:14:28 2012 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Thu, 5 Jul 2012 10:14:28 +0800 Subject: [mapserver-users] Python MapScript compile error Message-ID: Hi all, Not sure if i've done anything wrong. I've met the "Unknown option: -a" while compiling Python MapScript. MapServer: Git trunk, CentOS 6 box running on Intel Pentium D. ./configure --with-wms --with-wfs --with-curl --with-jpeg --with-freetype --with-png --with-threads --with-postgis --with-xml2 --with-libiconv --with-proj --with-ogr --with-gdal --with-cairo --with-ftgl --with-opengl --with-threads --with-geos --with-postgis --with-mysql --with-wmsclient --with-wfsclient --with-sos --with-wcs --with-curl --with-kml --with-xml-mapfile --with-xslt --with-fastcgi --with-exempi --with-fribidi-config --with-zlib --with-gd --with-postgis --with-mysql --with-php --with-libsvg-cairo --enable-fast-nint --enable-proj-fastpath --enable-point-z-m --enable-python-mapscript Although I don't need all these features yet, I've decided to test compiling all of them in case I need them in future. Configure went well, and finished with everything. But while compiling Python: cd mapscript/python; make; make[1]: Entering directory `/home/jackey.cheung/mapserver-6.2.0-beta1/mapscript/python' python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone -DUSE_PROJ_FASTPATHS -DUSE_POINT_Z_M -DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_OGL -DUSE_FTGL -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -o mapscript_wrap.c ../mapscript.i Unknown option: -a usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. Any clue? -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Wed Jul 4 22:08:17 2012 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 5 Jul 2012 07:08:17 +0200 Subject: [mapserver-users] Python MapScript compile error In-Reply-To: References: Message-ID: python mapscript now requires swig 2.x: install it then rerun configure and make hth, Umberto On Thursday, July 5, 2012, Jackey Cheung wrote: > Hi all, > > Not sure if i've done anything wrong. I've met the "Unknown option: -a" > while compiling Python MapScript. > > MapServer: Git trunk, CentOS 6 box running on Intel Pentium D. > ./configure --with-wms --with-wfs --with-curl --with-jpeg --with-freetype > --with-png --with-threads --with-postgis --with-xml2 --with-libiconv > --with-proj --with-ogr --with-gdal --with-cairo --with-ftgl --with-opengl > --with-threads --with-geos --with-postgis --with-mysql --with-wmsclient > --with-wfsclient --with-sos --with-wcs --with-curl --with-kml > --with-xml-mapfile --with-xslt --with-fastcgi --with-exempi > --with-fribidi-config --with-zlib --with-gd --with-postgis --with-mysql > --with-php --with-libsvg-cairo --enable-fast-nint --enable-proj-fastpath > --enable-point-z-m --enable-python-mapscript > > Although I don't need all these features yet, I've decided to test > compiling all of them in case I need them in future. Configure went well, > and finished with everything. But while compiling Python: > cd mapscript/python; make; > make[1]: Entering directory > `/home/jackey.cheung/mapserver-6.2.0-beta1/mapscript/python' > python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy > -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel > -nobuildnone -DUSE_PROJ_FASTPATHS -DUSE_POINT_Z_M -DUSE_FASTCGI > -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_EXSLT > -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR > -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI > -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS > -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS > -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_OGL -DUSE_FTGL > -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG > -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY > -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -o mapscript_wrap.c > ../mapscript.i > Unknown option: -a > usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... > Try `python -h' for more information. > > Any clue? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at tydac.ch Thu Jul 5 01:37:42 2012 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 05 Jul 2012 10:37:42 +0200 Subject: [mapserver-users] mapserver-users Digest, Vol 54, Issue 5 In-Reply-To: References: Message-ID: <4FF55256.3020000@tydac.ch> Hi Ya yeah, you'd need ArcGIS Server ... which has a very big price tag on it. The best way to use MapServer Layers and Maps in other sw is WMS and/or WFS. Same for ArcGIS. See i.e. http://mapserver.org/ogc/wms_server.html 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:flavio at 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 ---------------------------------------------------------------- From Thomas.Joseph at awtwater.com Thu Jul 5 03:12:52 2012 From: Thomas.Joseph at awtwater.com (Thomas Joseph) Date: Thu, 5 Jul 2012 22:12:52 +1200 Subject: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() Search returns no results Message-ID: <65BEB16FA7472A47ADFC80A42BF04FE801C0065A@awtsbs01> I am not sure if this is a problem or not but I was wondering if anyone else has experienced fastcgi warnings with every msQueryByPoint that returns no results ? Everything works as expected when querying a point that returns a result or simply panning or zooming the map. However, when a user clicks on the map and the query returns no results the fastcgi terminates the pid and creates a new one. Is this normal behavior ? I am very much a novice with fastcgi but it seems like this will slow things down and is counter intuitive to using fastcgi. The user experience is not affected but if we could make things faster that would always be good. We are using the following setup: Ubuntu 64bit Server - 10.10 Mapserver 6.0.1 Apache/2.2.16 mod-fastcgi 2.4.6-1 Below I have included a except of the mapserver MS_ERRORFILE and the apache2 error log: MS_ERRORFILE [Thu Jul 5 21:42:22 2012].92065 CGI Request 2 on process 27946 [Thu Jul 5 21:42:22 2012].231782 msQueryByPoint(): Search returned no results. No matching record(s) found. [Thu Jul 5 21:42:22 2012].231829 msFreeMap(): freeing map at 0x8f983d0. /var/log/apache2/error.log [Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" (pid 27946) terminated by calling exit with status '0' [Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" restarted (pid 27948) -------------------------------------------------- THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. -------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Jul 5 04:31:25 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 05 Jul 2012 07:31:25 -0400 Subject: [mapserver-users] Python MapScript compile error In-Reply-To: References: Message-ID: <4FF57B0D.1050206@mapgears.com> Hmm... I think we already ship MapServer with the C wrapper generated. IIRC, you can use the standard way to build the python module also, which does not require swig: cd mapscript/python && python setup.py build && python setup.py install Alan On 12-07-05 01:08 AM, Umberto Nicoletti wrote: > python mapscript now requires swig 2.x: install it then rerun configure > and make > > hth, > Umberto > > On Thursday, July 5, 2012, Jackey Cheung wrote: > > Hi all, > > Not sure if i've done anything wrong. I've met the "Unknown option: > -a" while compiling Python MapScript. > > MapServer: Git trunk, CentOS 6 box running on Intel Pentium D. > ./configure --with-wms --with-wfs --with-curl --with-jpeg > --with-freetype --with-png --with-threads --with-postgis --with-xml2 > --with-libiconv --with-proj --with-ogr --with-gdal --with-cairo > --with-ftgl --with-opengl --with-threads --with-geos --with-postgis > --with-mysql --with-wmsclient --with-wfsclient --with-sos --with-wcs > --with-curl --with-kml --with-xml-mapfile --with-xslt --with-fastcgi > --with-exempi --with-fribidi-config --with-zlib --with-gd > --with-postgis --with-mysql --with-php --with-libsvg-cairo > --enable-fast-nint --enable-proj-fastpath --enable-point-z-m > --enable-python-mapscript > > Although I don't need all these features yet, I've decided to test > compiling all of them in case I need them in future. Configure went > well, and finished with everything. But while compiling Python: > cd mapscript/python; make; > make[1]: Entering directory > `/home/jackey.cheung/mapserver-6.2.0-beta1/mapscript/python' > python -shadow -modern -templatereduce -fastdispatch -fvirtual > -fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery > -noproxydel -nobuildnone -DUSE_PROJ_FASTPATHS -DUSE_POINT_Z_M > -DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI > -DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR > -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL > -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR > -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS > -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS > -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_OGL > -DUSE_FTGL -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF > -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE > -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR > -DDISABLE_CVSID -o mapscript_wrap.c ../mapscript.i > Unknown option: -a > usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... > Try `python -h' for more information. > > Any clue? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault http://www.mapgears.com/ From Bob.Bistrais at maine.gov Thu Jul 5 07:08:03 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 5 Jul 2012 14:08:03 +0000 Subject: [mapserver-users] Problem querying personal GDB In-Reply-To: <4FF36B9F.3000108@geoanalytic.com> References: <4FF36B9F.3000108@geoanalytic.com> Message-ID: I see this is in the section for using a PostGIS layer. Is that applicable for an ESRI Personal GDB? From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Tuesday, July 03, 2012 6:01 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: 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 at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at unep.org Thu Jul 5 07:39:50 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Thu, 5 Jul 2012 16:39:50 +0200 Subject: [mapserver-users] php_mapscript not being loaded Message-ID: Hi there, I thought I would have finally got over with all the errors while installing everything anew (php, apache, postgres, mapserver). But hadn't tested mapserver yet? Did all the installation with the latest Kyngchaos libraries. Running "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there. There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"". Restarted the server, "sudo /usr/sbin/apachectl restart". But still no Mapscript in testphp.php? Did it really restart and load php.ini now?. Any way to check that? It should work that way, no? Thanks for any help! From bfraser at geoanalytic.com Thu Jul 5 07:57:15 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 05 Jul 2012 08:57:15 -0600 Subject: [mapserver-users] Problem querying personal GDB In-Reply-To: References: <4FF36B9F.3000108@geoanalytic.com> Message-ID: <4FF5AB4B.7000403@geoanalytic.com> Bob, It's just a guess on my part. There was a similar post on the Geomoose list last year: http://osgeo-org.1560.n6.nabble.com/Geomoose-users-query-php-and-pgdb-tt4929185.html#a4929188 Best Regards, Brent Fraser On 7/5/2012 8:08 AM, Bistrais, Bob wrote: > > I see this is in the section for using a PostGIS layer. Is that > applicable for an ESRI Personal GDB? > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Tuesday, July 03, 2012 6:01 PM > *To:* Bistrais, Bob > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* 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 at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Thu Jul 5 08:05:44 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 5 Jul 2012 10:05:44 -0500 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: Message-ID: On Jul 5, 2012, at 9:39 AM, Stefan Schwarzer wrote: > Hi there, > > I thought I would have finally got over with all the errors while installing everything anew (php, apache, postgres, mapserver). apache? You're not using the system apache? If it's a major version change from the system apache, the APIs that php uses may have changed. > But hadn't tested mapserver yet? Did all the installation with the latest Kyngchaos libraries. > > Running "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there. > > There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"". No need to set extension_dir, it defaults to the correct dir, which is not as you set it but includes the no-debug... subdir. > Restarted the server, "sudo /usr/sbin/apachectl restart". graceful is all that's needed: sudo apachectl graceful, but it probably doesn't matter. > But still no Mapscript in testphp.php? Did it really restart and load php.ini now?. Any way to check that? It should work that way, no? > > Thanks for any help! > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From yjacolin at free.fr Thu Jul 5 01:42:57 2012 From: yjacolin at free.fr (Yves Jacolin (Free)) Date: Thu, 05 Jul 2012 10:42:57 +0200 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: References: Message-ID: <2445992.rL1D00fAKA@tatras> Hello, I am now ok with this pull request from Thomas (we discussed on Francophone mailing list also). It could improve contribution from non technical user (if a pootle infrastructure exists, unfortunately which add more work for sysadmin). Y. Le mercredi 4 juillet 2012 21:51:03 Thomas Gratier a ?crit : > Hello, > > My answer are inline with bold cross *XXXXXXXXXXXXXX* just before (for mail > in html) > Uline of inline of inline start to be difficult to read ;) > > Regards > > ThomasG77 > > 2012/7/4 thomas bonfort > > > Hi Thomas, > > > > I'm all for simplifying the translation workflow. I tend to dislike > > the current one we have setup because it is difficult for translators > > to keep track of what has been added/modified in the english version, > > resulting in outdated translated docs which in my opinion is worse > > than having no translation at all. > > > > More inline... > > > > On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier > > > > wrote: > > > 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 > > > > > > English French > > > > > > AAAAAAAAA 1111111 > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > EEEEEEEEE 555555 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > Nowadays > > > > > > BBBBBBBBB ?????? > > > CCCCCCCCC ?????? > > > DDDDDDDDD ?????? > > > FFFFFFFFFF ?????? > > > GGGGGGGG ?????? > > > HHHHHHHHH ?????? > > > > > > The way you do if you kept during three years the file you use to > > > > translate > > > > > the original > > > > > > Compare both english version > > > > > > AAAAAAAAA dissapear > > > BBBBBBBBB seems to stay the same (BBBBBBBBB is a block so are you sure > > > > there > > > > > no typo fixed?) > > > CCCCCCCCC is the same > > > DDDDDDDDD is the same > > > EEEEEEEEE dissapear > > > FFFFFFFFFF appear > > > GGGGGGGG is the same > > > HHHHHHHHH is the same > > > > > > Now find in the french file the corresponding > > > > > > I now AAAAAAAAA dissapear in english so let's go delete it in the french > > > version > > > > > > Find the equivalent in french of AAAAAAAAA (where it begins and finish) > > > > and > > > > > delete it > > > Find BBBBBBBBB block in english and see what was the french string > > > corresponding and replace now > > > Do the same for CCCCCCCCC, DDDDDDDDD > > > EEEEEEEEE dissapear so where is french equivalent (more difficult to > > > find > > > where it begins and finish) to delete > > > FFFFFFFFFF appear so translate > > > Find GGGGGGGGG block in english and see what was the french string > > > corresponding and replace now. > > > Do the same for HHHHHHHHH. > > > > > > 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) > > > > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > FFFFFFFFFF 666666 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > ## I18N workflow > > > > > > First translation > > > > > > English French > > > > > > AAAAAAAAA 111111 > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > EEEEEEEEE 555555 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > In the future, (if community change nothing) > > > > > > BBBBBBBBB ?????? > > > CCCCCCCCC ?????? > > > DDDDDDDDD ?????? > > > FFFFFFFFFF ?????? > > > GGGGGGGG ?????? > > > HHHHHHHHH ?????? > > > > > > The way how msgmerge or manual poedit merge do > > > > > > Open the translated file at a time (po file), open the newly pot file > > > and > > > say merge. > > > > > > What happen, > > > the block AAAAAAAAA match nothing compare to before so comment in the po > > > file > > > BBBBBBBBB block match, keep it. > > > CCCCCCCCC block match, keep it. > > > DDDDDDDDD block match, keep it. > > > The block EEEEEEEEE match nothing compare to before so comment in the po > > > file > > > FFFFFFFFFF match nothing but wasn't there ,so add it > > > GGGGGGGG block match, keep it. > > > HHHHHHHHH block match, keep it. > > > > > > The UI like poedit or pootle tell you, you only have to translate > > > > FFFFFFFFF, > > > > > the three way merge is mostly done automatically. > > > That the only job. Quite nice compare to before > > > > > > You foreign (not english) language is more easily updated like that and > > > small change are easy to see. > > > > > > # Drawbacks > > > > > > 1. Less flexibility because, the workflow to be in the core doc > > > > repository > > > > > is to ask to integrate change in the english version (master version) > > > and > > > after, you backport everything in every langage. > > > > I don't understand how this is different from the current workflow > > where the english docs are updated and the translator maintainers have > > to backport to their language, can you elaborate please ? > > *XXXXXXXXXXXXXX* > I was thinking that in some case, community have push for their language in > first and after backport this contribution to english. I'm not aware of > complete history but I was thinking that the part > http://www.mapserver.org/mapfile/symbology/construction.html was created in > German and after translated in English. I've maybe made a mistake and it > never happens like that. > > > > 2. Some content are outside of the i18n parsing with sphinx. > > > When you generate i18n strings, see also directive or caption (for > > > > legend of > > > > > image) are not parsed. So you must refactor a bit the syntax for image > > > caption to put the legend outside. The same for see also. > > > > can you give an example of such a change ? > > *XXXXXXXXXXXXXX* > > .. figure:: picture.png > > :scale: 50 % > :alt: map to buried treasure > > This is the caption of the figure (a simple paragraph). > > The legend consists of all elements after the caption. In this > case, the legend consists of this paragraph and the following > table: > > Have to be transformated to > > .. figure:: picture.png > > :scale: 50 % > :alt: map to buried treasure > > This is the caption of the figure (a simple paragraph). > > The legend consists of all elements after the caption. In this > case, the legend consists of this paragraph and the following > table: > > For the see also case, I haven't found better than putting content outside > of a directive like that and use bold for example to change font style. > I've also open a bug/enhancement ticket on sphinx tracker e.g > https://bitbucket.org/birkenfeld/sphinx/issue/960/directive-seelaso-ignored- > in-the-gettextbecause this missing/bug feature is quite annoying (althougth > it can be > acceptable because most "seealso" rst directive are only link references) > An RST "guru" have maybe a better alternative than that. > > > > 3. Need to add more explicit links in original doc > > > Example for the glossary :ref:`gis` must be replace with :ref:`gis > > > > `__ > > > > > because not helpful for translators not aware of sphinx syntax (the > > > > problem > > > > > is already the same nowadays) > > > > I don't think this is a big issue. Doc writers will need to adapt, but > > I know that that my habit is to copy what's already present in the > > code so it won't be a problem if you fix the current refs once and for > > all. > > > > > > Aside from these 3 limitations, it is my understanding that the > > workflow for contributing to the original english docs will be > > unchanged (i.e. we will keep directly modifying the en/*.rst files), > > am I correct ? > > *XXXXXXXXXXXXXX* > Yes, workflow will not changed. English is in pure rst and stay like that. > Each community can make choice depending on their preferences. > For the moment, we're looping throught variable TRANSLATIONS = de es fr > Imagine the french community choose to make the move to i18n just have to > make change below > TRANSLATIONS = de es > TRANSLATIONI18N = fr > So German community or Spanish one are not impacted and they can switch or > not (I've just added a loop for dealing with TRANSLATIONI18N) > That why I've said I haven't reinvented the wheel because I respect both > old way of doing and maybe future i18n way. > > > Provided the answer to the previous question was "yes", and that the > > updated method does not disrupt the other languages (for now at > > least), I would be ok for the change. > > > > cheers, > > thomas > > > > > Sorry for the long "monologue" > > > > > > Any reactions welcome > > > > > > Regards > > > > > > ThomasG > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Ya.Wang at vta.org Thu Jul 5 09:12:50 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Thu, 5 Jul 2012 16:12:50 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 54, Issue 5 In-Reply-To: <4FF55256.3020000@tydac.ch> References: <4FF55256.3020000@tydac.ch> Message-ID: Flavio, Thank you very much for your help. Really appreciate it. Ya -----Original Message----- From: Flavio Hendry [mailto:flavio at tydac.ch] Sent: Thursday, July 05, 2012 1:38 AM To: Wang, Ya Cc: mapserver-users at lists.osgeo.org Subject: Re: mapserver-users Digest, Vol 54, Issue 5 Hi Ya yeah, you'd need ArcGIS Server ... which has a very big price tag on it. The best way to use MapServer Layers and Maps in other sw is WMS and/or WFS. Same for ArcGIS. See i.e. http://mapserver.org/ogc/wms_server.html 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:flavio at 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 ---------------------------------------------------------------- From Bob.Bistrais at maine.gov Thu Jul 5 12:01:49 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 5 Jul 2012 19:01:49 +0000 Subject: [mapserver-users] How to get layer name in an identify template? Message-ID: I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I'd like to use the same template for those layers. I have this working well, except that I'd like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn't work:
[wms_title] <---I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at michiganwxsystem.com Thu Jul 5 15:13:51 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Thu, 05 Jul 2012 18:13:51 -0400 Subject: [mapserver-users] World file creation In-Reply-To: <4FF445A7.3000206@geoanalytic.com> References: <4FF3AA2D.2020107@michiganwxsystem.com> <4FF445A7.3000206@geoanalytic.com> Message-ID: <4FF6119F.5080605@michiganwxsystem.com> Thanks for the reply ... Lets ask this .. I am setting up an open source weather mapping application (php) I already know most of my target audience will not be able to install MapServer and or proj4. I have been trying to get a handle on various map projection's. decided to use 3 Grid (or flat non-projected) Mercator and Lambert Conformal Conic The first 2 was easy enough creating the needed Classes to convert Lat/Long to screen pixel X/Y Lambert has me lost ... every script I have found be it C, perl, python, or php all return me X/Y in meter's but for the life of me .. I cannot or have not found the magic formula to convert the meter's to screen X/Y I have looked at gPoint, PHPproj4, but they all go no further then meter's (or it at least seems like it) -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com On 7/4/2012 9:31, Brent Fraser wrote: > Jeff, > > World files use projected x/y coordinates. Use the Proj4 library > functions (in Mapscript) to project the upper left and lower right > spherical lon/lat coordinates to x/y, then use the image size (length, > width) to calculate the values for the world file > (http://en.wikipedia.org/wiki/World_file) > > Best Regards, > Brent Fraser > > On 7/3/2012 8:27 PM, Jeff Lake wrote: >> 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 >> > > > > From woodbri at swoodbridge.com Thu Jul 5 15:48:35 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 05 Jul 2012 18:48:35 -0400 Subject: [mapserver-users] mapfile to geoserver conversion tools? Message-ID: <4FF619C3.9000401@swoodbridge.com> Hi All, Does anyone know if there is a mapfile to geoserver conversion tool? Sorry, I have never used geoserver and have no idea on this one. Thanks, -Steve From bfraser at geoanalytic.com Thu Jul 5 15:56:43 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 05 Jul 2012 16:56:43 -0600 Subject: [mapserver-users] World file creation In-Reply-To: <4FF6119F.5080605@michiganwxsystem.com> References: <4FF3AA2D.2020107@michiganwxsystem.com> <4FF445A7.3000206@geoanalytic.com> <4FF6119F.5080605@michiganwxsystem.com> Message-ID: <4FF61BAB.1060308@geoanalytic.com> Jeff, Most of us let a client-side (browser) JavaScript library like OpenLayers handle the screen <-> projection calculation (among a lot of other things). have a look at GeoMoose (http://www.geomoose.org) as a framework to bring together the server-side and client-side components. Best Regards, Brent Fraser On 7/5/2012 4:13 PM, Jeff Lake wrote: > Thanks for the reply ... > Lets ask this .. > I am setting up an open source weather mapping application (php) > I already know most of my target audience will not be able to install > MapServer and or proj4. > I have been trying to get a handle on various map projection's. > decided to use 3 > Grid (or flat non-projected) > Mercator > and Lambert Conformal Conic > > The first 2 was easy enough creating the needed Classes > to convert Lat/Long to screen pixel X/Y > > Lambert has me lost ... every script I have found > be it C, perl, python, or php all return me X/Y in meter's > > but for the life of me .. I cannot or have not found the magic > formula to convert the meter's to screen X/Y > > I have looked at gPoint, PHPproj4, but they all go no further > then meter's (or it at least seems like it) > > -Jeff Lake > MichiganWxSystem.com > WeatherMichigan.net > TheWeatherCenter.net > GRLevelXStuff.com > > On 7/4/2012 9:31, Brent Fraser wrote: >> Jeff, >> >> World files use projected x/y coordinates. Use the Proj4 library >> functions (in Mapscript) to project the upper left and lower right >> spherical lon/lat coordinates to x/y, then use the image size >> (length, width) to calculate the values for the world file >> (http://en.wikipedia.org/wiki/World_file) >> >> Best Regards, >> Brent Fraser >> >> On 7/3/2012 8:27 PM, Jeff Lake wrote: >>> 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 >>> >> >> >> >> > > > From woodbri at swoodbridge.com Thu Jul 5 17:17:07 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 05 Jul 2012 20:17:07 -0400 Subject: [mapserver-users] mapfile to geoserver conversion tools? In-Reply-To: <4FF619C3.9000401@swoodbridge.com> References: <4FF619C3.9000401@swoodbridge.com> Message-ID: <4FF62E83.7030303@swoodbridge.com> On 7/5/2012 6:48 PM, Stephen Woodbridge wrote: > Hi All, > > Does anyone know if there is a mapfile to geoserver conversion tool? > Sorry, I have never used geoserver and have no idea on this one. Ok, so after a little additional research, it looks like one can use the mapscript generateSLD() function to convert mapfile layer definitions to SLD. BUT! only 16 of 32 layers generated useful SLD files using perl mapscript; Anyone tried this on 6.2? Is this a bug? Any ideas how to work around this isue? -Steve W Details follow: MapServer version 6.2.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here is my perl script: woodbri at mappy:~/work/geoserver$ cat mapfile2sld #!/usr/bin/perl -w use strict; use mapscript; sub Usage { die "Usage: mapfile2sld mapfile out_dir\n"; } my $mf = shift @ARGV || Usage(); my $dir = shift @ARGV || Usage(); mkdir $dir, 0777; die "Directory '$dir' does not exist or failed to create it! : $!\n" unless -d $dir; my $oMap = new mapscript::mapObj( $mf ); for (my $i=0; $i<$oMap->{numlayers}; $i++) { my $oLay = $oMap->getLayer($i); my $SLD = $oLay->generateSLD(); my $fname = "$dir/" . $oLay->{name} . ".xml"; open(OUT, ">$fname") || die "Failed to create '$fname'! : $!\n"; print OUT $SLD; close(OUT); } 16 of the files contain nothing more than this: woodbri at mappy:~/work/geoserver/tiger2011-mc$ cat linear_water.xml Here is the layer definition: LAYER NAME "linear_water" METADATA "ows_title" "Streams and Rivers" "ows_srs" "EPSG:4269 EPSG:4326" "ows_abstract" "Streams and Rivers from the U.S. Census LINEARWATER data layer." END TYPE LINE TILEINDEX "tidx-LINEARWATER" PROJECTION "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269 END #INCLUDE "map-LINEARWATER.inc" # map-LINEARWATER.inc MAXSCALEDENOM 15000 CLASS # water STYLE COLOR "#a5bfdd" WIDTH 1.0 END LABEL MAXSCALEDENOM 10000 TYPE TRUETYPE FONT "sans-italic" SIZE 8 COLOR "#627A9D" OUTLINECOLOR "#B3C9E2" PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 BUFFER 4 ANGLE FOLLOW PRIORITY 4 END END END From woodbri at swoodbridge.com Thu Jul 5 18:09:42 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 05 Jul 2012 21:09:42 -0400 Subject: [mapserver-users] mapfile to geoserver conversion tools? In-Reply-To: <4FF62E83.7030303@swoodbridge.com> References: <4FF619C3.9000401@swoodbridge.com> <4FF62E83.7030303@swoodbridge.com> Message-ID: <4FF63AD6.1080309@swoodbridge.com> Opened issue: https://github.com/mapserver/mapserver/issues/4380 for this. On 7/5/2012 8:17 PM, Stephen Woodbridge wrote: > only 16 of 32 layers generated useful SLD files using perl mapscript; > > Anyone tried this on 6.2? Is this a bug? > Any ideas how to work around this isue? > > -Steve W > > Details follow: > > MapServer version 6.2.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO > SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > Here is my perl script: > > woodbri at mappy:~/work/geoserver$ cat mapfile2sld > #!/usr/bin/perl -w > use strict; > use mapscript; > > sub Usage { > die "Usage: mapfile2sld mapfile out_dir\n"; > } > > my $mf = shift @ARGV || Usage(); > my $dir = shift @ARGV || Usage(); > > mkdir $dir, 0777; > die "Directory '$dir' does not exist or failed to create it! : $!\n" > unless -d $dir; > > my $oMap = new mapscript::mapObj( $mf ); > > for (my $i=0; $i<$oMap->{numlayers}; $i++) { > > my $oLay = $oMap->getLayer($i); > > my $SLD = $oLay->generateSLD(); > > my $fname = "$dir/" . $oLay->{name} . ".xml"; > open(OUT, ">$fname") || die "Failed to create '$fname'! : $!\n"; > print OUT $SLD; > close(OUT); > } > > 16 of the files contain nothing more than this: > > woodbri at mappy:~/work/geoserver/tiger2011-mc$ cat linear_water.xml > xmlns="http://www.opengis.net/sld" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > > Here is the layer definition: > > LAYER > NAME "linear_water" > METADATA > "ows_title" "Streams and Rivers" > "ows_srs" "EPSG:4269 EPSG:4326" > "ows_abstract" "Streams and Rivers from the U.S. Census > LINEARWATER data layer." > END > TYPE LINE > TILEINDEX "tidx-LINEARWATER" > PROJECTION > "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269 > END > #INCLUDE "map-LINEARWATER.inc" > # map-LINEARWATER.inc > MAXSCALEDENOM 15000 > CLASS # water > STYLE > COLOR "#a5bfdd" > WIDTH 1.0 > END > LABEL > MAXSCALEDENOM 10000 > TYPE TRUETYPE > FONT "sans-italic" > SIZE 8 > COLOR "#627A9D" > OUTLINECOLOR "#B3C9E2" > PARTIALS FALSE > MINDISTANCE 250 > MINFEATURESIZE 10 > BUFFER 4 > ANGLE FOLLOW > PRIORITY 4 > END > END > END From matt at wildwalks.com Thu Jul 5 18:30:08 2012 From: matt at wildwalks.com (Matt McClelland) Date: Fri, 6 Jul 2012 11:30:08 +1000 Subject: [mapserver-users] Remote map server - data tweaking Message-ID: Hi All I am looking for a simple editing tool that will allow me to edit vector map data on my remote mapserver DB (postgres) Ideally something like Potlatch 2 (From ww.osm.org) I want to be able to download a small area of data, move a few notes on a line a bit (or delete it the line), and commit those changes to the DB. I have used quantum GIS - It is good, but it seems to download all the data from the table, not just what is in view. Not really a mapserver question, but somewhat related. Any ideas welcome - thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Thu Jul 5 20:51:47 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Fri, 6 Jul 2012 05:51:47 +0200 (CEST) Subject: [mapserver-users] MS4W mapcache In-Reply-To: <1416549654.241486.1341546637904.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <1090826798.242876.1341546707103.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I would like to use mapcache with package MS4W. Where I could find dll to use it ? thanks From Jukka.Rahkonen at mmmtike.fi Thu Jul 5 21:17:55 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 6 Jul 2012 04:17:55 +0000 Subject: [mapserver-users] Remote map server - data tweaking In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6345B411@suutari.haapa.mmm.fi> Hi, Check this TinyOWS example http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html However, from what I know Qgis does not load all the features but only those which intersect the map window. "Open attribute table" seems to read the attributes from the whole table but for editing attributes of a single feature you can point it with the info tool and then open the "Edit feature form" with right click. QGis is also a WFS-T client and it can be used for editing data through TinyOWS. The current QGis development version seems to miss the bounding box filter option so it is now downloading the whole table through WSF. Therefore it is unusable with big WFS layers at the moment. Let's hope they will re-activate the BBOX check box soon. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Matt McClelland [matt at wildwalks.com] puolesta L?hetetty: 6. hein?kuuta 2012 4:30 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Remote map server - data tweaking Hi All I am looking for a simple editing tool that will allow me to edit vector map data on my remote mapserver DB (postgres) Ideally something like Potlatch 2 (From ww.osm.org) I want to be able to download a small area of data, move a few notes on a line a bit (or delete it the line), and commit those changes to the DB. I have used quantum GIS - It is good, but it seems to download all the data from the table, not just what is in view. Not really a mapserver question, but somewhat related. Any ideas welcome - thanks Matt :) From Steve.Lime at state.mn.us Thu Jul 5 21:18:12 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 6 Jul 2012 04:18:12 +0000 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: References: Message-ID: What do your query strings look like? - Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I?d like to use the same template for those layers. I have this working well, except that I?d like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn?t work:
[wms_title] <---I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Jul 5 21:23:17 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 6 Jul 2012 04:23:17 +0000 Subject: [mapserver-users] MS4W mapcache In-Reply-To: <1090826798.242876.1341546707103.JavaMail.root@zimbra34-e6.priv.proxad.net> References: <1416549654.241486.1341546637904.JavaMail.root@zimbra34-e6.priv.proxad.net>, <1090826798.242876.1341546707103.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <84446DEF76453C439E9E97E438E13A6345B432@suutari.haapa.mmm.fi> Hi, Have you tried MS4W 6.1-dev? It should come with Mapcache. http://www.maptools.org/ms4w/index.phtml?page=downloads.html -Jukka Rahkonen- ________________________________________ scott159 wrote: > Hi, > I would like to use mapcache with package MS4W. Where I could find dll to use it ? thanks _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jessica.Clarke at forestrytas.com.au Thu Jul 5 21:25:55 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Fri, 06 Jul 2012 14:25:55 +1000 Subject: [mapserver-users] PHP mapscript using OracleSpatial Message-ID: <4FF6F573020000DD00016C43@mail2.forestrytas.com.au> Hi everyone, I successfully queried the same view twice in two separate layers in order to show two related shapes, but now I have decided that there are too many options (and thus too many mapfiles to create and combinations for the developers on the other end to handle) so I am trying to write a php script to generate the two new layers according to the parameters passed into the script via url. I'll paste in my code currently. I have issues with oraclespatial, and I just keep getting errors that the layer can't be drawn. I'm having a hard time finding examples of this use, so I'm just hoping someone might be able to point out where I'm going wrong. The lack of error reporting from php hasn't been helping matters either ;) Please forgive me if I have made a (or several) silly mistake. I'm new to php, oracle, and mapserver. Cheers, Jess URL: http://local/multiLayer2.php?map=base2.map&map_name="Asset Survey related map"orig_type=POLYGON&orig_name=ASSET&orig_id=19117&rel_type=LINE&rel_name=SURVEY&rel_id=42 ( 'http://local/multiLayer2.php?map=base2.map&map_name="Asset Survey related map"orig_type=POLYGON&orig_name=ASSET&orig_id=19117&rel_type=LINE&rel_name=SURVEY&rel_id=42' ) This is what I want the url to look like, but currently, I've hardcoded the values into the script. MAPFILE: MAP NAME base STATUS ON SIZE 800 600 EXTENT 227154 5165779 627108 5614539 UNITS METERS IMAGECOLOR 234 255 255 SYMBOLSET "base.sym" FONTSET "base.list" PROJECTION "proj=utm" [..................] ##Changeable layers LAYER NAME layer1 TYPE POINT STATUS OFF END LAYER NAME layer2 TYPE POINT STATUS OFF END ## end ## [..............] END PHP: set("name", $_GET['map_name']); //set up layer 1 //set the parameters //temp setup $orig_name = "ASSET"; $orig_id = "19117"; $orig_type = "MS_LAYER_POLYGON"; $rel_name = "SURVEY"; $rel_id = "42"; $rel_type = "MS_LAYER_LINE"; //temporary data created $orig_data = "asset_shape FROM FOD.ASSET_RELATED_SHP_MAP USING UNIQUE ASSET_ID"; $rel_data = "rel_shape from fod.asset_related_shp_map using unique shape_id"; //create the original shape layer $orig_layer = $map->getLayerByName("layer1"); $orig_layer->set("name", $orig_name); $orig_layer->set("status", MS_ON); $orig_layer->set("type", $orig_type); $orig_layer->set("connectiontype", MS_ORACLESPATIAL); $orig_layer->set("connection", "mapserver/mapserver at gistest"); $orig_layer->set("data", $orig_data); $orig_layer->setProcessing("CLOSE_CONNECTION=DEFER"); $orig_layer->setProjection('+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'); //create class within the layer //set the symbology and style //create the related layer $rel_layer = $map->getLayerByName("layer2"); $rel_layer->set("name", $rel_name); $rel_layer->set("status", MS_ON); $rel_layer->set("type", $rel_type); $rel_layer->set("connectiontype", MS_ORACLESPATIAL); $rel_layer->set("connection", "mapserver/mapserver at gistest"); $rel_layer->set("data", $rel_data); $rel_layer->setProcessing("CLOSE_CONNECTION=DEFER"); $rel_layer->setProjection('+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'); //create class within the layer //set the symbology and stylee //draw the map ms_ResetErrorList(); $map_image=$map->drawQuery(); $error=ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } echo $map_image->saveWebImage(); ?> --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nuryadin at gmail.com Thu Jul 5 21:51:59 2012 From: nuryadin at gmail.com (Ruslan Nuryadin) Date: Fri, 6 Jul 2012 11:51:59 +0700 Subject: [mapserver-users] Remote map server - data tweaking In-Reply-To: <84446DEF76453C439E9E97E438E13A6345B411@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6345B411@suutari.haapa.mmm.fi> Message-ID: Hi, When using Quantum GIS, I usually use SQL query where clause to filter PostGIS dataset: - at Add PostGIS Table(s) dialog, click Build query button - fill in SQL where clause with any filter condition - for bounding box filter, use intersection clause like intersects(the_geom, 'SRID=4326;POLYGON((106 -7,107 -7,107 -6,106 -6,106 -7))') this will filter dataset that closely match (106, -7) to (107, -6) bounding box On Fri, Jul 6, 2012 at 11:17 AM, Rahkonen Jukka wrote: > Hi, > > Check this TinyOWS example http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html > > However, from what I know Qgis does not load all the features but only those which intersect the map window. "Open attribute table" seems to read the attributes from the whole table but for editing attributes of a single feature you can point it with the info tool and then open the "Edit feature form" with right click. > > QGis is also a WFS-T client and it can be used for editing data through TinyOWS. The current QGis development version seems to miss the bounding box filter option so it is now downloading the whole table through WSF. Therefore it is unusable with big WFS layers at the moment. Let's hope they will re-activate the BBOX check box soon. > > -Jukka Rahkonen- > > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Matt McClelland [matt at wildwalks.com] puolesta > L?hetetty: 6. hein?kuuta 2012 4:30 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Remote map server - data tweaking > > Hi All > > I am looking for a simple editing tool that will allow me to edit vector map data on my remote mapserver DB (postgres) > Ideally something like Potlatch 2 (From ww.osm.org) > > I want to be able to download a small area of data, move a few notes on a line a bit (or delete it the line), and commit those changes to the DB. > I have used quantum GIS - It is good, but it seems to download all the data from the table, not just what is in view. > > Not really a mapserver question, but somewhat related. > > Any ideas welcome - thanks > > Matt :) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Ruslan Nuryadin From ap-barth at gmx.de Fri Jul 6 00:32:07 2012 From: ap-barth at gmx.de (Alexander Barth) Date: Fri, 06 Jul 2012 09:32:07 +0200 Subject: [mapserver-users] Layer Size Message-ID: <4FF69477.5040601@gmx.de> Hi List, i want to know if there is a way to increase the size of a layer. My problem is that i want to get a satellite image in the background of mein generated map and well i have the satellite image that where used to create the classified information that i use to draw the map, but they are to big to have them loaded every time. So i made simple tif / jpg pictures out of them, but the problem is that these are to smal and they only fill a smal amount of the map that is drawn. Any Ideas how to resolve my problem? Regards Alex PS.: Sorry for the bad english From Andreas.Eichner at sid.sachsen.de Fri Jul 6 00:56:15 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 6 Jul 2012 09:56:15 +0200 Subject: [mapserver-users] PHP mapscript using OracleSpatial References: <4FF6F573020000DD00016C43@mail2.forestrytas.com.au> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B2@KS-EVS1.smi.sachsen.de> Hello Jessica, I've tested your code successfully on PHP MapScript v5.2.0. > I have issues with > oraclespatial, and I just keep getting errors that the layer > can't be drawn. What errors do you get? Something like "[...] Error: ORA-12154: TNS:could not resolve the connect identifier specified"? Then you might need to set some environment variables first. For example, I set ORACLE_HOME, TNS_ADMIN, LC_CTYPE and NLS_LANG. > The lack of error reporting from > php hasn't been helping matters either ;) You can execute your script on the command line via "php ". This will display errors as long as error_reporting(E_ALL) or similar is set: $ php test.php Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ASSET'. in /tmp/foo/test.php on line 53 Warning: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . in /tmp/foo/test.php on line 53 Error in msDrawMap(): Failed to draw layer named 'ASSET'.
HTH From lists at remoteinformation.com.au Fri Jul 6 01:33:58 2012 From: lists at remoteinformation.com.au (Ben Madin) Date: Fri, 6 Jul 2012 16:33:58 +0800 Subject: [mapserver-users] php-mapscript problem and symbolname trying to open a file? Message-ID: <249B1197-8D81-4363-A37B-EA147DF1E998@remoteinformation.com.au> G'day all, I'm not sure if this is two problems, or the second problem is a result of the first. The second problem is that I have a mapfile with multiple sections that look like : CLASS NAME "Sentinel Positive" EXPRESSION "SentPos" STYLE ANGLE 0 COLOR 220 20 40 OFFSET 0 0 SIZE 8 SYMBOL "circle" END # STYLE END # CLASS where symbol is : SYMBOL # 1 NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END and when I try to open it, I get : # shp2img -m nampa4f2267cb1afaed507c167efa264946dBLU.map -o test.png msDrawMap(): Image handling error. Failed to draw layer named 'BLU'.
msLoadMSRasterBufferFromFile(): General error message. unable to open file /usr/local/www/apache22/data/system/mapserver/maps/tmpmapfiles/./circle for reading
I know that SYMBOL can be a name (in the symbol file) or a filename, but clearly it is getting confused. The first problem is that this file is one of several that is meant to be generated by a looping structure in php-mapscript, and I am getting : [Fri Jul 06 18:08:13 2012] [notice] child pid 74615 exit signal Abort trap (6) Assertion failed: (pixmap->type == MS_BUFFER_BYTE_RGBA), function agg2RenderPixmapSymbol, file mapagg.cpp, line 464. [Fri Jul 06 18:08:57 2012] [notice] child pid 74300 exit signal Abort trap (6) errors when I try to build the layers (this is the only one that builds). I'm a little short on ideas as to where to go next. this is : MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Server version: Apache/2.2.22 (FreeBSD) PHP 5.4.4 (cli) (built: Jun 20 2012 07:13:50) FreeBSD FreeBSD 8.2-RELEASE-p4 amd64 cheers Ben From nesar77 at mail.com Fri Jul 6 03:56:24 2012 From: nesar77 at mail.com (soulsacrifire) Date: Fri, 6 Jul 2012 03:56:24 -0700 (PDT) Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: Message-ID: <1341572184765-4986509.post@n6.nabble.com> Hi guys, I'm a newbie on php and mapserver. I'm working on a sample page and I'm able to find the line dl('php_mapscript.so'); . Which difference about load library in the page and call the library load by apache? Regards. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/php-mapscript-not-being-loaded-tp4986285p4986509.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri Jul 6 04:42:13 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 6 Jul 2012 13:42:13 +0200 Subject: [mapserver-users] php-mapscript problem and symbolname trying to open a file? In-Reply-To: <249B1197-8D81-4363-A37B-EA147DF1E998@remoteinformation.com.au> References: <249B1197-8D81-4363-A37B-EA147DF1E998@remoteinformation.com.au> Message-ID: c.f. http://osgeo-org.1560.n6.nabble.com/msLoadMSRasterBufferFromFile-General-error-message-unable-to-open-file-tc4984932.html -- thomas On Fri, Jul 6, 2012 at 10:33 AM, Ben Madin wrote: > G'day all, > > I'm not sure if this is two problems, or the second problem is a result of the first. The second problem is that I have a mapfile with multiple sections that look like : > > CLASS > NAME "Sentinel Positive" > EXPRESSION "SentPos" > STYLE > ANGLE 0 > COLOR 220 20 40 > OFFSET 0 0 > SIZE 8 > SYMBOL "circle" > END # STYLE > END # CLASS > > > where symbol is : > > SYMBOL # 1 > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > > and when I try to open it, I get : > > # shp2img -m nampa4f2267cb1afaed507c167efa264946dBLU.map -o test.png > msDrawMap(): Image handling error. Failed to draw layer named 'BLU'.
> msLoadMSRasterBufferFromFile(): General error message. unable to open file /usr/local/www/apache22/data/system/mapserver/maps/tmpmapfiles/./circle for reading
> > > I know that SYMBOL can be a name (in the symbol file) or a filename, but clearly it is getting confused. > > The first problem is that this file is one of several that is meant to be generated by a looping structure in php-mapscript, and I am getting : > > [Fri Jul 06 18:08:13 2012] [notice] child pid 74615 exit signal Abort trap (6) > Assertion failed: (pixmap->type == MS_BUFFER_BYTE_RGBA), function agg2RenderPixmapSymbol, file mapagg.cpp, line 464. > [Fri Jul 06 18:08:57 2012] [notice] child pid 74300 exit signal Abort trap (6) > > > errors when I try to build the layers (this is the only one that builds). I'm a little short on ideas as to where to go next. > > this is : > > MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Server version: Apache/2.2.22 (FreeBSD) > > PHP 5.4.4 (cli) (built: Jun 20 2012 07:13:50) > > FreeBSD FreeBSD 8.2-RELEASE-p4 amd64 > > > cheers > > Ben > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Jul 6 05:36:01 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 06 Jul 2012 08:36:01 -0400 Subject: [mapserver-users] Layer Size In-Reply-To: <4FF69477.5040601@gmx.de> References: <4FF69477.5040601@gmx.de> Message-ID: <4FF6DBB1.8070002@swoodbridge.com> On 7/6/2012 3:32 AM, Alexander Barth wrote: > Hi List, > > i want to know if there is a way to increase the size of a layer. My > problem is that i want to get a satellite image in the background of > mein generated map and well i have the satellite image that where used > to create the classified information that i use to draw the map, but > they are to big to have them loaded every time. So i made simple tif / > jpg pictures out of them, but the problem is that these are to smal and > they only fill a smal amount of the map that is drawn. > > Any Ideas how to resolve my problem? Sounds like you need to build a tileindex. Read this: http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file -Steve W From Andreas.Eichner at sid.sachsen.de Fri Jul 6 05:47:29 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 6 Jul 2012 14:47:29 +0200 Subject: [mapserver-users] php_mapscript not being loaded References: <1341572184765-4986509.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B4@KS-EVS1.smi.sachsen.de> Hi, > dl('php_mapscript.so'); . > Which difference about load library in the page and call the > library load by apache? there's basically no difference except that on some sites this PHP extension is not enabled so a script needs to load it explicitly at runtime via dl(). If your site uses it seldomly other scripts might run faster since the interpreter doesn't need to initialize this extension but I don't know that exactly. Regarding functionality it makes absolutely no difference. From Bob.Bistrais at maine.gov Fri Jul 6 06:07:55 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 6 Jul 2012 13:07:55 +0000 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: References: Message-ID: Actually, there are no query strings there. The data sources are all shapefiles, it's a case of "show me everything with one symbol" for each layer. They are all displayed pretty much the same way. But here's the mapfile metadata with the itemquery parameters, if that helps... METADATA 'ows_title' 'Indices' 'ows_srs' 'EPSG:26919 EPSG:4326 EPSG:900913 EPSG:3857' 'ows_enable_request' '*' 'ows_onlineresource' 'http://www.geomoose.org' 'itemquery' 'itemquery.html' 'itemquery-filteritem' 'tilename' 'itemquery-filter' '/.*[qstring].*/i' 'qstring_validation_pattern' '.' END From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, July 06, 2012 12:18 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: How to get layer name in an identify template? What do your query strings look like? - Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I'd like to use the same template for those layers. I have this working well, except that I'd like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn't work:
[wms_title] <---I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Fri Jul 6 06:42:35 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 6 Jul 2012 08:42:35 -0500 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B4@KS-EVS1.smi.sachsen.de> References: <1341572184765-4986509.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B4@KS-EVS1.smi.sachsen.de> Message-ID: <10410A19-4761-4192-AB2F-F329489B135D@kyngchaos.com> Even more important is that dl() is not even available as of PHP 5.3 in PHP CGI and PHP Apache. You MUST load an extension from php.ini now. On Jul 6, 2012, at 7:47 AM, Eichner, Andreas - SID-NLKM wrote: > > Hi, > >> dl('php_mapscript.so'); . >> Which difference about load library in the page and call the >> library load by apache? > > there's basically no difference except that on some sites this PHP > extension is not enabled so a script needs to load it explicitly at > runtime via dl(). If your site uses it seldomly other scripts might run > faster since the interpreter doesn't need to initialize this extension > but I don't know that exactly. Regarding functionality it makes > absolutely no difference. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From Bob.Bistrais at maine.gov Fri Jul 6 07:34:20 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 6 Jul 2012 14:34:20 +0000 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: References: Message-ID: Thanks to Steve Lime for finding the solution: Use the [cl] (current layer name) tag in my template. This does the trick. So, my template now looks like this:
[cl] Tile:   [tilename] Download Image:   [LINK]
...Thanks again Steve! ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I'd like to use the same template for those layers. I have this working well, except that I'd like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn't work:
[wms_title] <---I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Jul 6 07:40:35 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 6 Jul 2012 15:40:35 +0100 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: Message-ID: <5469096336014646BA3809AB16DF98F3@DELLM4500> It would be handy to have a reference to all tags that are available for templating their limitations in terms of where they can be placed in the template. I've just started looking at templating for a WFS response and there's not a lot of out there; at least, I'm finding difficulty in gathering the info that I need. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: 06 July 2012 15:34 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get layer name in an identify template? Thanks to Steve Lime for finding the solution: Use the [cl] (current layer name) tag in my template. This does the trick. So, my template now looks like this:
[cl] Tile:   [tilename] Download Image:   [LINK]
Thanks again Steve! _____ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I?d like to use the same template for those layers. I have this working well, except that I?d like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn?t work:
[wms_title] ?-I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jul 6 07:44:54 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 06 Jul 2012 11:44:54 -0300 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <10410A19-4761-4192-AB2F-F329489B135D@kyngchaos.com> References: <1341572184765-4986509.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B4@KS-EVS1.smi.sachsen.de> <10410A19-4761-4192-AB2F-F329489B135D@kyngchaos.com> Message-ID: <4FF6F9E6.8080504@gatewaygeomatics.com> On 12-07-06 10:42 AM, William Kyngesburye wrote: > Even more important is that dl() is not even available as of PHP 5.3 in PHP CGI and PHP Apache. You MUST load an extension from php.ini now. > Excellent point William, this is the case for current MS4W users (PHP 5.4.x). [funny how us packagers learn this early the hard way] :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Fri Jul 6 08:02:51 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 6 Jul 2012 15:02:51 +0000 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: <5469096336014646BA3809AB16DF98F3@DELLM4500> References: <5469096336014646BA3809AB16DF98F3@DELLM4500> Message-ID: There are two references: 1) http://mapserver.org/mapfile/template.html has all the substitution tag references. 2) http://mapserver.org/output/template_output.html documents templated output formats. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Friday, July 06, 2012 9:41 AM To: 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get layer name in an identify template? It would be handy to have a reference to all tags that are available for templating their limitations in terms of where they can be placed in the template. I've just started looking at templating for a WFS response and there's not a lot of out there; at least, I'm finding difficulty in gathering the info that I need. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: 06 July 2012 15:34 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get layer name in an identify template? Thanks to Steve Lime for finding the solution: Use the [cl] (current layer name) tag in my template. This does the trick. So, my template now looks like this:
[cl] Tile:   [tilename] Download Image:   [LINK]
...Thanks again Steve! ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I'd like to use the same template for those layers. I have this working well, except that I'd like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn't work:
[wms_title] <---I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Jul 6 08:19:09 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 6 Jul 2012 16:19:09 +0100 Subject: [mapserver-users] How to get layer name in an identify template? In-Reply-To: Message-ID: Thank you for the references, Steve. I'm sure I've used "[bbox]" in a template which is not listed in the first link. I think I also had some issues regarding where tags like "[shpext]" can be used within or outwith the "[resultset layer=LayerName]" and "[feature]" tags. I will need to revisit the work that I was doing since I've put it on the back burner just now. I don't want to hi-jack this thread which is now resolved. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 06 July 2012 16:03 To: Donald Kerr; 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] How to get layer name in an identify template? There are two references: 1) http://mapserver.org/mapfile/template.html has all the substitution tag references. 2) http://mapserver.org/output/template_output.html documents templated output formats. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Friday, July 06, 2012 9:41 AM To: 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get layer name in an identify template? It would be handy to have a reference to all tags that are available for templating their limitations in terms of where they can be placed in the template. I've just started looking at templating for a WFS response and there's not a lot of out there; at least, I'm finding difficulty in gathering the info that I need. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: 06 July 2012 15:34 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get layer name in an identify template? Thanks to Steve Lime for finding the solution: Use the [cl] (current layer name) tag in my template. This does the trick. So, my template now looks like this:
[cl] Tile:   [tilename] Download Image:   [LINK]
Thanks again Steve! _____ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Thursday, July 05, 2012 2:01 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to get layer name in an identify template? I am trying to set up a single template, which will format the results of an identify (query by point). Many of the layers have the same item names, so I?d like to use the same template for those layers. I have this working well, except that I?d like the layer name to appear at the top of each query result. How can I put this in as a variable that MapServer can interpret? Below is my sample code of the template. I put [wms_title] in as the variable for the layer name, but this doesn?t work:
[wms_title] ?-I want to replace [wms_title] with something that will return the layer name Tile:   [tilename] Download Image:   [LINK] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jul 6 08:29:40 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 6 Jul 2012 15:29:40 +0000 Subject: [mapserver-users] Template Questions (was How to get layer name in an identify template?) In-Reply-To: References: Message-ID: That's not to say the references are completely current. ;-) If you do run a across missing information or whatever it's easiest to just file a ticket, or drop a note to the mailing list. To answer your other questions: * [bbox] is not a standard template tag. However, if you set a variable called "bbox" in your query request then that variable is available in template output (HTML escaped first to prevent cross-site scripting). * [shpext] and other feature specific tags can only be used within a [feature] block or in the old-style feature templates. Perhaps this can be made clearer in the docs. Steve From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, July 06, 2012 10:19 AM To: Lime, Steve D (DNR); 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] How to get layer name in an identify template? Thank you for the references, Steve. I'm sure I've used "[bbox]" in a template which is not listed in the first link. I think I also had some issues regarding where tags like "[shpext]" can be used within or outwith the "[resultset layer=LayerName]" and "[feature]" tags. I will need to revisit the work that I was doing since I've put it on the back burner just now. I don't want to hi-jack this thread which is now resolved. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jul 6 08:33:25 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 6 Jul 2012 15:33:25 +0000 Subject: [mapserver-users] One template for every text type In-Reply-To: References: Message-ID: Hi Andrea: You can define multiple output formats that use the template driver. They can each have different names and mime-types. You can even use mime subtypes if you needed, say, two XML formats. The MapServer CGI supports a parameter called qformat that allows you to change the query template to be used. I'm not sure how this works with WFS, probably via mime-type. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri Sent: Tuesday, July 03, 2012 5:42 PM To: mapserver-users at lists.osgeo.org Subject: [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 ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Jul 6 09:28:56 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 6 Jul 2012 17:28:56 +0100 Subject: [mapserver-users] Template Questions (was How to get layer name in an identify template?) In-Reply-To: Message-ID: <70E1A74B107C42159E7C6DDAA6B3DAB4@DELLM4500> Thanks, Steve. That certainly explains why bbox is available and not specifically listed! Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 06 July 2012 16:30 To: Donald Kerr; 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: [mapserver-users] Template Questions (was How to get layer name in an identify template?) That's not to say the references are completely current. ;-) If you do run a across missing information or whatever it's easiest to just file a ticket, or drop a note to the mailing list. To answer your other questions: . [bbox] is not a standard template tag. However, if you set a variable called "bbox" in your query request then that variable is available in template output (HTML escaped first to prevent cross-site scripting). . [shpext] and other feature specific tags can only be used within a [feature] block or in the old-style feature templates. Perhaps this can be made clearer in the docs. Steve From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Friday, July 06, 2012 10:19 AM To: Lime, Steve D (DNR); 'Bistrais, Bob'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] How to get layer name in an identify template? Thank you for the references, Steve. I'm sure I've used "[bbox]" in a template which is not listed in the first link. I think I also had some issues regarding where tags like "[shpext]" can be used within or outwith the "[resultset layer=LayerName]" and "[feature]" tags. I will need to revisit the work that I was doing since I've put it on the back burner just now. I don't want to hi-jack this thread which is now resolved. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcpp.kalxas at gmail.com Sat Jul 7 11:25:10 2012 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Sat, 07 Jul 2012 21:25:10 +0300 Subject: [mapserver-users] [mapserver-dev] MapServer 6.2.0-beta1 release - Please test! In-Reply-To: References: Message-ID: <4FF87F06.9060909@gmail.com> On 06/29/2012 03:46 PM, thomas bonfort wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.2.0-beta1. This is the first beta on our way to a final 6.2 release > which is planned here: > > https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan > > After the 6.0 release which introduced important changes in key > components of the MapServer core (rendering, query and expressions), > this 6.2 release focuses on some new features which are summarized > here: > > * RFC 73 : SVG symbology support > * RFC 75 : INSPIRE view services > * RFC 76 : XMP Metadata support > * RFC 77 : Multiple labels or collision-detected symbols per feature > * RFC 78 : Vector Field rendering > * RFC 79 : Layer Masks > * RFC 80 : Multiple font fallback support > * RFC 81 : Offset labels with leader lines > > (RFCs are available online at http://mapserver.org/development/rfc/) > > Other notable enhancements include: > > * GD support disabled by default. Enable with --with-gd > * labelcache: speedups and reduced memory usage > * postgis input: reduced memory usage, better index usage in TIME queries > * proj: use the unlocked thread free version if proj >= 4.8.0 > * optional fastpath 4326->3857 reprojections > * libtool builds: make install is now required. the mapserv and shp2img > tools now link to a shared libmapserver library > * python and php mapscript build changes > * support for ELEVATION and DIM_* WMS dimensions > * precise symbol placement: ANCHORPOINT > * support for named group layer > * basic multi-language support in WMS > * php mapscript support for php 5.4 > > We count on you, MapServer power users, to help test the release in > your respective environments and provide feedback (through the users > list or github tickets). > > There are two notable changes compared to previous MapServer versions: > * Code and issues migrated have been migrated from trac to github ( > https://github.com/mapserver/mapserver ). If you have not already done > so, you will need to create a github userid in order to submit tickets > and patches. Note that all trac tickets have been migrated to github > under the same ticket ID (that is, e.g. > http://trac.osgeo.org/mapserver/ticket/4208 has become > https://github.com/mapserver/mapserver/issues/4208 ). However ticket > CCs and notifications have not been migrated, so you will need to > manually enable notifications on tickets you where previously > following in order to get future updates. You can do this by either > commenting in the ticket, or clicking the "Notifications for new > comments on this Issue are off. Enable notifications for this Issue" > link at the bottom of the ticket page. > * The build process on unix platforms has changed significantly: > * `make install` must be run now at the end of the build process > * we now honor the --prefix configure argument, for > $prefix/lib/libmapserver.so , $prefix/bin/mapserv , etc... > * your webserver cgi configuration should point to the *installed* > version of "mapserv", not the "mapserv" that resides in the source > directory > > > As usual there is also a large number of additional small enhancements > and bug fixes. For a complete list see the HISTORY.TXT file at: > > https://github.com/mapserver/mapserver/blob/branch-6-2/HISTORY.TXT > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.2.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.2.0-beta1 release in the next couple of days. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the beginning of August. The full > release plan can be viewed at: > > https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > Hi all, 6.2beta1 rpm packages for openSUSE are now available here: https://build.opensuse.org/package/show?package=mapserver&project=home%3Atzotsos%3AApplication%3AGeo happy testing :) Angelos -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From lists at fuchsschwanzdomain.de Sat Jul 7 11:36:53 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Sat, 7 Jul 2012 18:36:53 +0000 (UTC) Subject: [mapserver-users] Polygon layer does not cover labels Message-ID: Hello, I have a mapfile which contains amongst other a labeled contour layer. However these are not very acurate because they are derived from SRTM. For this reason I render the ocean polygon layer above the contour layer. This works fine for the contours but does not seem to work for the contour labels. So the question is how to make the polygon layer opaque for labels. Here are the relevant parts of my mapfile: LAYER TYPE LINE NAME contours PROCESSING "LABEL_NO_CLIP=ON" ... STYLE WIDTH 1.0 COLOR "#BE9E9E" END LABEL ANGLE FOLLOW REPEATDISTANCE 450 TYPE TRUETYPE FONT sc PARTIALS FALSE OUTLINEWIDTH 0 SIZE 8 COLOR "#996666" END END END LAYER TYPE POLYGON PROCESSING "APPROXIMATION_SCALE=FULL" name ocean ... CLASS STYLE COLOR "#579ae3" END END # of class END Regards Sven -- "The only thing we have to fear is fear itself" (Franklin D. Roosevelt) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From matt at wildwalks.com Sat Jul 7 15:54:03 2012 From: matt at wildwalks.com (Matt McClelland) Date: Sun, 8 Jul 2012 08:54:03 +1000 Subject: [mapserver-users] Polygon layer does not cover labels In-Reply-To: References: Message-ID: Hi Sven I had exactly the same problem :) If labelcaching is on, the labels are rendered at the end or the map drawing, so they always end up on top. you can turn label cache off for that particular layer. But this will mean that you will end up with labels running into each other on your map (as the contour labels will not be aware of other labels). I solved my issue buy just not showing contour labels for the 10m contours. (I do not show the 0m contour line or label) This solved the issue for the ocean but not for lakes and other water bodies. What would be really nice is a script that can 'tweak' DEM based on map data. something that changes the DEM to ensure contours follow shorelines, and that the bottom of a valley follows creeks. But I just dream of such a tool. Happy mapping Matt :) On Sun, Jul 8, 2012 at 4:36 AM, Sven Geggus wrote: > Hello, > > I have a mapfile which contains amongst other a labeled contour layer. > However these are not very acurate because they are derived from > SRTM. For this reason I render the ocean polygon layer above the contour > layer. > > This works fine for the contours but does not seem to work for the > contour labels. > > So the question is how to make the polygon layer opaque for labels. > > Here are the relevant parts of my mapfile: > > LAYER > TYPE LINE > NAME contours > PROCESSING "LABEL_NO_CLIP=ON" > ... > STYLE > WIDTH 1.0 > COLOR "#BE9E9E" > END > LABEL > ANGLE FOLLOW > REPEATDISTANCE 450 > TYPE TRUETYPE FONT sc PARTIALS FALSE OUTLINEWIDTH 0 > SIZE 8 > COLOR "#996666" > END > END > END > > LAYER > TYPE POLYGON > PROCESSING "APPROXIMATION_SCALE=FULL" > name ocean > ... > CLASS > STYLE > COLOR "#579ae3" > END > END # of class > END > > > > Regards > > Sven > > -- > "The only thing we have to fear is fear itself" (Franklin D. Roosevelt) > > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at remoteinformation.com.au Sun Jul 8 00:05:15 2012 From: lists at remoteinformation.com.au (Ben Madin) Date: Sun, 8 Jul 2012 15:05:15 +0800 Subject: [mapserver-users] php-mapscript problem and symbolname trying to open a file? In-Reply-To: References: <249B1197-8D81-4363-A37B-EA147DF1E998@remoteinformation.com.au> Message-ID: <2FE733E6-A226-46BF-AC79-97DB9A5006E4@remoteinformation.com.au> Thanks Thomas, you are correct - I was actually not specifying any symbol set at all : For reasons I can't begin to work out, most of the map file is being written, but the symbol and font lines are failing : $blumap=new MapObj('',$mapserver_path); $blumap->set('debug','MS_ON'); $blumap->setprojection('proj=latlong,ellps=WGS84,datum=WGS84',MS_TRUE); $blumap->set('units',MS_DD); $blumap->imagecolor->setRGB($sea_bgc[0],$sea_bgc[1],$sea_bgc[2]); $blumap->setExtent(110, -45, 160, -10); $blumap->setSymbolSet('/usr/local/www/apache22/data/nahis/mapserver/symbols/standard.symbols'); $blumap->setFontSet($mapserver_path.'fonts/standard.fonts'); $blumap->outputformat->set('name', 'png'); $blumap->outputformat->set('driver', 'agg/png'); ? is giving me : MAP EXTENT 110 -45 160 -10 IMAGECOLOR 230 252 255 IMAGETYPE "png" NAME "MS" SIZE 600 600 STATUS ON UNITS DD OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "agg/png" ? Why might the setsymbol and setfont lines be failing to produce mapfile output - but the rest are working fine? Noting that the path in the command is used in other static map files and is working when it is in the file. If I copy and paste this path into the map file generated by PHP, I get my desired result? cheers Ben On 06/07/2012, at 7:42 PM, thomas bonfort wrote: > c.f. http://osgeo-org.1560.n6.nabble.com/msLoadMSRasterBufferFromFile-General-error-message-unable-to-open-file-tc4984932.html > > -- > thomas > > On Fri, Jul 6, 2012 at 10:33 AM, Ben Madin > wrote: >> G'day all, >> >> I'm not sure if this is two problems, or the second problem is a result of the first. The second problem is that I have a mapfile with multiple sections that look like : >> >> CLASS >> NAME "Sentinel Positive" >> EXPRESSION "SentPos" >> STYLE >> ANGLE 0 >> COLOR 220 20 40 >> OFFSET 0 0 >> SIZE 8 >> SYMBOL "circle" >> END # STYLE >> END # CLASS >> >> >> where symbol is : >> >> SYMBOL # 1 >> NAME 'circle' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED TRUE >> END >> >> >> and when I try to open it, I get : >> >> # shp2img -m nampa4f2267cb1afaed507c167efa264946dBLU.map -o test.png >> msDrawMap(): Image handling error. Failed to draw layer named 'BLU'.
>> msLoadMSRasterBufferFromFile(): General error message. unable to open file /usr/local/www/apache22/data/system/mapserver/maps/tmpmapfiles/./circle for reading
>> >> >> I know that SYMBOL can be a name (in the symbol file) or a filename, but clearly it is getting confused. >> >> The first problem is that this file is one of several that is meant to be generated by a looping structure in php-mapscript, and I am getting : >> >> [Fri Jul 06 18:08:13 2012] [notice] child pid 74615 exit signal Abort trap (6) >> Assertion failed: (pixmap->type == MS_BUFFER_BYTE_RGBA), function agg2RenderPixmapSymbol, file mapagg.cpp, line 464. >> [Fri Jul 06 18:08:57 2012] [notice] child pid 74300 exit signal Abort trap (6) >> >> >> errors when I try to build the layers (this is the only one that builds). I'm a little short on ideas as to where to go next. >> >> this is : >> >> MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Server version: Apache/2.2.22 (FreeBSD) >> >> PHP 5.4.4 (cli) (built: Jun 20 2012 07:13:50) >> >> FreeBSD FreeBSD 8.2-RELEASE-p4 amd64 >> >> >> cheers >> >> Ben >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Sun Jul 8 10:33:14 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Sun, 8 Jul 2012 17:33:14 +0000 (UTC) Subject: [mapserver-users] Polygon layer does not cover labels References: Message-ID: Matt McClelland wrote: > What would be really nice is a script that can 'tweak' DEM based on map > data. something that changes the DEM to ensure contours follow shorelines, > and that the bottom of a valley follows creeks. But I just dream of such a > tool. Sound complicated, but clipping might be sufficient for now because this can be done using postgis. It should be possible to clip the contours at the edges of the waterbodies using ST_Difference: Problem solved because no contour lines means no labels as well :) So looks like I "just" need to cook up the right SQL query now... Regards Sven -- Das Internet wird vor allem von Leuten genutzt, die sich Pornografie ansehen, w?hrend sie Bier trinken, es ist daher f?r Wahlen nicht geeignet (Jaroslaw Kaczynski) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From scott159 at free.fr Sun Jul 8 20:55:23 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Mon, 9 Jul 2012 05:55:23 +0200 (CEST) Subject: [mapserver-users] wms_encoding In-Reply-To: <1638137671.5653541.1341805702730.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <1276884829.5659315.1341806123750.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I would like to read information with getfeatureinfo requests so I add "wms_encoding=ISO-8859-1" in METADATA/WEB. But I don't understand why the result is not similar in OpenLayers and qgis. Everything is ok with OpenLayers but with qgis I have some characters impossible to read ? Why sometimes it's seems necessary to set "wms_encoding=ISO-8859-1" or "wms_encoding=UTF-8" to get information in client ? From stefan.schwarzer at unep.org Sun Jul 8 22:41:52 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Mon, 9 Jul 2012 07:41:52 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: Message-ID: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> >> But hadn't tested mapserver yet? Did all the installation with the latest Kyngchaos libraries. >> >> Running "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there. >> >> There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"". > > No need to set extension_dir, it defaults to the correct dir, which is not as you set it but includes the no-debug... subdir. > >> Restarted the server, "sudo /usr/sbin/apachectl restart". > > graceful is all that's needed: sudo apachectl graceful, but it probably doesn't matter. > >> But still no Mapscript in testphp.php? Did it really restart and load php.ini now?. Any way to check that? It should work that way, no? No, indeed, didn't matter. Still no mapserver/mapscript appearing in testphp.php. Had added "extension=php_mapscript.so" to php.ini before already. What can I do? Thanks for any hints, as I am really stuck! From Andreas.Eichner at sid.sachsen.de Mon Jul 9 00:44:46 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 9 Jul 2012 09:44:46 +0200 Subject: [mapserver-users] wms_encoding References: <1276884829.5659315.1341806123750.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B6@KS-EVS1.smi.sachsen.de> Hi, > so I add "wms_encoding=ISO-8859-1" in METADATA/WEB. But I > don't understand why the result is not similar in OpenLayers > and qgis. if this is the case, you usually broke the path of encodings. You should check the URL requested by the browser and by QGIS. Then send that query via "wget -d" or similar to see the headers too. With a XHTML GetFeatureInfo response there are actually three places to tell the encoding: the HTTP response headers, the XML declaration and a http-equiv meta within the HTML document header. If this is not consistent the result depends on what will be preferred. Hopefully you can track this down. From aperi2007 at gmail.com Mon Jul 9 03:14:32 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 9 Jul 2012 12:14:32 +0200 Subject: [mapserver-users] One template for every text type In-Reply-To: References: Message-ID: Hi Steve, thx for hint. I read the doc and also the RFC 36. I'm having also some doubt. I try to set this output format: OUTPUTFORMAT NAME "delimitazione_fogli_xml" MIMETYPE "text/xml" DRIVER "TEMPLATE" FORMATOPTION "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl" END at WEB level I set this value: WEB METADATA "wms_feature_info_mime_type" "text/xml" END END And how explained from RFC I comment the template from layer level and try to add the tag QUERYABLE TRUE (But this option seem to be not supported from MapServer 6.2 trunk) If I remove the template tag from layer level I have this error: msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable. And if I try to add the QUERYABLE TRUE tag I have this error: >Unknown identifier. Parsing error near (QUERYABLE) So I need to maintain the template ad Layer level. This force the layer to use the template from that tag instead of the tag from FORMATOPTION. Also I don't understand how to link the specific format option the a specific layer. Thx, Andrea. 2012/7/6 Lime, Steve D (DNR) > Hi Andrea: You can define multiple output formats that use the template > driver. They can each have different names and mime-types. You can even use > mime subtypes if you needed, say, two XML formats. The MapServer CGI > supports a parameter called qformat that allows you to change the query > template to be used. I?m not sure how this works with WFS, probably via > mime-type.**** > > ** ** > > Steve**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Andrea Peri > *Sent:* Tuesday, July 03, 2012 5:42 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [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 ????? > -----------------**** > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jul 9 05:01:41 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 09 Jul 2012 09:01:41 -0300 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> Message-ID: <4FFAC825.9030107@gatewaygeomatics.com> On 12-07-09 2:41 AM, Stefan Schwarzer wrote: > >>> But hadn't tested mapserver yet? Did all the installation with the latest Kyngchaos libraries. >>> >>> Running "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there. >>> >>> There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"". >> >> No need to set extension_dir, it defaults to the correct dir, which is not as you set it but includes the no-debug... subdir. >> >>> Restarted the server, "sudo /usr/sbin/apachectl restart". >> >> graceful is all that's needed: sudo apachectl graceful, but it probably doesn't matter. >> >>> But still no Mapscript in testphp.php? Did it really restart and load php.ini now?. Any way to check that? It should work that way, no? > > No, indeed, didn't matter. Still no mapserver/mapscript appearing in testphp.php. Had added "extension=php_mapscript.so" to php.ini before already. > > What can I do? Thanks for any hints, as I am really stuck! > Whenever I get this stuck with loading mapscript, I try to: - execute the php executable directly (php -i) and look for an error message, sometimes it is at the bottom of that generated page - check the Apache error logs (error.log) I have seen this problem when users grab PHP from one location, and then download PHP MapScript from another location - that will make your hair go grey. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Mon Jul 9 10:50:39 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 9 Jul 2012 17:50:39 +0000 Subject: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() Search returns no results In-Reply-To: <65BEB16FA7472A47ADFC80A42BF04FE801C0065A@awtsbs01> References: <65BEB16FA7472A47ADFC80A42BF04FE801C0065A@awtsbs01> Message-ID: Not a fcgi expert, but looking at the code any error calls writeError() in mapserv.c which ends with exit(0). So as written the behavior you're seeing is expected. I don't believe there is much overhead with restarting though. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Thomas Joseph Sent: Thursday, July 05, 2012 5:13 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() Search returns no results I am not sure if this is a problem or not but I was wondering if anyone else has experienced fastcgi warnings with every msQueryByPoint that returns no results ? Everything works as expected when querying a point that returns a result or simply panning or zooming the map. However, when a user clicks on the map and the query returns no results the fastcgi terminates the pid and creates a new one. Is this normal behavior ? I am very much a novice with fastcgi but it seems like this will slow things down and is counter intuitive to using fastcgi. The user experience is not affected but if we could make things faster that would always be good. We are using the following setup: Ubuntu 64bit Server - 10.10 Mapserver 6.0.1 Apache/2.2.16 mod-fastcgi 2.4.6-1 Below I have included a except of the mapserver MS_ERRORFILE and the apache2 error log: MS_ERRORFILE [Thu Jul 5 21:42:22 2012].92065 CGI Request 2 on process 27946 [Thu Jul 5 21:42:22 2012].231782 msQueryByPoint(): Search returned no results. No matching record(s) found. [Thu Jul 5 21:42:22 2012].231829 msFreeMap(): freeing map at 0x8f983d0. /var/log/apache2/error.log [Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" (pid 27946) terminated by calling exit with status '0' [Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" restarted (pid 27948) ________________________________ THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jul 9 11:05:19 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 9 Jul 2012 18:05:19 +0000 Subject: [mapserver-users] One template for every text type In-Reply-To: References: Message-ID: The QUERYABLE parameter was never implemented so you still must define a layer TEMPLATE to mark a layer as being queryable. The template need not exist so typically I just do: TEMPLATE 'void' The link between layers and OUTPUTFORMAT templates are in the templates themselves via the [resultset] tag. Steve From: Andrea Peri [mailto:aperi2007 at gmail.com] Sent: Monday, July 09, 2012 5:15 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] One template for every text type Hi Steve, thx for hint. I read the doc and also the RFC 36. I'm having also some doubt. I try to set this output format: OUTPUTFORMAT NAME "delimitazione_fogli_xml" MIMETYPE "text/xml" DRIVER "TEMPLATE" FORMATOPTION "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl" END at WEB level I set this value: WEB METADATA "wms_feature_info_mime_type" "text/xml" END END And how explained from RFC I comment the template from layer level and try to add the tag QUERYABLE TRUE (But this option seem to be not supported from MapServer 6.2 trunk) If I remove the template tag from layer level I have this error: msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable. And if I try to add the QUERYABLE TRUE tag I have this error: >Unknown identifier. Parsing error near (QUERYABLE) So I need to maintain the template ad Layer level. This force the layer to use the template from that tag instead of the tag from FORMATOPTION. Also I don't understand how to link the specific format option the a specific layer. Thx, Andrea. 2012/7/6 Lime, Steve D (DNR) > Hi Andrea: You can define multiple output formats that use the template driver. They can each have different names and mime-types. You can even use mime subtypes if you needed, say, two XML formats. The MapServer CGI supports a parameter called qformat that allows you to change the query template to be used. I'm not sure how this works with WFS, probably via mime-type. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrea Peri Sent: Tuesday, July 03, 2012 5:42 PM To: mapserver-users at lists.osgeo.org Subject: [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 ????? ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Mon Jul 9 12:44:21 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Mon, 9 Jul 2012 21:44:21 +0200 (CEST) Subject: [mapserver-users] wms_encoding In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B6@KS-EVS1.smi.sachsen.de> Message-ID: <1187239013.7336375.1341863061775.JavaMail.root@zimbra34-e6.priv.proxad.net> In a mapfile, I believe it's not possible to specify two different "wms_encoding" on a same layer. So, if I want to response with requests from openlayers and qgis, I must configure data in mapfile with two different layers (layer1 with wms_encoding=ISO-8859-1, layer2 with wms_encoding=UTF8 ? is it ok ? ----- Mail original ----- De: "Andreas Eichner - SID-NLKM" ?: scott159 at free.fr, mapserver-users at lists.osgeo.org Envoy?: Lundi 9 Juillet 2012 09:44:46 Objet: AW: [mapserver-users] wms_encoding Hi, > so I add "wms_encoding=ISO-8859-1" in METADATA/WEB. But I > don't understand why the result is not similar in OpenLayers > and qgis. if this is the case, you usually broke the path of encodings. You should check the URL requested by the browser and by QGIS. Then send that query via "wget -d" or similar to see the headers too. With a XHTML GetFeatureInfo response there are actually three places to tell the encoding: the HTTP response headers, the XML declaration and a http-equiv meta within the HTML document header. If this is not consistent the result depends on what will be preferred. Hopefully you can track this down. From Jessica.Clarke at forestrytas.com.au Mon Jul 9 19:27:26 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Tue, 10 Jul 2012 12:27:26 +1000 Subject: [mapserver-users] PHP mapscript using OracleSpatial In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B2@KS-EVS1.smi.sachsen.de> References: <4FF6F573020000DD00016C43@mail2.forestrytas.com.au> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B2@KS-EVS1.smi.sachsen.de> Message-ID: <4FFC1FAE020000DD00016CEF@mail2.forestrytas.com.au> Hi Andreas (and others), Thank you for your assistance. I have moved past my oracle issues now, but I'm having trouble with Mapserver. The only error I get is "Error in getString(): Parsing error near (DD):(line 463)" I'll attach my code to help, but I'm not sure why I'm having this issue. Any advice is very welcome. Thank you. Jess ###PHP### setExtent($target_asset[1]-$buffer, $target_asset[2]-$buffer, $target_asset[3]+$buffer, $target_asset[4]+$buffer); //Set up original shape layer $shape_layer=$map->getLayerByName("layer1"); $shape_layer->set("status", MS_ON); $shape_layer->set("type", $shape_type); $shape_layer->set("connectiontype", MS_ORACLESPATIAL); $shape_layer->set("connection", $oracle_user."/".$oracle_pass."@".$oracle_db); $shape_layer->set("data", $data); //echo $data; $shape_layer->setProcessing("CLOSE_CONNECTION=DEFER"); $shape_layer->setProjection('+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'); //$shape_layer->set("maxscaledenom", 250001); $shape_class=ms_newClassObj($shape_layer); $shape_style=ms_newStyleObj($shape_class); $shape_style->color->setRGB(199, 140, 218); $shape_style2=ms_newStyleObj($shape_class); $shape_style2->outlinecolor->setRGB(147, 37, 178); $shape_style2->set("width", 2); //Set up related shape layer /*$rel_layer=$map->getLayerByName("layer2"); $rel_layer->set("status", MS_ON); $rel_layer->set('type', $rel_type); $rel_layer->set("connectiontype", MS_ORACLESPATIAL); $rel_layer->set("connection", $oracle_user."/".$oracle_pass."@".$oracle_db); $rel_layer->set("data", $rel_data); //echo $rel_data; $rel_layer->setProcessing("CLOSE_CONNECTION=DEFER"); $rel_layer->setProjection('+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'); $rel_class=ms_newClassObj($rel_layer); $rel_style=ms_newStyleObj($rel_class); $rel_style->color->setRGB(199, 140, 218); $rel_style->set("width", 3); //echo 'layer2 done'; */ //draw the map $map_image=$map->draw(); $error=ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } $map_image->saveWebImage(); //send image to web browser } ?> ###MAPFILE### MAP NAME base2 STATUS ON SIZE 800 600 EXTENT 227154 5165779 627108 5614539 UNITS METERS IMAGECOLOR 234 255 255 SYMBOLSET "base.sym" FONTSET "base.list" PROJECTION "proj=utm" "zone=55" "south" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0" "units=m" "no_defs" END SHAPEPATH "E:\tilelib\" QUERYMAP STATUS ON STYLE SELECTED END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END WEB IMAGEPATH "C:\htdocs\tmp\" IMAGEURL "/tmp/" END LEGEND STATUS OFF END SCALEBAR STATUS EMBED POSITION lr STYLE 1 UNITS meters TRANSPARENT ON LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT "verdana" TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END [.....] LAYER NAME layer1 TYPE POLYGON STATUS OFF END LAYER NAME layer2 TYPE LINE STATUS OFF END [.....] LAYER NAME "grid" TYPE LINE STATUS ON CLASS STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END LABEL COLOR 255 0 0 FONT "verdana" TYPE truetype SIZE 8 POSITION CC PARTIALS FALSE BUFFER 0 OUTLINECOLOR 255 255 255 SHADOWCOLOR 60 60 60 SHADOWSIZE 2 2 END END PROJECTION "proj=utm" "zone=55" "south" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0" "units=m" "no_defs" END GRID LABELFORMAT DD MAXARCS 4 MAXSUBDIVIDE 8 END END >>> "Eichner, Andreas - SID-NLKM" 6/07/2012 5:56 PM >>> Hello Jessica, I've tested your code successfully on PHP MapScript v5.2.0. > I have issues with > oraclespatial, and I just keep getting errors that the layer > can't be drawn. What errors do you get? Something like "[...] Error: ORA-12154: TNS:could not resolve the connect identifier specified"? Then you might need to set some environment variables first. For example, I set ORACLE_HOME, TNS_ADMIN, LC_CTYPE and NLS_LANG. > The lack of error reporting from > php hasn't been helping matters either ;) You can execute your script on the command line via "php ". This will display errors as long as error_reporting(E_ALL) or similar is set: $ php test.php Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'ASSET'. in /tmp/foo/test.php on line 53 Warning: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS:could not resolve the connect identifier specified . in /tmp/foo/test.php on line 53 Error in msDrawMap(): Failed to draw layer named 'ASSET'.
HTH --------------------------------------------------------------------------------------------------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error, you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at unep.org Mon Jul 9 22:13:56 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 10 Jul 2012 07:13:56 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <4FFAC825.9030107@gatewaygeomatics.com> References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> Message-ID: >>>> But hadn't tested mapserver yet? Did all the installation with the latest Kyngchaos libraries. >>>> >>>> Running "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there. >>>> >>>> There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"". >>> >>> No need to set extension_dir, it defaults to the correct dir, which is not as you set it but includes the no-debug... subdir. >>> >>>> Restarted the server, "sudo /usr/sbin/apachectl restart". >>> >>> graceful is all that's needed: sudo apachectl graceful, but it probably doesn't matter. >>> >>>> But still no Mapscript in testphp.php? Did it really restart and load php.ini now?. Any way to check that? It should work that way, no? >> >> No, indeed, didn't matter. Still no mapserver/mapscript appearing in testphp.php. Had added "extension=php_mapscript.so" to php.ini before already. >> >> What can I do? Thanks for any hints, as I am really stuck! >> > > Whenever I get this stuck with loading mapscript, I try to: > > - execute the php executable directly (php -i) and look for an error > message, sometimes it is at the bottom of that generated page > - check the Apache error logs (error.log) > > I have seen this problem when users grab PHP from one location, and then > download PHP MapScript from another location - that will make your hair > go grey. Thanks for those hints. But unfortunately, nothing. I checked the Apache error log before, and there is nothing there. At least nothing I think is important. I guess the MaxClients thing is not causing my mapsever to not appear, no? [Tue Jul 10 07:09:58 2012] [notice] caught SIGTERM, shutting down [Tue Jul 10 07:09:59 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] WARNING: MaxClients of 150 exceeds ServerLimit value of 133 servers, lowering MaxClients to 133. To increase, please see the ServerLimit directive. [Tue Jul 10 07:10:01 2012] [warn] mod_bonjour: Skipping user 'xxx' - no valid index file. [Tue Jul 10 07:10:01 2012] [notice] Digest: generating secret for digest authentication ... [Tue Jul 10 07:10:01 2012] [notice] Digest: done [Tue Jul 10 07:10:01 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 configured -- resuming normal operations And the php -i it spitting out a long list, but no errors. I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. From admin at michiganwxsystem.com Mon Jul 9 22:23:19 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Tue, 10 Jul 2012 01:23:19 -0400 Subject: [mapserver-users] PHP Mapscript Message-ID: <4FFBBC47.2020302@michiganwxsystem.com> This may or not be the place to ask... But what is so special with php53-GD ?? both my servers are beyond php53, so I was unable to install php-mapserver I would think that it would be better to set up the dependent libraries to be AT LEAST version x not just this version and that's it... -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com From Andreas.Eichner at sid.sachsen.de Tue Jul 10 01:10:54 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 10 Jul 2012 10:10:54 +0200 Subject: [mapserver-users] wms_encoding References: <1187239013.7336375.1341863061775.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3B7@KS-EVS1.smi.sachsen.de> > In a mapfile, I believe it's not possible to specify two > different "wms_encoding" on a same layer. So, if I want to > response with requests from openlayers and qgis, I must > configure data in mapfile with two different layers (layer1 > with wms_encoding=ISO-8859-1, layer2 with wms_encoding=UTF8 ? > is it ok ? wms_encoding should go into MAP.WEB.METADATA section as it sets the encoding for all responses of the web map service and doesn't deal with individual layers. It should be noted that MapServer doesn't really encode WMS responses. It actually writes data out as it comes in from map file and data sources. So those should be consistent. You should check that HTTP headers match the encoding of your template and data. QGIS should then be able to read it correctly. If this is still not the case you should create an issue on qgis.org. From jmckenna at gatewaygeomatics.com Tue Jul 10 03:58:40 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 10 Jul 2012 07:58:40 -0300 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> Message-ID: <4FFC0AE0.5060805@gatewaygeomatics.com> On 12-07-10 2:13 AM, Stefan Schwarzer wrote: > > And the php -i it spitting out a long list, but no errors. The important point with that 'php -i' command is if it contains a 'mapscript' section; then compare those results through Apache (does a 'phpinfo.php' file through your browser display a section for 'mapscript') - these are the issues to check. Often, I'll be able to load mapscript through the commandline, but Apache cannot - and this will show you where you need to spend your time/effort. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stefan.schwarzer at unep.org Tue Jul 10 04:16:02 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 10 Jul 2012 13:16:02 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <4FFC0AE0.5060805@gatewaygeomatics.com> References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> <4FFC0AE0.5060805@gatewaygeomatics.com> Message-ID: <859B713B-2338-4474-B357-9C0B3B29AB0E@unep.org> >> >> And the php -i it spitting out a long list, but no errors. > > The important point with that 'php -i' command is if it contains a > 'mapscript' section; then compare those results through Apache (does a > 'phpinfo.php' file through your browser display a section for > 'mapscript') - these are the issues to check. Often, I'll be able to > load mapscript through the commandline, but Apache cannot - and this > will show you where you need to spend your time/effort. Ah, thanks for clarifying. But no, there are two "map" incidences, but they refer to Protocols (such as ftp, http?) From woklist at kyngchaos.com Tue Jul 10 06:46:45 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 10 Jul 2012 08:46:45 -0500 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> Message-ID: On Jul 10, 2012, at 12:13 AM, Stefan Schwarzer wrote: > Thanks for those hints. But unfortunately, nothing. I checked the Apache error log before, and there is nothing there. At least nothing I think is important. I guess the MaxClients thing is not causing my mapsever to not appear, no? > > [Tue Jul 10 07:09:58 2012] [notice] caught SIGTERM, shutting down > [Tue Jul 10 07:09:59 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] > WARNING: MaxClients of 150 exceeds ServerLimit value of 133 servers, > lowering MaxClients to 133. To increase, please see the ServerLimit > directive. > [Tue Jul 10 07:10:01 2012] [warn] mod_bonjour: Skipping user 'xxx' - no valid index file. > [Tue Jul 10 07:10:01 2012] [notice] Digest: generating secret for digest authentication ... > [Tue Jul 10 07:10:01 2012] [notice] Digest: done > [Tue Jul 10 07:10:01 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 configured -- resuming normal operations > > > And the php -i it spitting out a long list, but no errors. > > I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. > I wonder if Apache is still using the system PHP? The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8). Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library). ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From stefan.schwarzer at unep.org Tue Jul 10 07:15:56 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 10 Jul 2012 16:15:56 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: References: <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> Message-ID: >> And the php -i it spitting out a long list, but no errors. >> >> I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. >> > I wonder if Apache is still using the system PHP? The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8). > > Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library). Ha, good one. Thanks a lot! Indeed, the phpinfo shows 5.3.8, the php -i shows 5.3.10. I am on OS X 10.7, however. What does that mean? I have a mixture of 10.6 and 10.7 on my machine? I have my Snow Leopard still installed on a spearate drive in the machine; does Apache load the php from there? From jpass at bgs.ac.uk Tue Jul 10 07:16:50 2012 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Tue, 10 Jul 2012 15:16:50 +0100 Subject: [mapserver-users] MapServer 6.2.0-beta1 release: bug or config error with INSPIRE response In-Reply-To: <28C15D104A882F47954DEE56148152CC247D2444E6@nerckwmb1.ad.nerc.ac.uk> References: <28C15D104A882F47954DEE56148152CC247D2444E6@nerckwmb1.ad.nerc.ac.uk> Message-ID: <4DC99887ECFBA1499899FACCDFF7F21A21899EC9E5@nerckwmb1.ad.nerc.ac.uk> I'm trying to add INSPIRE extended capabilities (scenario 1) into a test service using the MapServer 6.2.0-beta1 release. I'm trying to follow the http://mapserver.org/trunk/ogc/inspire.html documentation I want an English only response hopefully like: http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd& application/xml eng eng I seem to have a problem with the 'WMS_LANGUAGES' metadata If I comment out the 'WMS_LANGUAGES' metadata like: WMS_INSPIRE_CAPABILITIES "URL" #WMS_LANGUAGES "eng" WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&" WMS_INSPIRE_METADATAURL_FORMAT "application/xml" My response is: http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd& application/xml So I assume the other metadata is correct. If I add any content to the 'WMS_LANGUAGES' metadata like: WMS_INSPIRE_CAPABILITIES "URL" WMS_LANGUAGES "eng" WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&" WMS_INSPIRE_METADATAURL_FORMAT "application/xml" Or WMS_INSPIRE_CAPABILITIES "URL" WMS_LANGUAGES "eng,eng" WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&" WMS_INSPIRE_METADATAURL_FORMAT "application/xml" Or WMS_INSPIRE_CAPABILITIES "URL" WMS_LANGUAGES "eng,ger" WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&" WMS_INSPIRE_METADATAURL_FORMAT "application/xml" My GetCapabilities response is malformed (I get error): XML parsing failed Error: unexpected end-of-file Specification: http://www.w3.org/TR/REC-xml/ 184: 185: 186: GBR_BGS_625k_BLT 187: GBR BGS 1:625k Bedrock Lithology</Tit Where GBR_BGS_625k_BLT is the name of the first layer in my map file with metadata: METADATA OWS_TITLE "GBR BGS 1:625k Bedrock Lithology" OWS_ABSTRACT "GBR BGS 1:625k scale Bedrock Lithology" WMS_SRS "EPSG:4326 EPSG:27700 EPSG:4258 EPSG:3857" GML_INCLUDE_ITEMS "RCS_D" GML_FEATUREID "ID" WMS_INCLUDE_ITEMS "RCS_D" OWS_METADATAURL_HREF "http://www.bgs.ac.uk/discoverymetadata/13480426.html" OWS_METADATAURL_FORMAT "text/html" OWS_METADATAURL_TYPE "TC211" OWS_DATAURL_HREF "http://www.bgs.ac.uk/products/digitalmaps/digmapgb_625.html" OWS_DATAURL_FORMAT "text/html" OWS_KEYWORDLIST "OneGeology,geology,bedrock,lithology,continent at Europe,subcontinent at Northern Europe,geographicarea at United Kingdom,dataprovider at British Geological Survey,serviceprovider at British Geological Survey,DS_TOPIC at geoscientificinformation,DS_DATE at 2008-04-10" END Am I missing some language specific metadata in my map file or is this some error with MapServer Thanks James James Passmore GIS and WWW Specialist Information Systems and Infrastructure, British Geological Survey, http://www.bgs.ac.uk/ +44 (0)115 936 3125 -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From stefan.schwarzer at unep.org Tue Jul 10 07:30:02 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 10 Jul 2012 16:30:02 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <CA2F4E0D-2DF9-4D51-B739-FDC4B2AF352C@unep.org> References: <B9499BF5-54D9-4DAB-839B-DB489AD0534B@unep.org> <D2986939-2978-4991-97BB-779610471902@kyngchaos.com> <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> <FFBDFA5B-E576-41A0-B6C4-49E19A58A5DA@unep.org> <FA62E3E4-4210-4A5B-8029-FBD3B80A35D4@kyngchaos.com> <CA2F4E0D-2DF9-4D51-B739-FDC4B2AF352C@unep.org> Message-ID: <1186A8A5-9DDC-4EB5-8A87-8C6944708B9F@unep.org> On Jul 10, 2012, at 4:15 PM, Stefan Schwarzer wrote: >>> And the php -i it spitting out a long list, but no errors. >>> >>> I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. >>> >> I wonder if Apache is still using the system PHP? The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8). >> >> Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library). > > Ha, good one. Thanks a lot! Indeed, the phpinfo shows 5.3.8, the php -i shows 5.3.10. I am on OS X 10.7, however. > > What does that mean? I have a mixture of 10.6 and 10.7 on my machine? I have my Snow Leopard still installed on a spearate drive in the machine; does Apache load the php from there? It says in php -i: Configuration File (php.ini) Path => /etc Loaded Configuration File => (none) Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) The php.ini is in "/usr/local/php5cgi/lib/php.ini" So, what should I do? Thanks for any hints! I see slowly light at the end of the tunnel?. From woklist at kyngchaos.com Tue Jul 10 07:59:53 2012 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 10 Jul 2012 09:59:53 -0500 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <CA2F4E0D-2DF9-4D51-B739-FDC4B2AF352C@unep.org> References: <B9499BF5-54D9-4DAB-839B-DB489AD0534B@unep.org> <D2986939-2978-4991-97BB-779610471902@kyngchaos.com> <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> <FFBDFA5B-E576-41A0-B6C4-49E19A58A5DA@unep.org> <FA62E3E4-4210-4A5B-8029-FBD3B80A35D4@kyngchaos.com> <CA2F4E0D-2DF9-4D51-B739-FDC4B2AF352C@unep.org> Message-ID: <CCFA4202-F9DD-4C91-9CAA-F1195ECF7167@kyngchaos.com> On Jul 10, 2012, at 9:15 AM, Stefan Schwarzer wrote: >>> And the php -i it spitting out a long list, but no errors. >>> >>> I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. >>> >> I wonder if Apache is still using the system PHP? The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8). >> >> Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library). > > Ha, good one. Thanks a lot! Indeed, the phpinfo shows 5.3.8, the php -i shows 5.3.10. I am on OS X 10.7, however. > > What does that mean? I have a mixture of 10.6 and 10.7 on my machine? I have my Snow Leopard still installed on a spearate drive in the machine; does Apache load the php from there? My PHP installer is supposed to switch the PHP, but sometimes it doesn't. Possibly because the apache config file was altered in a way to break my grep. System updates are not supposed to change the apache config, but it's a possibility. You can try running the script manually from the PHP disk image: sudo /Volumes/PHP\ 5/phpenable.sh cgi5 then sudo apachectl graceful ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy From Steve.Lime at state.mn.us Tue Jul 10 08:46:47 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 10 Jul 2012 15:46:47 +0000 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: <2445992.rL1D00fAKA@tatras> References: <CACPZzQ24hjsE-3dAC594PcvXzZ2cFEHYX_3MtXFZtkUAoqL73g@mail.gmail.com> <CAOM3y2iKvThL4WcAxjaJdRzqXvDtag=ZuFMrU-dnSApD_wi=9g@mail.gmail.com> <CACPZzQ1orJBJhrV4Aqd+06D4wmmwOv4u-18qsLzR1YGPJW=LXw@mail.gmail.com> <2445992.rL1D00fAKA@tatras> Message-ID: <C549F0496453D842B4DD71AC8188DDC51A86F6@055-CH1MPN1-041.055d.mgd.msft.net> What's the status on this one? I see the pull request is still open. Not sure how this impacts branch-6-2 or the master... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Yves Jacolin (Free) Sent: Thursday, July 05, 2012 3:43 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver docs and i18n Hello, I am now ok with this pull request from Thomas (we discussed on Francophone mailing list also). It could improve contribution from non technical user (if a pootle infrastructure exists, unfortunately which add more work for sysadmin). Y. Le mercredi 4 juillet 2012 21:51:03 Thomas Gratier a ?crit : > Hello, > > My answer are inline with bold cross *XXXXXXXXXXXXXX* just before (for > mail in html) Uline of inline of inline start to be difficult to read > ;) > > Regards > > ThomasG77 > > 2012/7/4 thomas bonfort <thomas.bonfort at gmail.com> > > > Hi Thomas, > > > > I'm all for simplifying the translation workflow. I tend to dislike > > the current one we have setup because it is difficult for > > translators to keep track of what has been added/modified in the > > english version, resulting in outdated translated docs which in my > > opinion is worse than having no translation at all. > > > > More inline... > > > > On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier > > > > <osgeo.mailinglist at gmail.com> wrote: > > > 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 > > > > > > English French > > > > > > AAAAAAAAA 1111111 > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > EEEEEEEEE 555555 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > Nowadays > > > > > > BBBBBBBBB ?????? > > > CCCCCCCCC ?????? > > > DDDDDDDDD ?????? > > > FFFFFFFFFF ?????? > > > GGGGGGGG ?????? > > > HHHHHHHHH ?????? > > > > > > The way you do if you kept during three years the file you use to > > > > translate > > > > > the original > > > > > > Compare both english version > > > > > > AAAAAAAAA dissapear > > > BBBBBBBBB seems to stay the same (BBBBBBBBB is a block so are you > > > sure > > > > there > > > > > no typo fixed?) > > > CCCCCCCCC is the same > > > DDDDDDDDD is the same > > > EEEEEEEEE dissapear > > > FFFFFFFFFF appear > > > GGGGGGGG is the same > > > HHHHHHHHH is the same > > > > > > Now find in the french file the corresponding > > > > > > I now AAAAAAAAA dissapear in english so let's go delete it in the > > > french version > > > > > > Find the equivalent in french of AAAAAAAAA (where it begins and > > > finish) > > > > and > > > > > delete it > > > Find BBBBBBBBB block in english and see what was the french string > > > corresponding and replace now Do the same for CCCCCCCCC, DDDDDDDDD > > > EEEEEEEEE dissapear so where is french equivalent (more difficult > > > to find where it begins and finish) to delete FFFFFFFFFF appear so > > > translate Find GGGGGGGGG block in english and see what was the > > > french string corresponding and replace now. > > > Do the same for HHHHHHHHH. > > > > > > 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) > > > > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > FFFFFFFFFF 666666 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > ## I18N workflow > > > > > > First translation > > > > > > English French > > > > > > AAAAAAAAA 111111 > > > BBBBBBBBB 222222 > > > CCCCCCCCC 333333 > > > DDDDDDDDD 444444 > > > EEEEEEEEE 555555 > > > GGGGGGGG 777777 > > > HHHHHHHHH 888888 > > > > > > In the future, (if community change nothing) > > > > > > BBBBBBBBB ?????? > > > CCCCCCCCC ?????? > > > DDDDDDDDD ?????? > > > FFFFFFFFFF ?????? > > > GGGGGGGG ?????? > > > HHHHHHHHH ?????? > > > > > > The way how msgmerge or manual poedit merge do > > > > > > Open the translated file at a time (po file), open the newly pot > > > file and say merge. > > > > > > What happen, > > > the block AAAAAAAAA match nothing compare to before so comment in > > > the po file BBBBBBBBB block match, keep it. > > > CCCCCCCCC block match, keep it. > > > DDDDDDDDD block match, keep it. > > > The block EEEEEEEEE match nothing compare to before so comment in > > > the po file FFFFFFFFFF match nothing but wasn't there ,so add it > > > GGGGGGGG block match, keep it. > > > HHHHHHHHH block match, keep it. > > > > > > The UI like poedit or pootle tell you, you only have to translate > > > > FFFFFFFFF, > > > > > the three way merge is mostly done automatically. > > > That the only job. Quite nice compare to before > > > > > > You foreign (not english) language is more easily updated like > > > that and small change are easy to see. > > > > > > # Drawbacks > > > > > > 1. Less flexibility because, the workflow to be in the core doc > > > > repository > > > > > is to ask to integrate change in the english version (master > > > version) and after, you backport everything in every langage. > > > > I don't understand how this is different from the current workflow > > where the english docs are updated and the translator maintainers > > have to backport to their language, can you elaborate please ? > > *XXXXXXXXXXXXXX* > I was thinking that in some case, community have push for their > language in first and after backport this contribution to english. I'm > not aware of complete history but I was thinking that the part > http://www.mapserver.org/mapfile/symbology/construction.html was > created in German and after translated in English. I've maybe made a > mistake and it never happens like that. > > > > 2. Some content are outside of the i18n parsing with sphinx. > > > When you generate i18n strings, see also directive or caption (for > > > > legend of > > > > > image) are not parsed. So you must refactor a bit the syntax for > > > image caption to put the legend outside. The same for see also. > > > > can you give an example of such a change ? > > *XXXXXXXXXXXXXX* > > .. figure:: picture.png > > :scale: 50 % > :alt: map to buried treasure > > This is the caption of the figure (a simple paragraph). > > The legend consists of all elements after the caption. In this > case, the legend consists of this paragraph and the following > table: > > Have to be transformated to > > .. figure:: picture.png > > :scale: 50 % > :alt: map to buried treasure > > This is the caption of the figure (a simple paragraph). > > The legend consists of all elements after the caption. In this case, > the legend consists of this paragraph and the following > table: > > For the see also case, I haven't found better than putting content > outside of a directive like that and use bold for example to change font style. > I've also open a bug/enhancement ticket on sphinx tracker e.g > https://bitbucket.org/birkenfeld/sphinx/issue/960/directive-seelaso-ig > nored- in-the-gettextbecause this missing/bug feature is quite > annoying (althougth it can be acceptable because most "seealso" rst > directive are only link references) An RST "guru" have maybe a better > alternative than that. > > > > 3. Need to add more explicit links in original doc Example for the > > > glossary :ref:`gis` must be replace with :ref:`gis > > > > <gis>`__ > > > > > because not helpful for translators not aware of sphinx syntax > > > (the > > > > problem > > > > > is already the same nowadays) > > > > I don't think this is a big issue. Doc writers will need to adapt, > > but I know that that my habit is to copy what's already present in > > the code so it won't be a problem if you fix the current refs once > > and for all. > > > > > > Aside from these 3 limitations, it is my understanding that the > > workflow for contributing to the original english docs will be > > unchanged (i.e. we will keep directly modifying the en/*.rst files), > > am I correct ? > > *XXXXXXXXXXXXXX* > Yes, workflow will not changed. English is in pure rst and stay like that. > Each community can make choice depending on their preferences. > For the moment, we're looping throught variable TRANSLATIONS = de es > fr Imagine the french community choose to make the move to i18n just > have to make change below TRANSLATIONS = de es TRANSLATIONI18N = fr > So German community or Spanish one are not impacted and they can > switch or not (I've just added a loop for dealing with > TRANSLATIONI18N) That why I've said I haven't reinvented the wheel > because I respect both old way of doing and maybe future i18n way. > > > Provided the answer to the previous question was "yes", and that the > > updated method does not disrupt the other languages (for now at > > least), I would be ok for the change. > > > > cheers, > > thomas > > > > > Sorry for the long "monologue" > > > > > > Any reactions welcome > > > > > > Regards > > > > > > ThomasG > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Wed Jul 11 03:44:48 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 11 Jul 2012 12:44:48 +0200 Subject: [mapserver-users] One template for every text type In-Reply-To: <C549F0496453D842B4DD71AC8188DDC51A7A2D@055-CH1MPN1-041.055d.mgd.msft.net> References: <CABqTJk_MO6oPPd_yf4MWbA-mo8vVm+bLHRDtZv0CJbLW--c9tg@mail.gmail.com> <C549F0496453D842B4DD71AC8188DDC51A4DA7@055-CH1MPN1-041.055d.mgd.msft.net> <CABqTJk8_WsZkU8M9wdTxrs8=ozEMqdKNz1do3=Cdwr20L0Rufg@mail.gmail.com> <C549F0496453D842B4DD71AC8188DDC51A7A2D@055-CH1MPN1-041.055d.mgd.msft.net> Message-ID: <CABqTJk9OGOR2dNuMwwZ_CypcjVCRddx7n5tzWF4F3p0UrV=mLw@mail.gmail.com> Hi Steve, thx very much for you rhint. I ubnderstand and start to try it. Now I found some strange. It seem mapserver trunk don't work well when mime/type = text/plain. I see infact the sample link in the documentation for text/plain repeort this result (no feature listed) http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 Instead using the html link mapserver list the features. http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 2012/7/9 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > The QUERYABLE parameter was never implemented so you still must define a > layer TEMPLATE to mark a layer as being queryable. The template need not > exist so typically I just do:**** > > ** ** > > TEMPLATE ?void?**** > > ** ** > > The link between layers and OUTPUTFORMAT templates are in the templates > themselves via the [resultset] tag.**** > > ** ** > > Steve**** > > ** ** > > *From:* Andrea Peri [mailto:aperi2007 at gmail.com] > *Sent:* Monday, July 09, 2012 5:15 AM > *To:* Lime, Steve D (DNR) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] One template for every text type**** > > ** ** > > Hi Steve, > thx for hint. > > I read the doc and also the RFC 36. > I'm having also some doubt. > > I try to set this output format: > > OUTPUTFORMAT > NAME "delimitazione_fogli_xml" > MIMETYPE "text/xml" > DRIVER "TEMPLATE" > FORMATOPTION > "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl" > END > > at WEB level I set this value: > WEB > METADATA > "wms_feature_info_mime_type" "text/xml" > END > END > > And how explained from RFC I comment the template from layer level and try > to add the tag > QUERYABLE TRUE > (But this option seem to be not supported from MapServer 6.2 trunk) > > If I remove the template tag from layer level I have this error: > > msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable. > > And if I try to add the QUERYABLE TRUE tag I have > this error: > > >Unknown identifier. Parsing error near (QUERYABLE) > > So I need to maintain the template ad Layer level. This force the layer to > use the template from that tag instead of the tag from FORMATOPTION. > > Also I don't understand how to link the specific format option the a > specific layer. > > Thx, > > Andrea. > > **** > > 2012/7/6 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>**** > > Hi Andrea: You can define multiple output formats that use the template > driver. They can each have different names and mime-types. You can even use > mime subtypes if you needed, say, two XML formats. The MapServer CGI > supports a parameter called qformat that allows you to change the query > template to be used. I?m not sure how this works with WFS, probably via > mime-type.**** > > **** > > Steve**** > > **** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Andrea Peri > *Sent:* Tuesday, July 03, 2012 5:42 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [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 ????? > -----------------**** > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > -----------------**** > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120711/54754d6d/attachment.htm> From Andreas.Eichner at sid.sachsen.de Wed Jul 11 04:20:28 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 11 Jul 2012 13:20:28 +0200 Subject: [mapserver-users] One template for every text type References: <CABqTJk_MO6oPPd_yf4MWbA-mo8vVm+bLHRDtZv0CJbLW--c9tg@mail.gmail.com><C549F0496453D842B4DD71AC8188DDC51A4DA7@055-CH1MPN1-041.055d.mgd.msft.net><CABqTJk8_WsZkU8M9wdTxrs8=ozEMqdKNz1do3=Cdwr20L0Rufg@mail.gmail.com><C549F0496453D842B4DD71AC8188DDC51A7A2D@055-CH1MPN1-041.055d.mgd.msft.net> <CABqTJk9OGOR2dNuMwwZ_CypcjVCRddx7n5tzWF4F3p0UrV=mLw@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3BB@KS-EVS1.smi.sachsen.de> The URL actually gives a feature result (#135), but no attribute data. You need to set {wms,ows}_include_items metadata at layer level: * wms/ows_include_items: comma delimited list or keyword 'all' HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Andrea Peri > Gesendet: Mittwoch, 11. Juli 2012 12:45 > An: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] One template for every text type > > Hi Steve, > > thx very much for you rhint. > I ubnderstand and start to try it. > > Now I found some strange. > It seem mapserver trunk don't work well when mime/type = text/plain. > > I see infact the sample link in the documentation for text/plain > repeort this result > (no feature listed) > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1. > 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5 > 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 > > Instead using the html link mapserver list the features. > > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1. > 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5 > 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 > > > > 2012/7/9 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > > > The QUERYABLE parameter was never implemented so you > still must define a layer TEMPLATE to mark a layer as being > queryable. The template need not exist so typically I just do: > > > > TEMPLATE 'void' > > > > The link between layers and OUTPUTFORMAT templates are > in the templates themselves via the [resultset] tag. > > > > Steve > > > > From: Andrea Peri [mailto:aperi2007 at gmail.com] > Sent: Monday, July 09, 2012 5:15 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] One template for every text type > > > > Hi Steve, > thx for hint. > > I read the doc and also the RFC 36. > I'm having also some doubt. > > I try to set this output format: > > OUTPUTFORMAT > NAME "delimitazione_fogli_xml" > MIMETYPE "text/xml" > DRIVER "TEMPLATE" > FORMATOPTION > "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl" > END > > at WEB level I set this value: > WEB > METADATA > "wms_feature_info_mime_type" "text/xml" > END > END > > And how explained from RFC I comment the template from > layer level and try to add the tag > QUERYABLE TRUE > (But this option seem to be not supported from > MapServer 6.2 trunk) > > If I remove the template tag from layer level I have this error: > > msWMSFeatureInfo(): WMS server error. Requested > layer(s) are not queryable. > > And if I try to add the QUERYABLE TRUE tag I have > this error: > > >Unknown identifier. Parsing error near (QUERYABLE) > > So I need to maintain the template ad Layer level. This > force the layer to use the template from that tag instead of > the tag from FORMATOPTION. > > Also I don't understand how to link the specific format > option the a specific layer. > > Thx, > > Andrea. > > > > 2012/7/6 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > > Hi Andrea: You can define multiple output formats that > use the template driver. They can each have different names > and mime-types. You can even use mime subtypes if you needed, > say, two XML formats. The MapServer CGI supports a parameter > called qformat that allows you to change the query template > to be used. I'm not sure how this works with WFS, probably > via mime-type. > > > > Steve > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Andrea Peri > Sent: Tuesday, July 03, 2012 5:42 PM > To: mapserver-users at lists.osgeo.org > Subject: [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 ????? > ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > From aperi2007 at gmail.com Wed Jul 11 05:38:55 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 11 Jul 2012 14:38:55 +0200 Subject: [mapserver-users] One template for every text type In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3BB@KS-EVS1.smi.sachsen.de> References: <CABqTJk_MO6oPPd_yf4MWbA-mo8vVm+bLHRDtZv0CJbLW--c9tg@mail.gmail.com> <C549F0496453D842B4DD71AC8188DDC51A4DA7@055-CH1MPN1-041.055d.mgd.msft.net> <CABqTJk8_WsZkU8M9wdTxrs8=ozEMqdKNz1do3=Cdwr20L0Rufg@mail.gmail.com> <C549F0496453D842B4DD71AC8188DDC51A7A2D@055-CH1MPN1-041.055d.mgd.msft.net> <CABqTJk9OGOR2dNuMwwZ_CypcjVCRddx7n5tzWF4F3p0UrV=mLw@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3BB@KS-EVS1.smi.sachsen.de> Message-ID: <CABqTJk9GNfmr5rvM5rJaDCP7XVfJn=i3JkkGJsAiZOzy7wcETg@mail.gmail.com> Hi, thx very much. your suggestion is reallly useful. this setting, ows_include_items "all" seem to be not available on documentation. the documentation report only the "gml_include_items" but it don't work for text/plain. I you setting and all the attributes are appeared. Also I'm see-ing the outputformat (a template driven I have setting) is ignored. I don't know if this is correct. Actually seem MapSever will generate the output of a GetFeatureInfo using template driven only if not set the ows_include_items "all" Andrea. 2012/7/11 Eichner, Andreas - SID-NLKM <Andreas.Eichner at sid.sachsen.de> > The URL actually gives a feature result (#135), but no attribute data. > You need to set {wms,ows}_include_items metadata at layer level: > * wms/ows_include_items: comma delimited list or keyword 'all' > > HTH > > > -----Urspr?ngliche Nachricht----- > > Von: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > > von Andrea Peri > > Gesendet: Mittwoch, 11. Juli 2012 12:45 > > An: Lime, Steve D (DNR) > > Cc: mapserver-users at lists.osgeo.org > > Betreff: Re: [mapserver-users] One template for every text type > > > > Hi Steve, > > > > thx very much for you rhint. > > I ubnderstand and start to try it. > > > > Now I found some strange. > > It seem mapserver trunk don't work well when mime/type = text/plain. > > > > I see infact the sample link in the documentation for text/plain > > repeort this result > > (no feature listed) > > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1. > > 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5 > > 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY > > LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 > > > > Instead using the html link mapserver list the features. > > > > http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1. > > 1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,5 > > 7.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STY > > LES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/html&X=229&Y=280 > > > > > > > > 2012/7/9 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > > > > > > The QUERYABLE parameter was never implemented so you > > still must define a layer TEMPLATE to mark a layer as being > > queryable. The template need not exist so typically I just do: > > > > > > > > TEMPLATE 'void' > > > > > > > > The link between layers and OUTPUTFORMAT templates are > > in the templates themselves via the [resultset] tag. > > > > > > > > Steve > > > > > > > > From: Andrea Peri [mailto:aperi2007 at gmail.com] > > Sent: Monday, July 09, 2012 5:15 AM > > To: Lime, Steve D (DNR) > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] One template for every text type > > > > > > > > Hi Steve, > > thx for hint. > > > > I read the doc and also the RFC 36. > > I'm having also some doubt. > > > > I try to set this output format: > > > > OUTPUTFORMAT > > NAME "delimitazione_fogli_xml" > > MIMETYPE "text/xml" > > DRIVER "TEMPLATE" > > FORMATOPTION > > "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl" > > END > > > > at WEB level I set this value: > > WEB > > METADATA > > "wms_feature_info_mime_type" "text/xml" > > END > > END > > > > And how explained from RFC I comment the template from > > layer level and try to add the tag > > QUERYABLE TRUE > > (But this option seem to be not supported from > > MapServer 6.2 trunk) > > > > If I remove the template tag from layer level I have this error: > > > > msWMSFeatureInfo(): WMS server error. Requested > > layer(s) are not queryable. > > > > And if I try to add the QUERYABLE TRUE tag I have > > this error: > > > > >Unknown identifier. Parsing error near (QUERYABLE) > > > > So I need to maintain the template ad Layer level. This > > force the layer to use the template from that tag instead of > > the tag from FORMATOPTION. > > > > Also I don't understand how to link the specific format > > option the a specific layer. > > > > Thx, > > > > Andrea. > > > > > > > > 2012/7/6 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > > > > Hi Andrea: You can define multiple output formats that > > use the template driver. They can each have different names > > and mime-types. You can even use mime subtypes if you needed, > > say, two XML formats. The MapServer CGI supports a parameter > > called qformat that allows you to change the query template > > to be used. I'm not sure how this works with WFS, probably > > via mime-type. > > > > > > > > Steve > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > Andrea Peri > > Sent: Tuesday, July 03, 2012 5:42 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [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 ????? > > ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120711/f04c1261/attachment.htm> From nesar77 at mail.com Wed Jul 11 06:24:20 2012 From: nesar77 at mail.com (Ne sar) Date: Wed, 11 Jul 2012 09:24:20 -0400 Subject: [mapserver-users] php_mapscript not being loaded Message-ID: <20120711132420.34160@gmx.com> Hi Andreas, thank you for your information. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120711/f1430d7c/attachment.htm> From nesar77 at mail.com Wed Jul 11 06:27:01 2012 From: nesar77 at mail.com (Ne sar) Date: Wed, 11 Jul 2012 09:27:01 -0400 Subject: [mapserver-users] Mapserv 5.6.7: mapserv -v Message-ID: <20120711132701.137760@gmx.com> Hi guys, I'm going to test my mapserver, but I'm getting the following error: ./mapserv -v : mapserv: undefined symbol: gdFontCacheSetup. Could you help me? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120711/9428aa3a/attachment.htm> From stefan.schwarzer at unep.org Thu Jul 12 01:35:23 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Thu, 12 Jul 2012 10:35:23 +0200 Subject: [mapserver-users] php_mapscript not being loaded In-Reply-To: <CCFA4202-F9DD-4C91-9CAA-F1195ECF7167@kyngchaos.com> References: <B9499BF5-54D9-4DAB-839B-DB489AD0534B@unep.org> <D2986939-2978-4991-97BB-779610471902@kyngchaos.com> <735EE7F1-81AD-4D61-A580-8E81D70D7C67@unep.org> <4FFAC825.9030107@gatewaygeomatics.com> <FFBDFA5B-E576-41A0-B6C4-49E19A58A5DA@unep.org> <FA62E3E4-4210-4A5B-8029-FBD3B80A35D4@kyngchaos.com> <CA2F4E0D-2DF9-4D51-B739-FDC4B2AF352C@unep.org> <CCFA4202-F9DD-4C91-9CAA-F1195ECF7167@kyngchaos.com> Message-ID: <FBF02034-DABE-49F0-BA1D-5382EF75B15C@unep.org> >>>> And the php -i it spitting out a long list, but no errors. >>>> >>>> I have actually all PHP, GD, ?, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges. >>>> >>> I wonder if Apache is still using the system PHP? The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8). >>> >>> Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library). >> >> Ha, good one. Thanks a lot! Indeed, the phpinfo shows 5.3.8, the php -i shows 5.3.10. I am on OS X 10.7, however. >> >> What does that mean? I have a mixture of 10.6 and 10.7 on my machine? I have my Snow Leopard still installed on a spearate drive in the machine; does Apache load the php from there? > > My PHP installer is supposed to switch the PHP, but sometimes it doesn't. Possibly because the apache config file was altered in a way to break my grep. System updates are not supposed to change the apache config, but it's a possibility. > > You can try running the script manually from the PHP disk image: > > sudo /Volumes/PHP\ 5/phpenable.sh cgi5 > > then > > sudo apachectl graceful Thanks so much. Although it didn't solve the problem, I checked again the php -i, and then the /usr/local/php5cgi/bin/php -i, as I recognized there were still two different versions. And suddenly saw that error message, mapserver which doesn't match the cairo framework. I guess that after the first installation a few weeks ago, I newly installed mapserver; but the version had changed meanwhile, and required another Cairo version too. Gosh, complicated this stuff. Now, it works. Thanks to everybody for the useful tips! Stef From richard.greenwood at gmail.com Thu Jul 12 06:54:57 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 12 Jul 2012 07:54:57 -0600 Subject: [mapserver-users] Mapserv 5.6.7: mapserv -v In-Reply-To: <20120711132701.137760@gmx.com> References: <20120711132701.137760@gmx.com> Message-ID: <CAHBySPabag7LuEbnoTXRx9W5iM3vC+MNb9w4=sOAGq5=UgTxhg@mail.gmail.com> What platform are you on? Did you build from source or did you install from a package distribution? On Wed, Jul 11, 2012 at 7:27 AM, Ne sar <nesar77 at mail.com> wrote: > Hi guys, > > I'm going to test my mapserver, but I'm getting the following error: > ./mapserv -v : mapserv: undefined symbol: gdFontCacheSetup. > > Could you help me? > > Regards. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From nesar77 at mail.com Thu Jul 12 07:44:24 2012 From: nesar77 at mail.com (Ne sar) Date: Thu, 12 Jul 2012 10:44:24 -0400 Subject: [mapserver-users] Mapserv 5.6.7: mapserv -v Message-ID: <20120712144424.34190@gmx.com> Hi Richard, I'm working on Fedora 11 with Mapserver 5.6.7, PHP 5.2.13, Oracle Instant Client 10.2.5.0. I builded Mapserver from source code. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120712/27f9a600/attachment.htm> From nesar77 at mail.com Thu Jul 12 22:33:53 2012 From: nesar77 at mail.com (Ne sar) Date: Fri, 13 Jul 2012 01:33:53 -0400 Subject: [mapserver-users] Mapserv 5.6.7: mapserv -v Message-ID: <20120713053353.34180@gmx.com> Hi Richard, thank you for your suggestion. Am I able to download MapServer 5.6.7 rpm? Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120713/857b6fda/attachment.htm> From jlarouche at mapgears.com Fri Jul 13 13:06:38 2012 From: jlarouche at mapgears.com (Jerome Villeneuve Larouche) Date: Fri, 13 Jul 2012 16:06:38 -0400 Subject: [mapserver-users] MapServer 6.2 Beta1 UbuntuGIS-Testing Message-ID: <50007FCE.4090708@mapgears.com> Hello, I uploaded a package for Precise, Oneiric and Lucid of MapServer 6.2 Beta1 on the UbuntuGIS-Testing ppa if you want to try it and report any bug you find! Thank you -- Jerome Villeneuve Larouche Mapgears www.mapgears.com From thekla.wirkus at wheregroup.com Mon Jul 16 03:13:54 2012 From: thekla.wirkus at wheregroup.com (Thekla Wirkus) Date: Mon, 16 Jul 2012 12:13:54 +0200 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests In-Reply-To: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> Message-ID: <5003E962.7030405@wheregroup.com> Hello, last december 2011 Astrid wrote a mail about the behaviour of RESOLUTION and DEFRESOLUTION. We tested again with MapServer 6.2 and here are the results. The size of the symbols, texts and lines was not like we expected. They were often too small. Have a look at the mail from 14. december 2011 http://lists.osgeo.org/pipermail/mapserver-users/2011-December/071077.html We tested with MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72, SIZEUNINTS Meters, the scaled layers with SYMBOLSCALEDENOM 10000. http://localhost/cgi-bin/mapserv62b1?map=/data/umn/resolution/map/resolution_test.map&MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72"&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=notscaledPoint,scaledPoint,notscaledLine,scaledLine,notscaledPolygon,scaledPolygon,Polygon_with_symbols,notscaledLabel,scaledLabel&STYLES=,,,,,,,,&SRS=EPSG:31466&BBOX=2517600,5672315,2518960,5673675&WIDTH=2000&HEIGHT=2000&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml The behaviour of MapServer 6.0 and MapServer 6.2 is just the same. This time we have a demo project where we tried the different cases. You can download it at: UMN: https://svn.wheregroup.com/download/mapserver_resolution.zip PDF: https://svn.wheregroup.com/download/mapserver_resolution_pdf.zip Results: POINTS * scaled or not scaled Points/Symbols: displayed correct, scaled and notscaled are the same in the map LINES * scaled lines: displayed correct * unscaled lines: too small (1:2000, 1:5000, 1:1000), correct (1:20000) POLYGON * scaled Polygone/Outline: displayed correct * not scaled Polygone/Outline: too small (1:2000), correct (1:5000, 1:10000,1:20000) * scaled or not scaled Polygone with symbols: displayed correct LABEL * scaled Label: too small * not scaled Label: too big (1:1000, 1:2000, 1:5000, too small (1:20000) > For us it would be good to get this problem solved, as at the moment we > generate a copy of the mapfile for the print with symbol- and labelsize > multiplyed with factor 4. It would be charming to solve the print with > one > mapfile. We could do testing and maybe I could look for sponsoring too. Is there someone else interested to solve this? Is there a ticket already? Thekla On 14.12.2011 17:44, Astrid Emde wrote: > Hello, > > we tried the parameter MAP.RESOLUTION AND MAP.DEFRESOLUTION with > MapServer 6.0.1 and made the following observations. > > We tested with RESOLUTION=288&MAP.DEFRESOLUTION=72 > > The size of the symbols and textes was not like we expected. They were > often too small. > > We tested with and without the parameter SYMBOLSCALEDENOM > > 1.) without SYMBOLSCALEDENOM (none scaled, fix size) ok are: > > * lines (not scaled) are dispayed correct (ok) > * outlines (not scaled) of polygones are dispayed correct (ok). > * symbols (not scaled) are displayed correct (ok). > * textes (not scaled) are displayed correct (ok).We tested not scaled > texts without SYMBOLSCALEDENOM: It's displayed different weather > MINSIZE/MAXSIZE is existing or not. > > > 2.) with SYMBOLSCALEDENOM > > NOT ok: > > * Scaled symbols are displayed incorrect - too small. > * Scaled lines are dispayed incorrect - too small. > * scaled outlines of polygones are dispayed incorrect. > * Scaled text are dispayed incorrect - too small. > > For us it would be good to get this problem solved, as at the moment we > generate a copy of the mapfile for the print with symbol- and labelsize > multiplyed with factor 4. It would be charming to solve the print with one > mapfile. We could do testing and maybe I could look for sponsoring too. > > Is there someone else interested to solve this? Is there a ticket already? > > Astrid > > thomas bonfort schrieb: >> cgi controls should do the trick? >> >> http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 >> >> -- >> thomas >> >> On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner >> <peter.hopfgartner at r3-gis.com> wrote: >>> Basically, I am looking for a way to something analogous to > DEFRESOLUTION in >>> a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm >>> (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the > WMS >>> 1.3.0 standard. >>> Is there a MapServer vendor parameter, similar to the one in GeoServer, >>> http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options >>> ? >>> >>> Peter >>> >>> -- >>> Peter Hopfgartner R3 GIS http://www.r3-gis.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------- Thekla Wirkus GIS-Consultant ---------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ----------------------------------- WhereGroup GmbH & Co. KG Eifelstra?e 7 53119 Bonn Germany Fon: +49 (0)228 / 90 90 38 - 34 Fax: +49 (0)228 / 90 90 38 - 11 Email: thekla.wirkus at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120716/279aae96/attachment.htm> From oliver.christen at camptocamp.com Tue Jul 17 05:08:54 2012 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 17 Jul 2012 14:08:54 +0200 Subject: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, could someone confirm ? Message-ID: <500555D6.8020603@camptocamp.com> |dear all I stumbled upon a Mapserver problem, which looks like the existing bug https://github.com/mapserver/mapserver/issues/4166 but im not exactly sure, I would really appreciate if someone could confirm (or not) if that's what happening in this case. Here is the problem description: I have two Shapefile layers. When I do a wfs query on both of them, Mapserver crash. (Strangely doing a wfs query on each of them, alone, gives a normal result) As proposed in the bug description, I replaced the DATA by CONNECTIONTYPE OGR/CONNECTION and the problem was solved. This problem could be reproduced with Mapserver 6.0.0 and 6.0.3 I dont really know how to do a WFS query on mapserver using commandline with gdb so I only have the raw stacktrace: http://dev.camptocamp.com/files/mapserver/raw_backtrace.txt thanks in advance for any info best regards Oliver | -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120717/c990d9d2/attachment.htm> From MarkVolz at co.lyon.mn.us Tue Jul 17 07:56:24 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 17 Jul 2012 14:56:24 +0000 Subject: [mapserver-users] mapserver tickets - unable to add Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> Hello, I would like to add a ticket to http://trac.osgeo.org/mapserver/report. I logged into the website using my OSGeo user id, however I did not see "New Ticket." What do I need to do so I can add a ticket or comment on existing tickets? Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120717/c269fe3f/attachment.htm> From Steve.Lime at state.mn.us Tue Jul 17 08:05:43 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 17 Jul 2012 15:05:43 +0000 Subject: [mapserver-users] mapserver tickets - unable to add In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> Message-ID: <C549F0496453D842B4DD71AC8188DDC51AE7CA@055-CH1MPN1-041.055d.mgd.msft.net> Hi Mark: We've moved from trac to github. All tickets were moved too. Visit http://github.com/mapserver to get started. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Tuesday, July 17, 2012 9:56 AM To: MapserverList OSGEO Subject: [mapserver-users] mapserver tickets - unable to add Hello, I would like to add a ticket to http://trac.osgeo.org/mapserver/report. I logged into the website using my OSGeo user id, however I did not see "New Ticket." What do I need to do so I can add a ticket or comment on existing tickets? Thank You Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120717/564079ff/attachment.htm> From jmckenna at gatewaygeomatics.com Tue Jul 17 08:07:15 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 Jul 2012 12:07:15 -0300 Subject: [mapserver-users] mapserver tickets - unable to add In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> Message-ID: <50057FA3.7010607@gatewaygeomatics.com> On 12-07-17 11:56 AM, Mark Volz wrote: > Hello, > > I would like to add a ticket to > _http://trac.osgeo.org/mapserver/report_. I logged into the website > using my OSGeo user id, however I did not see ?New Ticket.? What do I > need to do so I can add a ticket or comment on existing tickets? > Hi Mark, The Issue Tracker, Code, and Wiki now live on Github: - main area: https://github.com/mapserver - source code: https://github.com/mapserver/mapserver - wiki: https://github.com/mapserver/mapserver/wiki You'll need to register a free/open source Github account to join the fun: https://github.com/plans -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue Jul 17 08:20:58 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 Jul 2012 12:20:58 -0300 Subject: [mapserver-users] mapserver tickets - unable to add In-Reply-To: <50057FA3.7010607@gatewaygeomatics.com> References: <36CA828A36E29F45B7CF0A1766E5DFA31338E7@swmail01.r8nssis.local> <50057FA3.7010607@gatewaygeomatics.com> Message-ID: <500582DA.7080109@gatewaygeomatics.com> On 12-07-17 12:07 PM, Jeff McKenna wrote: > Hi Mark, > > The Issue Tracker, Code, and Wiki now live on Github: > > - main area: https://github.com/mapserver > - source code: https://github.com/mapserver/mapserver > - wiki: https://github.com/mapserver/mapserver/wiki > > You'll need to register a free/open source Github account to join the > fun: https://github.com/plans > It can also be at first confusing where the Issue Tracker lives: - Source issues and doc issues live at: https://github.com/mapserver/mapserver/issues Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jonas.eberle at gmx.de Tue Jul 17 09:51:05 2012 From: jonas.eberle at gmx.de (Jonas Eberle) Date: Tue, 17 Jul 2012 11:51:05 -0500 (CDT) Subject: [mapserver-users] GetCoverage with WCS 2.0.0: Unknown parameter time Message-ID: <450669282.26976.1342543865488.JavaMail.root@eberle-mail.de> Hi list, I tried to use WCS 2.0.0 with Mapserver. Having time series layers with a tile index layer, I used variable substitution for the different times. This works fine for WCS 1.0.0. Trying the GetCoverage request with WCS 2.0.0 I get the following error message right after executing the request: msWCSParseRequest20(): WCS server error. Unknown parameter: 'time'. Is there an other possibility to use variable substitution with GetCoverage request in WCS 2.0.0? Thanks, Jonas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120717/eb084988/attachment.htm> From stephan at meissl.name Tue Jul 17 09:56:18 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Tue, 17 Jul 2012 18:56:18 +0200 Subject: [mapserver-users] GetCoverage with WCS 2.0.0: Unknown parameter time In-Reply-To: <450669282.26976.1342543865488.JavaMail.root@eberle-mail.de> References: <450669282.26976.1342543865488.JavaMail.root@eberle-mail.de> Message-ID: <1342544178.2838.147.camel@io> Hi Jonas, which version of MapServer are you using? I guess variable substitution should also be available in WCS 2.0. Could you send a short Mapfile and request to reproduce the behavior? cu Stephan On Tue, 2012-07-17 at 11:51 -0500, Jonas Eberle wrote: > Hi list, > > > I tried to use WCS 2.0.0 with Mapserver. Having time series layers > with a tile index layer, I used variable substitution for the > different times. This works fine for WCS 1.0.0. > > > Trying the GetCoverage request with WCS 2.0.0 I get the following > error message right after executing the request: > msWCSParseRequest20(): WCS server error. Unknown parameter: 'time'. > > Is there an other possibility to use variable substitution with > GetCoverage request in WCS 2.0.0? > > > Thanks, > Jonas > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Jul 17 09:59:50 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 17 Jul 2012 16:59:50 +0000 Subject: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, could someone confirm ? In-Reply-To: <500555D6.8020603@camptocamp.com> References: <500555D6.8020603@camptocamp.com> Message-ID: <C549F0496453D842B4DD71AC8188DDC51AE978@055-CH1MPN1-041.055d.mgd.msft.net> Just a bbox query like the ticket referenced? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Oliver Christen Sent: Tuesday, July 17, 2012 7:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, could someone confirm ? dear all I stumbled upon a Mapserver problem, which looks like the existing bug https://github.com/mapserver/mapserver/issues/4166 but im not exactly sure, I would really appreciate if someone could confirm (or not) if that's what happening in this case. Here is the problem description: I have two Shapefile layers. When I do a wfs query on both of them, Mapserver crash. (Strangely doing a wfs query on each of them, alone, gives a normal result) As proposed in the bug description, I replaced the DATA by CONNECTIONTYPE OGR/CONNECTION and the problem was solved. This problem could be reproduced with Mapserver 6.0.0 and 6.0.3 I dont really know how to do a WFS query on mapserver using commandline with gdb so I only have the raw stacktrace: http://dev.camptocamp.com/files/mapserver/raw_backtrace.txt thanks in advance for any info best regards Oliver -- Camptocamp SA Oliver Christen PSE A CH-1015 Lausanne www.camptocamp.com<http://www.camptocamp.com> +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120717/95845bee/attachment.htm> From jonas.eberle at gmx.de Tue Jul 17 10:06:22 2012 From: jonas.eberle at gmx.de (Jonas Eberle) Date: Tue, 17 Jul 2012 12:06:22 -0500 (CDT) Subject: [mapserver-users] GetCoverage with WCS 2.0.0: Unknown parameter time In-Reply-To: <1342544178.2838.147.camel@io> Message-ID: <2101060225.27302.1342544782707.JavaMail.root@eberle-mail.de> Hi Stephan, I am using Mapserver 6.0.1. At the bottom the two layers, within the WEB section I have the the validation block for parameter time. This was the request with WCS 2.0.0: http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.0&coverageID=NDVIData&format=GTiff&time=2012-04-01 The following request works with WCS 1.0.0: http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=1.0.0&coverage=NDVIData&format=GTiff&time=2012-04-01&CRS=EPSG:4326&RESX=0.05&RESY=0.05 Thanks, Jonas WEB #..... VALIDATION 'time' '^[0-9\-]+$' END #..... END LAYER NAME 'time_idx_test' TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=** user=** password=****** port=5432" DATA "geom from mod13c2_ndvi" METADATA "ows_title" "MOD13C2_NDVI TIME INDEX" "ows_srs" "EPSG:900913 EPSG:4326" "ows_extent" "49 85 180 44" "ows_timeextent" "2000-02-01/2012-05-01/P1M" "ows_timeitem" "date" "ows_timedefault" "2012-05-01" "ows_enable_request" "*" END FILTERITEM 'date' FILTER '%time%' END LAYER NAME 'NDVIData' STATUS ON DEBUG 5 TYPE RASTER TILEITEM 'location' TILEINDEX 'time_idx_test' PROJECTION "init=epsg:4326" END METADATA "wcs_label" 'NDVI data' "ows_extent" "49 44 180 85" "wcs_size" "7200 3599" "wcs_bandcount" "1" "ows_srs" 'EPSG:4326' "wcs_rangeset_axes" 'bands' "wcs_rangeset_name" 'bands' "wcs_timeposition" "2000-02-01,2000-03-01,2000-04-01,2012-04-01" "wcs_timeitem" 'date' "wcs_enable_request" "*" END END ----- Urspr?ngliche Mail ----- > Hi Jonas, > > which version of MapServer are you using? I guess variable > substitution > should also be available in WCS 2.0. Could you send a short Mapfile > and > request to reproduce the behavior? > > cu > Stephan > > > On Tue, 2012-07-17 at 11:51 -0500, Jonas Eberle wrote: > > Hi list, > > > > > > I tried to use WCS 2.0.0 with Mapserver. Having time series layers > > with a tile index layer, I used variable substitution for the > > different times. This works fine for WCS 1.0.0. > > > > > > Trying the GetCoverage request with WCS 2.0.0 I get the following > > error message right after executing the request: > > msWCSParseRequest20(): WCS server error. Unknown parameter: 'time'. > > > > Is there an other possibility to use variable substitution with > > GetCoverage request in WCS 2.0.0? > > > > > > Thanks, > > Jonas > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From astrid.emde at wheregroup.com Tue Jul 17 14:26:39 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Tue, 17 Jul 2012 21:26:39 -0000 Subject: [mapserver-users] wms_bbox_extended "true" only works with < 15 EPSG code definitions Message-ID: <281863f217a0a58783234b24309194b5.squirrel@troubadix.wheregroup.com> Hello, I want to use the Parameter wms_bbox_extended "true" to calculate the extent for all the supported EPSGs. see http://mapserver.org/ogc/wms_server.html The Capabilities document looks fine as long as I only define < 15 codes. The XML breaks at different points with more EPSG codes (but I need > 15 for INSPIRE) Definition could look like this: WEB ... WMS_BBOX_EXTENDED 'true' WMS_SRS 'EPSG:31466 epsg:31467 epsg:31468 epsg:4326 EPSG:25832 EPSG:25833 EPSG:3034 EPSG:3035 EPSG:3038 EPSG:3039 EPSG:3040 EPSG:3041 EPSG:3042 EPSG:3043 EPSG:3044 EPSG:3045 EPSG:3046 EPSG:3047' ... END When I disable the parameter wms_bbox_extended "false" (or I do not define the parameter) the Capabilities XML is fine, but does not contain the bboxes. I tested with MapServer 6.0.2 and MapServer 6.2beta1. I also created a bug ticket at github https://github.com/mapserver/mapserver/issues/4395 It is not an urgent issue. Just wanted to notice it. Astrid From M.Kofahl at gmx.net Tue Jul 17 13:42:03 2012 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Tue, 17 Jul 2012 22:42:03 +0200 Subject: [mapserver-users] wms_bbox_extended "true" only works with < 15 EPSG code definitions In-Reply-To: <281863f217a0a58783234b24309194b5.squirrel@troubadix.wheregroup.com> References: <281863f217a0a58783234b24309194b5.squirrel@troubadix.wheregroup.com> Message-ID: <20120717204203.153300@gmx.net> Hi Astrid, please update your proj4 lib, see http://trac.osgeo.org/proj/ticket/100. Martin -------- Original-Nachricht -------- > Datum: Tue, 17 Jul 2012 21:26:39 -0000 > Von: "Astrid Emde" <astrid.emde at wheregroup.com> > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] wms_bbox_extended "true" only works with < 15 EPSG code definitions > Hello, > > I want to use the Parameter wms_bbox_extended "true" to calculate the > extent for all the supported EPSGs. > > see > http://mapserver.org/ogc/wms_server.html > > The Capabilities document looks fine as long as I only define < 15 codes. > The XML breaks at different points with more EPSG codes (but I need > 15 > for INSPIRE) > > Definition could look like this: > > WEB > ... > WMS_BBOX_EXTENDED 'true' > WMS_SRS 'EPSG:31466 epsg:31467 epsg:31468 epsg:4326 EPSG:25832 > EPSG:25833 EPSG:3034 EPSG:3035 EPSG:3038 EPSG:3039 EPSG:3040 EPSG:3041 > EPSG:3042 EPSG:3043 EPSG:3044 EPSG:3045 EPSG:3046 EPSG:3047' > ... > END > > > When I disable the parameter wms_bbox_extended "false" (or I do not define > the parameter) the Capabilities XML is fine, but does not contain the > bboxes. > > I tested with MapServer 6.0.2 and MapServer 6.2beta1. > > I also created a bug ticket at github > > https://github.com/mapserver/mapserver/issues/4395 > > It is not an urgent issue. Just wanted to notice it. > > Astrid > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Tue Jul 17 23:44:25 2012 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 18 Jul 2012 08:44:25 +0200 Subject: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, could someone confirm ? In-Reply-To: <C549F0496453D842B4DD71AC8188DDC51AE978@055-CH1MPN1-041.055d.mgd.msft.net> References: <500555D6.8020603@camptocamp.com> <C549F0496453D842B4DD71AC8188DDC51AE978@055-CH1MPN1-041.055d.mgd.msft.net> Message-ID: <CABn2Q9Sti_N8sQPDsm3M=Sezvm8UFGhZgevf4Qr4whi1f1Gndg@mail.gmail.com> hi Steve sorry, I forgot to say, yes it is a bbox query: http://dev.camptocamp.com/files/mapserver/query.xml Oliver On Tue, Jul 17, 2012 at 6:59 PM, Lime, Steve D (DNR) <Steve.Lime at state.mn.us> wrote: > Just a bbox query like the ticket referenced? > > > > Steve > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Oliver > Christen > Sent: Tuesday, July 17, 2012 7:09 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapserver crash on wfs query, looks like issue > 4166, could someone confirm ? > > > > dear all > > I stumbled upon a Mapserver problem, which looks like the existing bug > https://github.com/mapserver/mapserver/issues/4166 > but im not exactly sure, > I would really appreciate if someone could confirm (or not) if that's what > happening in this case. > > Here is the problem description: > > I have two Shapefile layers. > > When I do a wfs query on both of them, Mapserver crash. > (Strangely doing a wfs query on each of them, alone, gives a normal result) > > As proposed in the bug description, I replaced the DATA by CONNECTIONTYPE > OGR/CONNECTION and the problem was solved. > > This problem could be reproduced with Mapserver 6.0.0 and 6.0.3 > > I dont really know how to do a WFS query on mapserver using commandline with > gdb so I only have the raw stacktrace: > http://dev.camptocamp.com/files/mapserver/raw_backtrace.txt > > thanks in advance for any info > best regards > Oliver > > -- > > Camptocamp SA > > Oliver Christen > > PSE A > > CH-1015 Lausanne > > > > www.camptocamp.com > > > > +41 21 619 10 23 (direct) > > +41 21 619 10 10 (centrale) > > +41 21 619 10 00 (fax) From osgeo.mailinglist at gmail.com Wed Jul 18 03:56:16 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Wed, 18 Jul 2012 12:56:16 +0200 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: <C549F0496453D842B4DD71AC8188DDC51A86F6@055-CH1MPN1-041.055d.mgd.msft.net> References: <CACPZzQ24hjsE-3dAC594PcvXzZ2cFEHYX_3MtXFZtkUAoqL73g@mail.gmail.com> <CAOM3y2iKvThL4WcAxjaJdRzqXvDtag=ZuFMrU-dnSApD_wi=9g@mail.gmail.com> <CACPZzQ1orJBJhrV4Aqd+06D4wmmwOv4u-18qsLzR1YGPJW=LXw@mail.gmail.com> <2445992.rL1D00fAKA@tatras> <C549F0496453D842B4DD71AC8188DDC51A86F6@055-CH1MPN1-041.055d.mgd.msft.net> Message-ID: <CACPZzQ2JfGMQJ5dtVv9DZDPOxqB+nvq8tVmVAHnFfLz-BiRmyg@mail.gmail.com> Hello, Like Steve, I want to know the statut of my pull request. Normally, it will not impact other branch (my modifications are not intrusive) I'm interested in any news about it. Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120718/ec3fc7e3/attachment.htm> From jmckenna at gatewaygeomatics.com Wed Jul 18 05:29:19 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 Jul 2012 09:29:19 -0300 Subject: [mapserver-users] Mapserver docs and i18n In-Reply-To: <CACPZzQ2JfGMQJ5dtVv9DZDPOxqB+nvq8tVmVAHnFfLz-BiRmyg@mail.gmail.com> References: <CACPZzQ24hjsE-3dAC594PcvXzZ2cFEHYX_3MtXFZtkUAoqL73g@mail.gmail.com> <CAOM3y2iKvThL4WcAxjaJdRzqXvDtag=ZuFMrU-dnSApD_wi=9g@mail.gmail.com> <CACPZzQ1orJBJhrV4Aqd+06D4wmmwOv4u-18qsLzR1YGPJW=LXw@mail.gmail.com> <2445992.rL1D00fAKA@tatras> <C549F0496453D842B4DD71AC8188DDC51A86F6@055-CH1MPN1-041.055d.mgd.msft.net> <CACPZzQ2JfGMQJ5dtVv9DZDPOxqB+nvq8tVmVAHnFfLz-BiRmyg@mail.gmail.com> Message-ID: <5006AC1F.3010503@gatewaygeomatics.com> On 12-07-18 7:56 AM, Thomas Gratier wrote: > Hello, > > Like Steve, I want to know the statut of my pull request. Normally, it > will not impact other branch (my modifications are not intrusive) > I'm interested in any news about it. > Hi Thomas, I will merge your pull request today to master/git. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From astrid.emde at wheregroup.com Wed Jul 18 12:01:21 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Wed, 18 Jul 2012 19:01:21 -0000 Subject: [mapserver-users] wms_bbox_extended 'true' only works with < 15 EPSG code definitions In-Reply-To: <20120717204203.153300@gmx.net> References: <281863f217a0a58783234b24309194b5.squirrel@troubadix.wheregroup.com> <20120717204203.153300@gmx.net> Message-ID: <076ed296dea308b408b1fc5c5c02fed9.squirrel@troubadix.wheregroup.com> Hello Martin, thanks for the information and the link. And thanks to jef for the patch. I closed my MapServer ticket again. Astrid On Tue, July 17, 2012 8:42 pm, Martin Kofahl wrote: > Hi Astrid, > please update your proj4 lib, see http://trac.osgeo.org/proj/ticket/100. > > Martin > > > -------- Original-Nachricht -------- > >> Datum: Tue, 17 Jul 2012 21:26:39 -0000 >> Von: "Astrid Emde" <astrid.emde at wheregroup.com> >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] wms_bbox_extended "true" only works with < 15 >> EPSG code definitions >> > >> Hello, >> >> >> I want to use the Parameter wms_bbox_extended "true" to calculate the >> extent for all the supported EPSGs. >> >> see http://mapserver.org/ogc/wms_server.html >> >> >> The Capabilities document looks fine as long as I only define < 15 >> codes. The XML breaks at different points with more EPSG codes (but I >> need > 15 for INSPIRE) >> >> Definition could look like this: >> >> >> WEB >> ... >> WMS_BBOX_EXTENDED 'true' >> WMS_SRS 'EPSG:31466 epsg:31467 epsg:31468 epsg:4326 EPSG:25832 >> EPSG:25833 EPSG:3034 EPSG:3035 EPSG:3038 EPSG:3039 EPSG:3040 EPSG:3041 >> EPSG:3042 EPSG:3043 EPSG:3044 EPSG:3045 EPSG:3046 EPSG:3047' >> ... >> END >> >> >> >> When I disable the parameter wms_bbox_extended "false" (or I do not >> define the parameter) the Capabilities XML is fine, but does not contain >> the bboxes. >> >> I tested with MapServer 6.0.2 and MapServer 6.2beta1. >> >> >> I also created a bug ticket at github >> >> >> https://github.com/mapserver/mapserver/issues/4395 >> >> >> It is not an urgent issue. Just wanted to notice it. >> >> >> Astrid >> >> >> _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Mit freundlichen Gr??en Astrid Emde ----------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From thomas.bonfort at gmail.com Wed Jul 18 11:49:17 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 18 Jul 2012 20:49:17 +0200 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests In-Reply-To: <5003E962.7030405@wheregroup.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> Message-ID: <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> Thekla, can you open a ticket for this one please ? I'll try to have a look at it before the 6.2 release, but can't promise anything... thanks, thomas On Mon, Jul 16, 2012 at 12:13 PM, Thekla Wirkus <thekla.wirkus at wheregroup.com> wrote: > > Hello, > > last december 2011 Astrid wrote a mail about the behaviour of RESOLUTION and > DEFRESOLUTION. We tested again with MapServer > 6.2 and here are the results. The size of the symbols, texts and lines was > not like we expected. They were often too small. > > Have a look at the mail from 14. december 2011 > http://lists.osgeo.org/pipermail/mapserver-users/2011-December/071077.html > > > We tested with MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72, SIZEUNINTS Meters, > the scaled layers with SYMBOLSCALEDENOM 10000. > http://localhost/cgi-bin/mapserv62b1?map=/data/umn/resolution/map/resolution_test.map&MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72"&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=notscaledPoint,scaledPoint,notscaledLine,scaledLine,notscaledPolygon,scaledPolygon,Polygon_with_symbols,notscaledLabel,scaledLabel&STYLES=,,,,,,,,&SRS=EPSG:31466&BBOX=2517600,5672315,2518960,5673675&WIDTH=2000&HEIGHT=2000&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml > > > The behaviour of MapServer 6.0 and MapServer 6.2 is just the same. This time > we have a demo project where we tried the different cases. You can download > it at: > > UMN: > > https://svn.wheregroup.com/download/mapserver_resolution.zip > > PDF: > https://svn.wheregroup.com/download/mapserver_resolution_pdf.zip > > > > Results: > > POINTS > * scaled or not scaled Points/Symbols: displayed correct, scaled and > notscaled are the same in the map > > LINES > * scaled lines: displayed correct > * unscaled lines: too small (1:2000, 1:5000, 1:1000), correct (1:20000) > > POLYGON > * scaled Polygone/Outline: displayed correct > * not scaled Polygone/Outline: too small (1:2000), correct (1:5000, > 1:10000,1:20000) > * scaled or not scaled Polygone with symbols: displayed correct > > LABEL > * scaled Label: too small > * not scaled Label: too big (1:1000, 1:2000, 1:5000, too small (1:20000) > > > For us it would be good to get this problem solved, as at the moment we > generate a copy of the mapfile for the print with symbol- and labelsize > multiplyed with factor 4. It would be charming to solve the print with one > mapfile. We could do testing and maybe I could look for sponsoring too. > > > > Is there someone else interested to solve this? Is there a ticket already? > > Thekla > > > > > On 14.12.2011 17:44, Astrid Emde wrote: > > Hello, > > we tried the parameter MAP.RESOLUTION AND MAP.DEFRESOLUTION with > MapServer 6.0.1 and made the following observations. > > We tested with RESOLUTION=288&MAP.DEFRESOLUTION=72 > > The size of the symbols and textes was not like we expected. They were > often too small. > > We tested with and without the parameter SYMBOLSCALEDENOM > > 1.) without SYMBOLSCALEDENOM (none scaled, fix size) ok are: > > * lines (not scaled) are dispayed correct (ok) > * outlines (not scaled) of polygones are dispayed correct (ok). > * symbols (not scaled) are displayed correct (ok). > * textes (not scaled) are displayed correct (ok).We tested not scaled > texts without SYMBOLSCALEDENOM: It's displayed different weather > MINSIZE/MAXSIZE is existing or not. > > > 2.) with SYMBOLSCALEDENOM > > NOT ok: > > * Scaled symbols are displayed incorrect - too small. > * Scaled lines are dispayed incorrect - too small. > * scaled outlines of polygones are dispayed incorrect. > * Scaled text are dispayed incorrect - too small. > > For us it would be good to get this problem solved, as at the moment we > generate a copy of the mapfile for the print with symbol- and labelsize > multiplyed with factor 4. It would be charming to solve the print with one > mapfile. We could do testing and maybe I could look for sponsoring too. > > Is there someone else interested to solve this? Is there a ticket already? > > Astrid > > thomas bonfort schrieb: > > cgi controls should do the trick? > > http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 > > -- > thomas > > On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner > <peter.hopfgartner at r3-gis.com> wrote: > > Basically, I am looking for a way to something analogous to > > DEFRESOLUTION in > > a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm > (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the > > WMS > > 1.3.0 standard. > Is there a MapServer vendor parameter, similar to the one in GeoServer, > http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options > ? > > Peter > > -- > Peter Hopfgartner R3 GIS http://www.r3-gis.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > > > --------------------------------- > > Thekla Wirkus > GIS-Consultant > > ---------------------------------- > Aufwind durch Wissen! > > Qualifizierte OpenSource-Schulungen > bei der www.foss-academy.eu > ----------------------------------- > > WhereGroup GmbH & Co. KG > Eifelstra?e 7 > 53119 Bonn > Germany > > Fon: +49 (0)228 / 90 90 38 - 34 > Fax: +49 (0)228 / 90 90 38 - 11 > > Email: thekla.wirkus at wheregroup.com > www.wheregroup.com > Amtsgericht Bonn, HRA 6788 > ------------------------------- > Komplement?rin: > WhereGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > ------------------------------ > - > > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mbp at geomtech.com Wed Jul 18 13:20:16 2012 From: mbp at geomtech.com (Mark Phillips) Date: Wed, 18 Jul 2012 16:20:16 -0400 Subject: [mapserver-users] MapServer segfaults when processing GetFeatureInfo Message-ID: <CAL6DW6q53ZfX8PvQrXLZyQ_JyDW8ggjmNWVN3Ki=agtHkgUK6Q@mail.gmail.com> I am having a very bizarre problem with MapServer and GetFeatureInfo requests, and I'm wondering if anyone has had similar problems and/or has ideas about how to address it. I have a raster layer (actually, a bunch of them) where MapServer sometimes segfaults when serving a GetFeatureInfo request, depending on the coordinate of the point being queried. I have come up with a couple of test cases, which are exactly identical to each other except for the value of X in the GetFeatureInfo request. In one case, X=913, and MapServer correctly processes the GetFeatureInfo request and returns correct results. In the other case, X=912, and MapServer segfaults. Both of these values of X are valid, and both correspond to pixels in the image where MapServer correctly displays the raster in question when called with a GetMap request. My hunch is that the problem might be related to a misconfiguration of MapServer on my part, or a misconfiguration of the projections involved. The layer data is in a LAEA projection, and due to constraints on this project that are beyond my control, I have MapServer reprojecting it to a bizarre web mercator projection (EPSG 3857, aka EPSG 3785) for output, so the GetFeatureInfo request is expressed in EPSG 3857. But I'm stumped as to what the problem could be, and having MapServer crash with a segmentation fault seems like an indication of some kind of bug, even if I've got a configuration error. I've tried turning on debugging in the mapfile, but nothing useful shows up in the log file. I've also tested this with several versions of MapServer, including 6.0.3 and 6.2-beta1, with the same results. I'm running these tests on a CentOS 6.2 system, compiling MapServer with the options --with-proj --with-ogr --with-gdal --with-wfs --with-wcs --with-wms --with-wmsclient --with-wfsclient and --with-php=/usr/include/php, and using gdal 1.7.2 and proj 4.7.0. If you have any thoughts about what the problem could be, I'd love to hear from you! I'll append my mapfile below, along with the two test requests I mentioned above. The layer data file that I am using is too big to attach to this email, but I've created a tgz file containing everything needed to run my tests -- the mapfile, layer file, and test script; you can download it here: http://rain.nemac.org/~mbp/mapserver-gfi-problem.tgz If anyone wants to download this and try it with your copy of MapServer, let me know whether you get the same results that I'm getting! Thanks in advance! --Mark Here is the mapfile I am using: MAP CONFIG "MS_ERRORFILE" "mapserver.log" DEBUG 5 PROJECTION "init=epsg:3857" END WEB HEADER "./dummy_template" FOOTER "./dummy_template" METADATA "ows_enable_request" "*" "wms_srs" "EPSG:3857" END END LAYER NAME layer1 PROJECTION "+proj=laea" "+lat_0=45" "+lon_0=-100" "+x_0=0" "+y_0=0" "+a=6370997" "+b=6370997" "+units=m" "+no_defs" END TYPE RASTER DUMP TRUE STATUS OFF DATA layer1.tif HEADER ./dummy_template TEMPLATE ./dummy_template METADATA "wms_title" "layer1" "wms_abstract" "layer1" "gml_include_items" "value_0" END END END And here are the two query strings for the two test cases: this one runs correctly: map=./mapfile.map&TRANSPARENT=true&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&STYLES=&FORMAT=image/png&INFO_FORMAT=application/vnd.ogc.gml&BBOX=-11859604.53136514,4696887.582602486,-11830673.11615924,4710053.860724591&CRS=EPSG:3857&LAYERS=layer1&QUERY_LAYERS=layer1&WIDTH=1514&HEIGHT=689&X=913&Y=334 this one causes a seg fault: map=./mapfile.map&TRANSPARENT=true&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&STYLES=&FORMAT=image/png&INFO_FORMAT=application/vnd.ogc.gml&BBOX=-11859604.53136514,4696887.582602486,-11830673.11615924,4710053.860724591&CRS=EPSG:3857&LAYERS=layer1&QUERY_LAYERS=layer1&WIDTH=1514&HEIGHT=689&X=912&Y=334 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120718/e94c1bf5/attachment.htm> From astrid.emde at wheregroup.com Fri Jul 20 00:42:29 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 20 Jul 2012 09:42:29 +0200 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests In-Reply-To: <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> Message-ID: <50090BE5.5060702@wheregroup.com> Hi Thomas, I opened up the ticket for Thekla on github https://github.com/mapserver/mapserver/issues/4401 Thanks for your help Astrid Am 18.07.2012 20:49, schrieb thomas bonfort: > Thekla, > can you open a ticket for this one please ? I'll try to have a look at > it before the 6.2 release, but can't promise anything... > > thanks, > thomas > > On Mon, Jul 16, 2012 at 12:13 PM, Thekla Wirkus > <thekla.wirkus at wheregroup.com> wrote: >> Hello, >> >> last december 2011 Astrid wrote a mail about the behaviour of RESOLUTION and >> DEFRESOLUTION. We tested again with MapServer >> 6.2 and here are the results. The size of the symbols, texts and lines was >> not like we expected. They were often too small. >> >> Have a look at the mail from 14. december 2011 >> http://lists.osgeo.org/pipermail/mapserver-users/2011-December/071077.html >> >> >> We tested with MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72, SIZEUNINTS Meters, >> the scaled layers with SYMBOLSCALEDENOM 10000. >> http://localhost/cgi-bin/mapserv62b1?map=/data/umn/resolution/map/resolution_test.map&MAP.RESOLUTION=288&MAP.DEFRESOLUTION=72"&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=notscaledPoint,scaledPoint,notscaledLine,scaledLine,notscaledPolygon,scaledPolygon,Polygon_with_symbols,notscaledLabel,scaledLabel&STYLES=,,,,,,,,&SRS=EPSG:31466&BBOX=2517600,5672315,2518960,5673675&WIDTH=2000&HEIGHT=2000&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml >> >> >> The behaviour of MapServer 6.0 and MapServer 6.2 is just the same. This time >> we have a demo project where we tried the different cases. You can download >> it at: >> >> UMN: >> >> https://svn.wheregroup.com/download/mapserver_resolution.zip >> >> PDF: >> https://svn.wheregroup.com/download/mapserver_resolution_pdf.zip >> >> >> >> Results: >> >> POINTS >> * scaled or not scaled Points/Symbols: displayed correct, scaled and >> notscaled are the same in the map >> >> LINES >> * scaled lines: displayed correct >> * unscaled lines: too small (1:2000, 1:5000, 1:1000), correct (1:20000) >> >> POLYGON >> * scaled Polygone/Outline: displayed correct >> * not scaled Polygone/Outline: too small (1:2000), correct (1:5000, >> 1:10000,1:20000) >> * scaled or not scaled Polygone with symbols: displayed correct >> >> LABEL >> * scaled Label: too small >> * not scaled Label: too big (1:1000, 1:2000, 1:5000, too small (1:20000) >> >> >> For us it would be good to get this problem solved, as at the moment we >> generate a copy of the mapfile for the print with symbol- and labelsize >> multiplyed with factor 4. It would be charming to solve the print with one >> mapfile. We could do testing and maybe I could look for sponsoring too. >> >> >> >> Is there someone else interested to solve this? Is there a ticket already? >> >> Thekla >> >> >> >> >> On 14.12.2011 17:44, Astrid Emde wrote: >> >> Hello, >> >> we tried the parameter MAP.RESOLUTION AND MAP.DEFRESOLUTION with >> MapServer 6.0.1 and made the following observations. >> >> We tested with RESOLUTION=288&MAP.DEFRESOLUTION=72 >> >> The size of the symbols and textes was not like we expected. They were >> often too small. >> >> We tested with and without the parameter SYMBOLSCALEDENOM >> >> 1.) without SYMBOLSCALEDENOM (none scaled, fix size) ok are: >> >> * lines (not scaled) are dispayed correct (ok) >> * outlines (not scaled) of polygones are dispayed correct (ok). >> * symbols (not scaled) are displayed correct (ok). >> * textes (not scaled) are displayed correct (ok).We tested not scaled >> texts without SYMBOLSCALEDENOM: It's displayed different weather >> MINSIZE/MAXSIZE is existing or not. >> >> >> 2.) with SYMBOLSCALEDENOM >> >> NOT ok: >> >> * Scaled symbols are displayed incorrect - too small. >> * Scaled lines are dispayed incorrect - too small. >> * scaled outlines of polygones are dispayed incorrect. >> * Scaled text are dispayed incorrect - too small. >> >> For us it would be good to get this problem solved, as at the moment we >> generate a copy of the mapfile for the print with symbol- and labelsize >> multiplyed with factor 4. It would be charming to solve the print with one >> mapfile. We could do testing and maybe I could look for sponsoring too. >> >> Is there someone else interested to solve this? Is there a ticket already? >> >> Astrid >> >> thomas bonfort schrieb: >> >> cgi controls should do the trick? >> >> http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 >> >> -- >> thomas >> >> On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner >> <peter.hopfgartner at r3-gis.com> wrote: >> >> Basically, I am looking for a way to something analogous to >> >> DEFRESOLUTION in >> >> a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm >> (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the >> >> WMS >> >> 1.3.0 standard. >> Is there a MapServer vendor parameter, similar to the one in GeoServer, >> http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options >> ? >> >> Peter >> >> -- >> Peter Hopfgartner R3 GIS http://www.r3-gis.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> >> >> --------------------------------- >> >> Thekla Wirkus >> GIS-Consultant >> >> ---------------------------------- >> Aufwind durch Wissen! >> >> Qualifizierte OpenSource-Schulungen >> bei der www.foss-academy.eu >> ----------------------------------- >> >> WhereGroup GmbH & Co. KG >> Eifelstra?e 7 >> 53119 Bonn >> Germany >> >> Fon: +49 (0)228 / 90 90 38 - 34 >> Fax: +49 (0)228 / 90 90 38 - 11 >> >> Email: thekla.wirkus at wheregroup.com >> www.wheregroup.com >> Amtsgericht Bonn, HRA 6788 >> ------------------------------- >> Komplement?rin: >> WhereGroup Verwaltungs GmbH >> vertreten durch: >> Olaf Knopp, Peter Stamm >> ------------------------------ >> - >> >> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Mit freundlichen Gr??en Astrid Emde ----------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From stiramdasu at qcoherent.com Fri Jul 20 07:32:06 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Fri, 20 Jul 2012 09:32:06 -0500 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <50090BE5.5060702@wheregroup.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> Message-ID: <001301cd6684$707ba500$5172ef00$@com> Hi, We have a wms server. It also has some extensions . There are three extra calls( like GetProfileView etc) other than getCapabilities, GetMap and GetFeatureInfo calls. Can I use map server to serve up my none wms calls? Any help would be greatly appreciated. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From Steve.Lime at state.mn.us Fri Jul 20 08:15:51 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 20 Jul 2012 15:15:51 +0000 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <001301cd6684$707ba500$5172ef00$@com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> <001301cd6684$707ba500$5172ef00$@com> Message-ID: <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> We would have to know more about what the extensions do and how they are implemented to comment more in detail. There are certainly options. For example, you could use MapScript OWS support and develop a custom service that way. Another option would be to use GetFeatureInfo request paired with different responses (via template perhaps) to change the nature of the information returned. Depending on how the extensions are implemented you might also be able to support the different response types using mod-rewrite or something like that. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Friday, July 20, 2012 9:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Can Map Server serve non WMS services? Hi, We have a wms server. It also has some extensions . There are three extra calls( like GetProfileView etc) other than getCapabilities, GetMap and GetFeatureInfo calls. Can I use map server to serve up my none wms calls? Any help would be greatly appreciated. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Fri Jul 20 10:00:55 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Fri, 20 Jul 2012 12:00:55 -0500 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> <001301cd6684$707ba500$5172ef00$@com> <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> Message-ID: <001a01cd6699$3aa05d30$afe11790$@com> Hi Steve, Thanks for the prompt reply. The request url for my service function is as follows : http://localhost:8080/sample?FORMAT=image/jpeg&EXCEPTIONS=INIMAGE&BGCOLOR=0x 000000&LAYERS=Points,Boundaries&STYLES=GroundElevation,Red&SERVICE=WMS&VERSI ON=1.1.1&REQUEST=GetProfileView&SRS=EPSG:26910&LEFT_XY=491646.2272727273,545 8251.454545454&RIGHT_XY=492102.95454545453,5458268.909090909&DEPTH=20&SHOW_D RAPELINE=FALSE&SHOW_GRATICULE=TRUE&WIDTH=833&HEIGHT=222&COLORIZATION=Classif ication&FILTER=All I guess this should give you some idea. Let me know if you want to know any additional details. So can you please give me an outline how I can use Map server to consume the image coming from my above service? Also can you provide sample map file entries to get this served up. Thanks in advance, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, July 20, 2012 10:16 AM To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Can Map Server serve non WMS services? We would have to know more about what the extensions do and how they are implemented to comment more in detail. There are certainly options. For example, you could use MapScript OWS support and develop a custom service that way. Another option would be to use GetFeatureInfo request paired with different responses (via template perhaps) to change the nature of the information returned. Depending on how the extensions are implemented you might also be able to support the different response types using mod-rewrite or something like that. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Friday, July 20, 2012 9:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Can Map Server serve non WMS services? Hi, We have a wms server. It also has some extensions . There are three extra calls( like GetProfileView etc) other than getCapabilities, GetMap and GetFeatureInfo calls. Can I use map server to serve up my none wms calls? Any help would be greatly appreciated. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Jul 20 10:34:50 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 20 Jul 2012 13:34:50 -0400 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <001a01cd6699$3aa05d30$afe11790$@com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> <001301cd6684$707ba500$5172ef00$@com> <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> <001a01cd6699$3aa05d30$afe11790$@com> Message-ID: <500996BA.7000305@swoodbridge.com> Hi Sowmya, Since you are making a non-standard WMS request GetProfileView, i doubt that anyone here knows what that does, and as such, is probably not going to be able to help you. You need to provide a detailed description of what GetProfileView does, like what are the inputs, what is the expect output, and how is it generated. That said, someone programmed that up on your side and it is likely that they would have to program support for that using mapserver as a tools set and maybe using something like mapscript. In general, mapserver is a map rendering and querying engine that has some additional geo-processing tools and access to most core features for programming using mapscript. Hope this helps, Steve W On 7/20/2012 1:00 PM, Sowmya Tiramdasu wrote: > Hi Steve, > > Thanks for the prompt reply. The request url for my service function is as > follows : > > http://localhost:8080/sample?FORMAT=image/jpeg&EXCEPTIONS=INIMAGE&BGCOLOR=0x > 000000&LAYERS=Points,Boundaries&STYLES=GroundElevation,Red&SERVICE=WMS&VERSI > ON=1.1.1&REQUEST=GetProfileView&SRS=EPSG:26910&LEFT_XY=491646.2272727273,545 > 8251.454545454&RIGHT_XY=492102.95454545453,5458268.909090909&DEPTH=20&SHOW_D > RAPELINE=FALSE&SHOW_GRATICULE=TRUE&WIDTH=833&HEIGHT=222&COLORIZATION=Classif > ication&FILTER=All > > I guess this should give you some idea. Let me know if you want to know any > additional details. > > So can you please give me an outline how I can use Map server to consume the > image coming from my above service? Also can you provide sample map file > entries to get this served up. > > Thanks in advance, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, July 20, 2012 10:16 AM > To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Can Map Server serve non WMS services? > > We would have to know more about what the extensions do and how they are > implemented to comment more in detail. There are certainly options. For > example, you could use MapScript OWS support and develop a custom service > that way. Another option would be to use GetFeatureInfo request paired with > different responses (via template perhaps) to change the nature of the > information returned. > > Depending on how the extensions are implemented you might also be able to > support the different response types using mod-rewrite or something like > that. > > Steve > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya > Tiramdasu > Sent: Friday, July 20, 2012 9:32 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Can Map Server serve non WMS services? > > Hi, > > We have a wms server. It also has some extensions . There are three extra > calls( like GetProfileView etc) other than getCapabilities, GetMap and > GetFeatureInfo calls. Can I use map server to serve up my none wms calls? > Any help would be greatly appreciated. > > Thanks, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stiramdasu at qcoherent.com Fri Jul 20 11:23:07 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Fri, 20 Jul 2012 13:23:07 -0500 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <500996BA.7000305@swoodbridge.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> <001301cd6684$707ba500$5172ef00$@com> <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> <001a01cd6699$3aa05d30$afe11790$@com> <500996BA.7000305@swoodbridge.com> Message-ID: <001b01cd66a4$b688c9e0$239a5da0$@com> Hi Steve, Even I am new to the company. So do not have much details. But I think , The GetProfileView operation returns a profile view of LIDAR data. Upon receiving a GetProfileView request, a WMS shall either satisfy the request or issue a service exception. The WMS Server we have deals with LIDAR DATA (LAS Files). So when we draw a line on the display lidar data and send a request for the getProfileView, we get an image back as response if everything happened good. Else we get a service exception. The key value pairs ( parameters) passed along with getProfileView operation are mentioned in the URL I specified in my previous email. I hope this information may give you some additional understanding. Do you think I can use mapscript to make calls to any service ( NOT WMS) and render the response image as a layer along with other shape file data layers? Thanks a lot for trying to help me. I am extremely sorry for giving you limited info, I myself do not know much about all this . Sorry! Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Friday, July 20, 2012 12:35 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Can Map Server serve non WMS services? Hi Sowmya, Since you are making a non-standard WMS request GetProfileView, i doubt that anyone here knows what that does, and as such, is probably not going to be able to help you. You need to provide a detailed description of what GetProfileView does, like what are the inputs, what is the expect output, and how is it generated. That said, someone programmed that up on your side and it is likely that they would have to program support for that using mapserver as a tools set and maybe using something like mapscript. In general, mapserver is a map rendering and querying engine that has some additional geo-processing tools and access to most core features for programming using mapscript. Hope this helps, Steve W On 7/20/2012 1:00 PM, Sowmya Tiramdasu wrote: > Hi Steve, > > Thanks for the prompt reply. The request url for my service function is as > follows : > > http://localhost:8080/sample?FORMAT=image/jpeg&EXCEPTIONS=INIMAGE&BGCOLOR=0x > 000000&LAYERS=Points,Boundaries&STYLES=GroundElevation,Red&SERVICE=WMS&VERSI > ON=1.1.1&REQUEST=GetProfileView&SRS=EPSG:26910&LEFT_XY=491646.2272727273,545 > 8251.454545454&RIGHT_XY=492102.95454545453,5458268.909090909&DEPTH=20&SHOW_D > RAPELINE=FALSE&SHOW_GRATICULE=TRUE&WIDTH=833&HEIGHT=222&COLORIZATION=Classif > ication&FILTER=All > > I guess this should give you some idea. Let me know if you want to know any > additional details. > > So can you please give me an outline how I can use Map server to consume the > image coming from my above service? Also can you provide sample map file > entries to get this served up. > > Thanks in advance, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, July 20, 2012 10:16 AM > To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Can Map Server serve non WMS services? > > We would have to know more about what the extensions do and how they are > implemented to comment more in detail. There are certainly options. For > example, you could use MapScript OWS support and develop a custom service > that way. Another option would be to use GetFeatureInfo request paired with > different responses (via template perhaps) to change the nature of the > information returned. > > Depending on how the extensions are implemented you might also be able to > support the different response types using mod-rewrite or something like > that. > > Steve > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya > Tiramdasu > Sent: Friday, July 20, 2012 9:32 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Can Map Server serve non WMS services? > > Hi, > > We have a wms server. It also has some extensions . There are three extra > calls( like GetProfileView etc) other than getCapabilities, GetMap and > GetFeatureInfo calls. Can I use map server to serve up my none wms calls? > Any help would be greatly appreciated. > > Thanks, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Jul 20 12:15:23 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 20 Jul 2012 15:15:23 -0400 Subject: [mapserver-users] Can Map Server serve non WMS services? In-Reply-To: <001b01cd66a4$b688c9e0$239a5da0$@com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> <5003E962.7030405@wheregroup.com> <CAOM3y2hNJsh7TOzP+UfVX2pFMEC8wO4e23Ye1yGZDMEh1B-DXg@mail.gmail.com> <50090BE5.5060702@wheregroup.com> <001301cd6684$707ba500$5172ef00$@com> <C549F0496453D842B4DD71AC8188DDC51C30CB@055-CH1MPN1-042.055d.mgd.msft.net> <001a01cd6699$3aa05d30$afe11790$@com> <500996BA.7000305@swoodbridge.com> <001b01cd66a4$b688c9e0$239a5da0$@com> Message-ID: <5009AE4B.7070700@swoodbridge.com> There was a discussion a while back on the list for doing something similar. search the list archives for "elevation profile" -Steve W On 7/20/2012 2:23 PM, Sowmya Tiramdasu wrote: > Hi Steve, > > Even I am new to the company. So do not have much details. But I think , > The GetProfileView operation returns a profile view of LIDAR data. Upon > receiving a GetProfileView request, a WMS shall either satisfy the request > or issue a service exception. > > The WMS Server we have deals with LIDAR DATA (LAS Files). So when we draw a > line on the display lidar data and send a request for the getProfileView, we > get an image back as response if everything happened good. Else we get a > service exception. > > The key value pairs ( parameters) passed along with getProfileView operation > are mentioned in the URL I specified in my previous email. I hope this > information may give you some additional understanding. > > Do you think I can use mapscript to make calls to any service ( NOT WMS) and > render the response image as a layer along with other shape file data > layers? > > Thanks a lot for trying to help me. I am extremely sorry for giving you > limited info, I myself do not know much about all this . Sorry! > > Thanks, > Sowmya. > > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Friday, July 20, 2012 12:35 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Can Map Server serve non WMS services? > > Hi Sowmya, > > Since you are making a non-standard WMS request GetProfileView, i doubt > that anyone here knows what that does, and as such, is probably not > going to be able to help you. You need to provide a detailed description > of what GetProfileView does, like what are the inputs, what is the > expect output, and how is it generated. > > That said, someone programmed that up on your side and it is likely that > they would have to program support for that using mapserver as a tools > set and maybe using something like mapscript. In general, mapserver is a > map rendering and querying engine that has some additional > geo-processing tools and access to most core features for programming > using mapscript. > > Hope this helps, > Steve W > > On 7/20/2012 1:00 PM, Sowmya Tiramdasu wrote: >> Hi Steve, >> >> Thanks for the prompt reply. The request url for my service function is > as >> follows : >> >> > http://localhost:8080/sample?FORMAT=image/jpeg&EXCEPTIONS=INIMAGE&BGCOLOR=0x >> > 000000&LAYERS=Points,Boundaries&STYLES=GroundElevation,Red&SERVICE=WMS&VERSI >> > ON=1.1.1&REQUEST=GetProfileView&SRS=EPSG:26910&LEFT_XY=491646.2272727273,545 >> > 8251.454545454&RIGHT_XY=492102.95454545453,5458268.909090909&DEPTH=20&SHOW_D >> > RAPELINE=FALSE&SHOW_GRATICULE=TRUE&WIDTH=833&HEIGHT=222&COLORIZATION=Classif >> ication&FILTER=All >> >> I guess this should give you some idea. Let me know if you want to know > any >> additional details. >> >> So can you please give me an outline how I can use Map server to consume > the >> image coming from my above service? Also can you provide sample map file >> entries to get this served up. >> >> Thanks in advance, >> Sowmya. >> _______________________________ >> Sowmya Tiramdasu >> QCoherent Software >> 9668 Madison Blvd., Suite 202 >> Madison, AL 35758 >> (256) 461-8289 Telephone >> (256) 461-8249 Fax >> www.geocue.com >> >> >> -----Original Message----- >> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >> Sent: Friday, July 20, 2012 10:16 AM >> To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] Can Map Server serve non WMS services? >> >> We would have to know more about what the extensions do and how they are >> implemented to comment more in detail. There are certainly options. For >> example, you could use MapScript OWS support and develop a custom service >> that way. Another option would be to use GetFeatureInfo request paired > with >> different responses (via template perhaps) to change the nature of the >> information returned. >> >> Depending on how the extensions are implemented you might also be able to >> support the different response types using mod-rewrite or something like >> that. >> >> Steve >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya >> Tiramdasu >> Sent: Friday, July 20, 2012 9:32 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Can Map Server serve non WMS services? >> >> Hi, >> >> We have a wms server. It also has some extensions . There are three > extra >> calls( like GetProfileView etc) other than getCapabilities, GetMap and >> GetFeatureInfo calls. Can I use map server to serve up my none wms calls? >> Any help would be greatly appreciated. >> >> Thanks, >> Sowmya. >> _______________________________ >> Sowmya Tiramdasu >> QCoherent Software >> 9668 Madison Blvd., Suite 202 >> Madison, AL 35758 >> (256) 461-8289 Telephone >> (256) 461-8249 Fax >> www.geocue.com >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From matt at wildwalks.com Sat Jul 21 03:42:31 2012 From: matt at wildwalks.com (Matt McClelland) Date: Sat, 21 Jul 2012 20:42:31 +1000 Subject: [mapserver-users] offset line more of a scribble then a line Message-ID: <CAGbhREma4hNyVpgHStdnOKZ-3qD=P1gcpW9qWqoN9Fiae5vFbw@mail.gmail.com> Hi I am on mapserver 6.0, WMS This link has an example of the issue - a picture saves me a 1000 words :) http://wildwalks.com/temp/offset issue.png Basically I am trying to draw a line offset to the coast line. But the line that is appearing is more of a scribble then a neat line (the red line is the offset line, and the blue is the coast line.) Here is the relevant style bits form the mapfile STYLE ## COAST LINE COLOR 100 100 255 WIDTH 1 END STYLE ## red offset line color 255 0 0 WIDTH 5 OFFSET 50 -99 END Any clues on how to get the red line to run a little nicer :) Thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120721/61595486/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Sat Jul 21 05:28:48 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 21 Jul 2012 12:28:48 +0000 Subject: [mapserver-users] offset line more of a scribble then a line In-Reply-To: <CAGbhREma4hNyVpgHStdnOKZ-3qD=P1gcpW9qWqoN9Fiae5vFbw@mail.gmail.com> References: <CAGbhREma4hNyVpgHStdnOKZ-3qD=P1gcpW9qWqoN9Fiae5vFbw@mail.gmail.com> Message-ID: <84446DEF76453C439E9E97E438E13A6345C815@suutari.haapa.mmm.fi> Hi, I know why it happens but I do not know a general solution for making it look better. The coast line is splitted in short linestrings (max 2000 nodes it it is OpenStreetMap data) and offset is calculated individually for each line by using a perpendicular displacement for each vertex. If the cutting between linestrings happens to be in very concave or convex part of the coastline the result is like you see. You will get the same result by using the ST_OffsetLine in PostGIS or Spatialite. I would guess that there is something in the offset function for doing some arrangements if the concave/convex parts are in the middle of a linestring so that the resultining lines would not have self-intersections. Therefore you might get better looking result with less number of messy knots by combining some amount of linestrings with union function before the offset line is built. Also if coast line was cutted in very straight sections the mess would not look as bad. I would guess that rather good result could be achieved on-the-fly by selecting first all the coastline segments inside the bounding box to be rendered, unioning them and building offset line for the union. I do not know how to do that with Mapserver but perhaps a clever view in PostGIS could do it automatically. Matt McClelland wrote: > Hi > I am on mapserver 6.0, WMS > This link has an example of the issue - a picture saves me a 1000 words :) http://wildwalks.com/temp/offset issue.png<http://wildwalks.com/temp/offset%20issue.png> > Basically I am trying to draw a line offset to the coast line. > But the line that is appearing is more of a scribble then a neat line > (the red line is the offset line, and the blue is the coast line.) > Here is the relevant style bits form the mapfile STYLE ## COAST LINE COLOR 100 100 255 WIDTH 1 END STYLE ## red offset line color 255 0 0 WIDTH 5 OFFSET 50 -99 END > Any clues on how to get the red line to run a little nicer :) > Thanks > Matt :) From aperi2007 at gmail.com Mon Jul 23 02:30:41 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 23 Jul 2012 11:30:41 +0200 Subject: [mapserver-users] Info on wms_version parameter Message-ID: <CABqTJk9xKO3gunEvRrUBmYa1zZEMO48NP_J5oyL=jhN7nqwbPQ@mail.gmail.com> Hi, what mean the "wms_version" parameter ? I'm not able to find any information on documentation about it. I try also to set it to wms_version="1.1.0" or wms_version="1.3.0" but I'm not able to notice any difference. Both allow a getcapabilities request for version=1.3.0. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120723/360acaf0/attachment.htm> From Andreas.Eichner at sid.sachsen.de Mon Jul 23 04:33:21 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 23 Jul 2012 13:33:21 +0200 Subject: [mapserver-users] Info on wms_version parameter References: <CABqTJk9xKO3gunEvRrUBmYa1zZEMO48NP_J5oyL=jhN7nqwbPQ@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C5@KS-EVS1.smi.sachsen.de> Hi, wms_server_version is a layer level metadata used only by WMS client layers and is the WMS version to use when querying the cascaded remote WMS. A WEB metadata called wms_getcapabilities_version specifies the default version to respond with if the client doesn't provide one on a GetCapabilities request. There's IMHO no option to restrict the server to a specific version. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Andrea Peri > Gesendet: Montag, 23. Juli 2012 11:31 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Info on wms_version parameter > > Hi, > > what mean the "wms_version" parameter ? > > I'm not able to find any information on documentation about it. > > I try also to set it to > wms_version="1.1.0" > or > wms_version="1.3.0" > > but I'm not able to notice any difference. > Both allow a getcapabilities request for version=1.3.0. > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > From aperi2007 at gmail.com Mon Jul 23 04:42:48 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 23 Jul 2012 13:42:48 +0200 Subject: [mapserver-users] Info on wms_version parameter In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C5@KS-EVS1.smi.sachsen.de> References: <CABqTJk9xKO3gunEvRrUBmYa1zZEMO48NP_J5oyL=jhN7nqwbPQ@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C5@KS-EVS1.smi.sachsen.de> Message-ID: <CABqTJk-i6gJUMzdSVWeBxuxC1Cj-j37hyR206AzQBNFnTeQLpw@mail.gmail.com> Hi Heichner, My doubt is about a strange "wms_version" parameter. I found this parameter "wms_server" "1.3.0" on a mapfile I'm studying, but don't find any info on this parameter. >From your response I understand that the "wms_version" parameter is simply a digit mistake. Right ? Andrea. 2012/7/23 Eichner, Andreas - SID-NLKM <Andreas.Eichner at sid.sachsen.de> > > Hi, > > wms_server_version is a layer level metadata used only by WMS client > layers and > is the WMS version to use when querying the cascaded remote WMS. > A WEB metadata called wms_getcapabilities_version specifies the default > version > to respond with if the client doesn't provide one on a GetCapabilities > request. > There's IMHO no option to restrict the server to a specific version. > > > HTH > > > > -----Urspr?ngliche Nachricht----- > > Von: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > > von Andrea Peri > > Gesendet: Montag, 23. Juli 2012 11:31 > > An: mapserver-users at lists.osgeo.org > > Betreff: [mapserver-users] Info on wms_version parameter > > > > Hi, > > > > what mean the "wms_version" parameter ? > > > > I'm not able to find any information on documentation about it. > > > > I try also to set it to > > wms_version="1.1.0" > > or > > wms_version="1.3.0" > > > > but I'm not able to notice any difference. > > Both allow a getcapabilities request for version=1.3.0. > > > > Thx, > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120723/219bf2da/attachment.htm> From Andreas.Eichner at sid.sachsen.de Mon Jul 23 05:26:39 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 23 Jul 2012 14:26:39 +0200 Subject: [mapserver-users] Info on wms_version parameter References: <CABqTJk9xKO3gunEvRrUBmYa1zZEMO48NP_J5oyL=jhN7nqwbPQ@mail.gmail.com><56B587E7C40D2F43B54FDC1BA897AC6D037AF3C5@KS-EVS1.smi.sachsen.de> <CABqTJk-i6gJUMzdSVWeBxuxC1Cj-j37hyR206AzQBNFnTeQLpw@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C6@KS-EVS1.smi.sachsen.de> > My doubt is about a strange "wms_version" parameter. > > I found this parameter > > "wms_server" "1.3.0" > on a mapfile I'm studying, but don't find any info on this parameter. > > From your response I understand that the "wms_version" > parameter is simply a digit mistake. Right ? It seems that neither "wms_server" nor "wms_version" exist. If you use another WMS as input use "wms_server_version" at the layer's metadata to specify the WMS version to connect with. And if you want to present a lower version to clients use "wms_getcapabilities_version" on the WEB metadata. Nevertheless if a clients asks with VERSION=1.3.0 for a GetCapabilities MapServer will respond with v1.3.0. From jorgelopez.physics at gmail.com Mon Jul 23 08:04:49 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Mon, 23 Jul 2012 08:04:49 -0700 (PDT) Subject: [mapserver-users] ArcInfo Grid with MapServer Message-ID: <1343055889525-4990112.post@n6.nabble.com> Hello everyone: I have some problems trying to render Arc Info Grids with MapServer. I am using this mapfile (restricted to LAYER definition) LAYER NAME 'JRC_SRTM90' TYPE 'RASTER' DATA '/home/data/datasets/public/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100' METADATA ## WMS ## 'wms_title' 'SRTM Digital Elevation Model' 'wms_abstract' 'Shuttle Radar Topography Mission (SRTM) data is a high quality elevation data for large portions and areas of the world.' 'wms_label' 'SRTM_90_info' 'wms_metadataurl_format' 'text/html' 'wms_extent' '-180 -90 180 90' 'wms_enable_request' '*' 'wms_include_items' 'all' 'gml_include_items' 'all' ## WCS ## 'wcs_title' 'SRTM Digital Elevation Model' 'gml_featureid' 'ID' ## REQUIRED 'wcs_label' 'SRTM_90' 'wcs_description' 'Shuttle Radar Topography Mission (SRTM) data is a high quality elevation data for large portions and areas of the world.' 'wcs_formats' 'AIGRID' 'wcs_extent' '-180 -90 180 90' 'wcs_enable_request' '*' "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "Bluemarble classes" ### required to support DescribeCoverage request END #end metadata STATUS OFF DUMP TRUE TEMPLATE ' ' PROJECTION 'init=epsg:4326' END END #end layer I am doing WMS request by pointing to ArcInfo srtm90_dem100 directory (that contains adf files) but I have no response from MapServer. Attending to Apache logs: [Mon Jul 23 17:03:05 2012] [error] [client 158.109.144.146] GDAL: GDALDeregister_GTiff() called. [Mon Jul 23 17:03:06 2012] [error] [client 158.109.144.146] File does not exist: /var/www/favicon.ico [Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100.aux, this=0x2461bc0) succeeds as HFA. [Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100, this=0x24414e0) succeeds as AIG. [Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] GDAL: GDALDeregister_GTiff() called. [Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] File does not exist: /var/www/favicon.ico It seems to use drivers correctly. I have OUTPUTFORMAT definition like this: # GRID COVERAGE OUTPUTFORMAT NAME 'AIGRID' DRIVER 'GDAL/AAIGRID' ## MIMETYPE 'image/x-aigrid' IMAGEMODE 'INT16' EXTENSION 'grd' ## FORMATOPTION 'FILENAME=result.grd' END #end outputformat Does anybody know why there is no response in my situation? Or send some clues for publishing ArcInfo Grids using GDAL? I have not found any info relevant for me about this issue. Thank you in advance Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Jul 23 08:11:43 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 23 Jul 2012 15:11:43 +0000 Subject: [mapserver-users] ArcInfo Grid with MapServer In-Reply-To: <1343055889525-4990112.post@n6.nabble.com> References: <1343055889525-4990112.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A6345C9E5@suutari.haapa.mmm.fi> Hi, STATUS OFF means that the layer is turned off. DEFAULT sets it to be allways ON and "STATUS ON" means it can be on or off depending from your request. Byt the way, how does your request look like? -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän jorgelopez [jorgelopez.physics at gmail.com] puolesta L?hetetty: 23. hein?kuuta 2012 18:04 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] ArcInfo Grid with MapServer Hello everyone: I have some problems trying to render Arc Info Grids with MapServer. I am using this mapfile (restricted to LAYER definition) LAYER NAME 'JRC_SRTM90' TYPE 'RASTER' DATA '/home/data/datasets/public/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100' METADATA ## WMS ## 'wms_title' 'SRTM Digital Elevation Model' 'wms_abstract' 'Shuttle Radar Topography Mission (SRTM) data is a high quality elevation data for large portions and areas of the world.' 'wms_label' 'SRTM_90_info' 'wms_metadataurl_format' 'text/html' 'wms_extent' '-180 -90 180 90' 'wms_enable_request' '*' 'wms_include_items' 'all' 'gml_include_items' 'all' ## WCS ## 'wcs_title' 'SRTM Digital Elevation Model' 'gml_featureid' 'ID' ## REQUIRED 'wcs_label' 'SRTM_90' 'wcs_description' 'Shuttle Radar Topography Mission (SRTM) data is a high quality elevation data for large portions and areas of the world.' 'wcs_formats' 'AIGRID' 'wcs_extent' '-180 -90 180 90' 'wcs_enable_request' '*' "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "Bluemarble classes" ### required to support DescribeCoverage request END #end metadata STATUS OFF DUMP TRUE TEMPLATE ' ' PROJECTION 'init=epsg:4326' END END #end layer I am doing WMS request by pointing to ArcInfo srtm90_dem100 directory (that contains adf files) but I have no response from MapServer. Attending to Apache logs: [Mon Jul 23 17:03:05 2012] [error] [client 158.109.144.146] GDAL: GDALDeregister_GTiff() called. [Mon Jul 23 17:03:06 2012] [error] [client 158.109.144.146] File does not exist: /var/www/favicon.ico [Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100.aux, this=0x2461bc0) succeeds as HFA. [Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100, this=0x24414e0) succeeds as AIG. [Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] GDAL: GDALDeregister_GTiff() called. [Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] File does not exist: /var/www/favicon.ico It seems to use drivers correctly. I have OUTPUTFORMAT definition like this: # GRID COVERAGE OUTPUTFORMAT NAME 'AIGRID' DRIVER 'GDAL/AAIGRID' ## MIMETYPE 'image/x-aigrid' IMAGEMODE 'INT16' EXTENSION 'grd' ## FORMATOPTION 'FILENAME=result.grd' END #end outputformat Does anybody know why there is no response in my situation? Or send some clues for publishing ArcInfo Grids using GDAL? I have not found any info relevant for me about this issue. Thank you in advance Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jorgelopez.physics at gmail.com Mon Jul 23 08:21:33 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Mon, 23 Jul 2012 08:21:33 -0700 (PDT) Subject: [mapserver-users] ArcInfo Grid with MapServer In-Reply-To: <84446DEF76453C439E9E97E438E13A6345C9E5@suutari.haapa.mmm.fi> References: <1343055889525-4990112.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A6345C9E5@suutari.haapa.mmm.fi> Message-ID: <1343056893628-4990116.post@n6.nabble.com> Hello again: Thank you R.J. for your soonly reply. I have set STATUS ON|DEFAULT for my layer but it does not work. My request is as following: http://pegasosdi.uab.es/ogc/wmstest?service=WMS&version=1.1.1&request=getMap&LAYERS=JRC_SRTM90&srs=EPSG:4326&BBOX=-26,26,45,72&WIDTH=600&HEIGHT=500&FORMAT=image/png but no map image on my browser. No errors on Apache/Mapserver log but when I connect to my map server from ArcMap client there is a error message that does not appear when browser is used. " One or more layers failed to draw: TEST: WMS service exceptions:-Service Error Code:LayerNotDefined Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. -Service Error Code:LayerNotDefined " Any ideas about this? Thanks Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112p4990116.html Sent from the Mapserver - User mailing list archive at Nabble.com. From marcus.sohn at web.de Mon Jul 23 08:32:08 2012 From: marcus.sohn at web.de (Marcus Sohn) Date: Mon, 23 Jul 2012 17:32:08 +0200 Subject: [mapserver-users] problem to load map Message-ID: <3D31F104-EBE0-4CBB-88B0-B9BAA3B8B7D5@web.de> Hi everyone I'm running mapserver on Mac OSX 10.6 and i got a little problem. Every time i want to open a Map via Safari the massage "msLoadMap(): Unable to access file. (/workshop-5.4/itasca.map)" appears and i have no idea how to fix it. The access options are all set right and so are the directory paths. Pleas contact me if you have an idea. Regards Marcus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120723/a03da980/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Mon Jul 23 08:46:58 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 23 Jul 2012 15:46:58 +0000 Subject: [mapserver-users] ArcInfo Grid with MapServer In-Reply-To: <1343056893628-4990116.post@n6.nabble.com> References: <1343055889525-4990112.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A6345C9E5@suutari.haapa.mmm.fi>, <1343056893628-4990116.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A6345C9FE@suutari.haapa.mmm.fi> Next guess: perhaps values in the DEM file are so close to zero that the WMS image just looks all black. Study the histograms with some suitable program. If values are very low you will need to scale the image before rendering. You have sure checked that original images are in EPSG:4326 and that the extents are correct. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän jorgelopez [jorgelopez.physics at gmail.com] puolesta L?hetetty: 23. hein?kuuta 2012 18:21 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] ArcInfo Grid with MapServer Hello again: Thank you R.J. for your soonly reply. I have set STATUS ON|DEFAULT for my layer but it does not work. My request is as following: http://pegasosdi.uab.es/ogc/wmstest?service=WMS&version=1.1.1&request=getMap&LAYERS=JRC_SRTM90&srs=EPSG:4326&BBOX=-26,26,45,72&WIDTH=600&HEIGHT=500&FORMAT=image/png but no map image on my browser. No errors on Apache/Mapserver log but when I connect to my map server from ArcMap client there is a error message that does not appear when browser is used. " One or more layers failed to draw: TEST: WMS service exceptions:-Service Error Code:LayerNotDefined Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. -Service Error Code:LayerNotDefined " Any ideas about this? Thanks Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112p4990116.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Jul 23 08:50:13 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 23 Jul 2012 11:50:13 -0400 Subject: [mapserver-users] ArcInfo Grid with MapServer In-Reply-To: <1343056893628-4990116.post@n6.nabble.com> References: <1343055889525-4990112.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A6345C9E5@suutari.haapa.mmm.fi> <1343056893628-4990116.post@n6.nabble.com> Message-ID: <500D72B5.90306@swoodbridge.com> Jorge, You have problems with some of your layer definitions. Look at: pegasosdi.uab.es/ogc/wmstest?service=WMS&version=1.1.1&request=getCapabilities and search for "WARNING", probably once you fix these issues it will work fine. For example this layer loads ok and has no warning: http://pegasosdi.uab.es/ogc/wmstest?service=WMS&version=1.1.1&request=getMap&LAYERS=GLOBCORINE_2009&srs=EPSG:4326&BBOX=-26,26,45,72&WIDTH=600&HEIGHT=500&FORMAT=image/png -Steve W On 7/23/2012 11:21 AM, jorgelopez wrote: > Hello again: > > Thank you R.J. for your soonly reply. I have set STATUS ON|DEFAULT for my > layer but it does not work. > > My request is as following: > > http://pegasosdi.uab.es/ogc/wmstest?service=WMS&version=1.1.1&request=getMap&LAYERS=JRC_SRTM90&srs=EPSG:4326&BBOX=-26,26,45,72&WIDTH=600&HEIGHT=500&FORMAT=image/png > > but no map image on my browser. No errors on Apache/Mapserver log but when I > connect to my map server from ArcMap client there is a error message that > does not appear when browser is used. > > " > One or more layers failed to draw: > > TEST: WMS service exceptions:-Service Error Code:LayerNotDefined > Service Error Description: msWMSLoadGetMapParams(): WMS server error. > Invalid layer(s) given in the LAYERS parameter. > -Service Error Code:LayerNotDefined > " > > Any ideas about this? > > Thanks > > Jorge > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112p4990116.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From donald.kerr at dkerr.co.uk Tue Jul 24 02:56:41 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 24 Jul 2012 10:56:41 +0100 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <CABqTJk9GNfmr5rvM5rJaDCP7XVfJn=i3JkkGJsAiZOzy7wcETg@mail.gmail.com> Message-ID: <2F2242883F804B0E9AB71BBD31CEBE30@DELLM4500> Hi list, I am trying to use BBOX in a WFS query template where I need to get the minx, miny etc in the following format: "258481,665862 258607,665956" i.e. a space between coordinate pairs which are separated by a comma. In the template, [bbox] returns "258481,665862,258607,665956" with each value separated by a comma. I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without success. Is there a way to achieve what I am looking for? Many thanks. Regards, Donald From lists at fuchsschwanzdomain.de Tue Jul 24 03:06:01 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Tue, 24 Jul 2012 10:06:01 +0000 (UTC) Subject: [mapserver-users] Resolution of PDF Output Message-ID: <juls29$amq$2@ultimate100.geggus.net> Hello, for PDF generation I would usually like to output Data in Papersizes (A3, A4, ...) but in shp2img or CGI Interface I can only specify pixels. How does this size correspond to the size shown in acrobat reader? If I take 1000 Pixels this will result in 352.8mm Where does this factor of 2.838 originate from? Regards Sven -- .. this message has been created using an outdated OS (UNIX-like) with an outdated mail- or newsreader (text-only) :-P /me is giggls at ircnet, http://sven.gegg.us/ on the Web From thomas.bonfort at gmail.com Tue Jul 24 03:11:59 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 24 Jul 2012 12:11:59 +0200 Subject: [mapserver-users] Resolution of PDF Output In-Reply-To: <juls29$amq$2@ultimate100.geggus.net> References: <juls29$amq$2@ultimate100.geggus.net> Message-ID: <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm 1000 pixels / (28 pixels/cm) = 35.71 cm, i.e. with rounding occuring close to your 352 mm. reagrds, thomas On Tue, Jul 24, 2012 at 12:06 PM, Sven Geggus <lists at fuchsschwanzdomain.de> wrote: > Hello, > > for PDF generation I would usually like to output Data in Papersizes (A3, > A4, ...) but in shp2img or CGI Interface I can only specify pixels. > > How does this size correspond to the size shown in acrobat reader? > > If I take 1000 Pixels this will result in 352.8mm > > Where does this factor of 2.838 originate from? > > > Regards > > Sven > > -- > .. this message has been created using an outdated OS (UNIX-like) with an > outdated mail- or newsreader (text-only) :-P > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From heuert at landcareresearch.co.nz Tue Jul 24 04:09:47 2012 From: heuert at landcareresearch.co.nz (Tim-Hinnerk Heuer) Date: Tue, 24 Jul 2012 23:09:47 +1200 Subject: [mapserver-users] Resolution of PDF Output In-Reply-To: <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> Message-ID: <CAAAYgDmhaobg1oCh2hMPRM85dRO1t4txec6Ow+9Ning0KX+amg@mail.gmail.com> Hi Thomas, Does Mapserver support PDF output? What about marginalia? Regards, Tim On Tue, Jul 24, 2012 at 10:11 PM, thomas bonfort <thomas.bonfort at gmail.com<mailto:thomas.bonfort at gmail.com>> wrote: The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm 1000 pixels / (28 pixels/cm) = 35.71 cm, i.e. with rounding occuring close to your 352 mm. reagrds, thomas On Tue, Jul 24, 2012 at 12:06 PM, Sven Geggus <lists at fuchsschwanzdomain.de<mailto:lists at fuchsschwanzdomain.de>> wrote: > Hello, > > for PDF generation I would usually like to output Data in Papersizes (A3, > A4, ...) but in shp2img or CGI Interface I can only specify pixels. > > How does this size correspond to the size shown in acrobat reader? > > If I take 1000 Pixels this will result in 352.8mm > > Where does this factor of 2.838 originate from? > > > Regards > > Sven > > -- > .. this message has been created using an outdated OS (UNIX-like) with an > outdated mail- or newsreader (text-only) :-P > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Tim-Hinnerk Heuer Web Developer Landcare Research (http://www.landcareresearch.co.nz) Informatics (http://wiki.zen.landcareresearch.co.nz) Ph: +64 6 353 4872 ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120724/905a08a8/attachment.htm> From heuert at landcareresearch.co.nz Tue Jul 24 04:19:00 2012 From: heuert at landcareresearch.co.nz (Tim-Hinnerk Heuer) Date: Tue, 24 Jul 2012 23:19:00 +1200 Subject: [mapserver-users] Resolution of PDF Output In-Reply-To: <CAAAYgDmhaobg1oCh2hMPRM85dRO1t4txec6Ow+9Ning0KX+amg@mail.gmail.com> References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> <CAAAYgDmhaobg1oCh2hMPRM85dRO1t4txec6Ow+9Ning0KX+amg@mail.gmail.com> Message-ID: <CAAAYgDkATqGWMiSk7Kv34A+fRZXcu0CTGnoPJVvif=xL3xhxyA@mail.gmail.com> To answer my own question: PDF output is supported but raster layers are rendered as JPG and not PNG. Would it be possible to render raster layers with a lossless image compression for better quality? I guess Mapfish Print still has its place because it supports nice marginalia. However, with PDF output support I would suspect Mapserver to be a lot quicker because it has direct access to the spatial db. Wouldn't it be possible to request a PDF from Mapserver and then simply draw it onto another PDF with the marginalia around it? That would mean speed AND nicely formatted output. Regards, Tim On Tue, Jul 24, 2012 at 11:09 PM, Tim-Hinnerk Heuer <heuert at landcareresearch.co.nz<mailto:heuert at landcareresearch.co.nz>> wrote: Hi Thomas, Does Mapserver support PDF output? What about marginalia? Regards, Tim On Tue, Jul 24, 2012 at 10:11 PM, thomas bonfort <thomas.bonfort at gmail.com<mailto:thomas.bonfort at gmail.com>> wrote: The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm 1000 pixels / (28 pixels/cm) = 35.71 cm, i.e. with rounding occuring close to your 352 mm. reagrds, thomas On Tue, Jul 24, 2012 at 12:06 PM, Sven Geggus <lists at fuchsschwanzdomain.de<mailto:lists at fuchsschwanzdomain.de>> wrote: > Hello, > > for PDF generation I would usually like to output Data in Papersizes (A3, > A4, ...) but in shp2img or CGI Interface I can only specify pixels. > > How does this size correspond to the size shown in acrobat reader? > > If I take 1000 Pixels this will result in 352.8mm > > Where does this factor of 2.838 originate from? > > > Regards > > Sven > > -- > .. this message has been created using an outdated OS (UNIX-like) with an > outdated mail- or newsreader (text-only) :-P > > /me is giggls at ircnet, http://sven.gegg.us/ on the Web > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Tim-Hinnerk Heuer Web Developer Landcare Research (http://www.landcareresearch.co.nz) Informatics (http://wiki.zen.landcareresearch.co.nz) Ph: +64 6 353 4872<tel:%2B64%206%20353%204872> -- Tim-Hinnerk Heuer Web Developer Landcare Research (http://www.landcareresearch.co.nz) Informatics (http://wiki.zen.landcareresearch.co.nz) Ph: +64 6 353 4872 ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120724/bf7bc390/attachment.htm> From Andreas.Eichner at sid.sachsen.de Tue Jul 24 04:35:10 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 24 Jul 2012 13:35:10 +0200 Subject: [mapserver-users] Mapserver Template - BBOX References: <2F2242883F804B0E9AB71BBD31CEBE30@DELLM4500> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C9@KS-EVS1.smi.sachsen.de> You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Donald Kerr > Gesendet: Dienstag, 24. Juli 2012 11:57 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > > Hi list, > > I am trying to use BBOX in a WFS query template where I need > to get the > minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate > pairs which > are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" > with each > value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From donald.kerr at dkerr.co.uk Tue Jul 24 05:26:27 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 24 Jul 2012 13:26:27 +0100 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C9@KS-EVS1.smi.sachsen.de> Message-ID: <41A0F9C0CDE94CE1BCA3F426EB550027@DELLM4500> Andreas, Thanks, but this only works for the individual features within [resultset]. I need to get the BBOX values which is basicallly the overall bounds of the query. [mapext] doesn't work either as that takes the bounds from the map file which are much greater than the BBOX for the query. Many thanks. Regards, Donald -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:Andreas.Eichner at sid.sachsen.de] Sent: 24 July 2012 12:35 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver Template - BBOX You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Donald Kerr > Gesendet: Dienstag, 24. Juli 2012 11:57 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > > Hi list, > > I am trying to use BBOX in a WFS query template where I need > to get the > minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate > pairs which > are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" > with each > value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lists at fuchsschwanzdomain.de Tue Jul 24 05:30:15 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Tue, 24 Jul 2012 12:30:15 +0000 (UTC) Subject: [mapserver-users] Resolution of PDF Output References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> Message-ID: <jum4gn$eol$1@ultimate100.geggus.net> thomas bonfort <thomas.bonfort at gmail.com> wrote: > The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm > > 1000 pixels / (28 pixels/cm) = 35.71 cm, i.e. with rounding occuring > close to your 352 mm. Would'nt it be more accurate to generate the PDF according to the RESOLUTION parameter? Sven -- "If you don't make lower-resolution mapping data publicly available, there will be people with their cars and GPS devices, driving around with their laptops" (Tim Berners-Lee) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From daz4805 at hotmail.com Tue Jul 24 06:52:48 2012 From: daz4805 at hotmail.com (daz4805) Date: Tue, 24 Jul 2012 06:52:48 -0700 (PDT) Subject: [mapserver-users] Compiling Mapserver 6.0.3 errors for Cairo Support Message-ID: <1343137968871-4990439.post@n6.nabble.com> Hi, I am trying to compile a 6.0.3 version of Mapserver and I am getting issues with Cairo support in the compilation process. Please see the log below for what is generated from my nmake /f makefile.vc command. Please could somebody give me an idea of what might be wrong? Thanks, Darren http://osgeo-org.1560.n6.nabble.com/file/n4990439/compile_log.bmp -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-6-0-3-errors-for-Cairo-Support-tp4990439.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue Jul 24 08:07:00 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 24 Jul 2012 15:07:00 +0000 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <41A0F9C0CDE94CE1BCA3F426EB550027@DELLM4500> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3C9@KS-EVS1.smi.sachsen.de> <41A0F9C0CDE94CE1BCA3F426EB550027@DELLM4500> Message-ID: <C549F0496453D842B4DD71AC8188DDC51C6518@055-CH1MPN1-042.055d.mgd.msft.net> Wonder if [rawext] will work? Worth a quick try but I doubt it. That value will get you the un-altered extent used for map draws or queries but only through CGI calls. I think what's happening is that because WFS works generally outside the CGI object that that some of the tracking variables referenced by the template code aren't being populated. The fix is relatively easy but there are a number of ways to go about it. Donald, can you create a ticket so this can get into 6.2 (I hope)... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Tuesday, July 24, 2012 7:26 AM To: 'Eichner, Andreas - SID-NLKM'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver Template - BBOX Andreas, Thanks, but this only works for the individual features within [resultset]. I need to get the BBOX values which is basicallly the overall bounds of the query. [mapext] doesn't work either as that takes the bounds from the map file which are much greater than the BBOX for the query. Many thanks. Regards, Donald -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:Andreas.Eichner at sid.sachsen.de] Sent: 24 July 2012 12:35 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver Template - BBOX You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Donald Kerr > Gesendet: Dienstag, 24. Juli 2012 11:57 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > > Hi list, > > I am trying to use BBOX in a WFS query template where I need > to get the > minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate > pairs which > are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" > with each > value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From lists at fuchsschwanzdomain.de Tue Jul 24 09:38:25 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Tue, 24 Jul 2012 16:38:25 +0000 (UTC) Subject: [mapserver-users] Resolution of PDF Output References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> Message-ID: <jumj21$jgt$1@ultimate100.geggus.net> thomas bonfort <thomas.bonfort at gmail.com> wrote: > The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm Hm, this is certainly not what I want. To generate PDF for printing (not viewing on the screen) something like 300dpi or 600dpi would be the target resolution. Any way to specify dpi in addition to picel size for PDF output format? Sven -- "Every time you use Google, you're using a Linux machine" (Chris DiBona, a programs manager for Google) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From woodbri at swoodbridge.com Tue Jul 24 09:54:42 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 24 Jul 2012 12:54:42 -0400 Subject: [mapserver-users] Resolution of PDF Output In-Reply-To: <jumj21$jgt$1@ultimate100.geggus.net> References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> <jumj21$jgt$1@ultimate100.geggus.net> Message-ID: <500ED352.1020106@swoodbridge.com> On 7/24/2012 12:38 PM, Sven Geggus wrote: > thomas bonfort <thomas.bonfort at gmail.com> wrote: > >> The pdf is problably generated at 72 dpi, i.e. approx 28 pixels/cm > > Hm, this is certainly not what I want. > > To generate PDF for printing (not viewing on the screen) something > like 300dpi or 600dpi would be the target resolution. > > Any way to specify dpi in addition to picel size for PDF output format? > > Sven > http://mapserver.org/mapfile/map.html set the RESOLUTION to an appropriate value for your PDF. -Steve W From donald.kerr at dkerr.co.uk Tue Jul 24 10:17:30 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 24 Jul 2012 18:17:30 +0100 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <C549F0496453D842B4DD71AC8188DDC51C6518@055-CH1MPN1-042.055d.mgd.msft.net> Message-ID: <5945BFD8BD8B4E2E89E7EDE23D8B21B8@DELLM4500> Steve, "[rawext]" has the same limitations as "[mapext]" which provides the overall extents as defined in the map file. I have created a ticket as you suggested: https://github.com/mapserver/mapserver/issues/4405 Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 24 July 2012 16:07 To: Donald Kerr; 'Eichner, Andreas - SID-NLKM'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver Template - BBOX Wonder if [rawext] will work? Worth a quick try but I doubt it. That value will get you the un-altered extent used for map draws or queries but only through CGI calls. I think what's happening is that because WFS works generally outside the CGI object that that some of the tracking variables referenced by the template code aren't being populated. The fix is relatively easy but there are a number of ways to go about it. Donald, can you create a ticket so this can get into 6.2 (I hope)... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Tuesday, July 24, 2012 7:26 AM To: 'Eichner, Andreas - SID-NLKM'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver Template - BBOX Andreas, Thanks, but this only works for the individual features within [resultset]. I need to get the BBOX values which is basicallly the overall bounds of the query. [mapext] doesn't work either as that takes the bounds from the map file which are much greater than the BBOX for the query. Many thanks. Regards, Donald -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:Andreas.Eichner at sid.sachsen.de] Sent: 24 July 2012 12:35 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver Template - BBOX You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Donald Kerr > Gesendet: Dienstag, 24. Juli 2012 11:57 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > > Hi list, > > I am trying to use BBOX in a WFS query template where I need to get > the minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate pairs > which are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" with > each value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From M.Kofahl at gmx.net Tue Jul 24 13:47:32 2012 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Tue, 24 Jul 2012 22:47:32 +0200 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <2F2242883F804B0E9AB71BBD31CEBE30@DELLM4500> References: <2F2242883F804B0E9AB71BBD31CEBE30@DELLM4500> Message-ID: <20120724204732.62100@gmx.net> Hi Donald, didn't actually try myself, but what about the tags [minx], [miny], [maxx], [maxy] or [shpminx], [shpminy], [shpmaxx], [shpmaxy] mentioned at http://mapserver.org/mapfile/template.html? Kind regards, Martin -------- Original-Nachricht -------- > Datum: Tue, 24 Jul 2012 10:56:41 +0100 > Von: "Donald Kerr" <donald.kerr at dkerr.co.uk> > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > Hi list, > > I am trying to use BBOX in a WFS query template where I need to get the > minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate pairs which > are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" with each > value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Tue Jul 24 13:59:43 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 24 Jul 2012 21:59:43 +0100 Subject: [mapserver-users] Mapserver Template - BBOX In-Reply-To: <20120724204732.62100@gmx.net> Message-ID: <74CB9D74DEB6456B9268DB8A48D2A193@DELLM4500> Martin, minx etc refers to the overall map extents as defined in the map file and shpminx etc refers to the individual features themselves so they won't work as wanted. Thanks anyway. Regards, Donald -----Original Message----- From: Martin Kofahl [mailto:M.Kofahl at gmx.net] Sent: 24 July 2012 21:48 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver Template - BBOX Hi Donald, didn't actually try myself, but what about the tags [minx], [miny], [maxx], [maxy] or [shpminx], [shpminy], [shpmaxx], [shpmaxy] mentioned at http://mapserver.org/mapfile/template.html? Kind regards, Martin -------- Original-Nachricht -------- > Datum: Tue, 24 Jul 2012 10:56:41 +0100 > Von: "Donald Kerr" <donald.kerr at dkerr.co.uk> > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Mapserver Template - BBOX > Hi list, > > I am trying to use BBOX in a WFS query template where I need to get > the minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate pairs > which are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" with > each value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Tue Jul 24 15:13:49 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Tue, 24 Jul 2012 17:13:49 -0500 Subject: [mapserver-users] Mapserver as wms client Message-ID: <004f01cd69e9$9b8fee50$d2afcaf0$@com> Hi, I configures map server to act as a WMS Client. But it doesn't work as expected. When i make a getMap request to my WMS server I get the right image back but when I try to make it a layer through my map server it is not working. I am using fiddler to see all the calls made to the server. I see the request I am sending to the map server but do not see a request to my WMS Server( I thought when Map server tries to consume the WMS server, it sends a request to the WMS Server- which should be shown in fiddler) find below my map file: MAP IMAGETYPE PNG EXTENT 1525556.83 190608.70 1547770.63 207656.82 # LAEA SIZE 984 660 SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" #IMAGECOLOR 32 32 32 FONTSET "../fonts/fonts.list" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://localhost:8080/keenland?" "wms_srs" "EPSG:32617" END END LAYER NAME Photogrammetric_Point #Photogrammetric points DATA Photogrammetric_Point STATUS OFF TYPE POINT PROJECTION "init=epsg:32617" END CLASS NAME "Photogrammetric points" STYLE COLOR 220 32 32 END END END LAYER NAME "lidar" TYPE RASTER STATUS ON CONNECTION "http://localhost:8080/keenland?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:32617" "wms_name" "Contours,Points,Boundaries" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "1517852.6794090855 186462.90718181827 1555978.4750454489 212035.08718181826" "wms_width" "984" "wms_height" "660" END END DEBUG 0 CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" END # Map File Any help is greatly appreciated. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax <http://www.geocue.com/> www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120724/d60f4560/attachment.htm> From kupen at wippies.fi Wed Jul 25 00:29:30 2012 From: kupen at wippies.fi (Pena Kupen) Date: Wed, 25 Jul 2012 10:29:30 +0300 (EEST) Subject: [mapserver-users] drawQuery() takes forever... Message-ID: <175435032.4231343201371155.JavaMail.kupen@wippies.fi> Hi, I have sent this to postgis-group, but forum is not maybe corrent one. Sorry for crossposting... -- Pena Aihe: [postgis-users] drawQuery() takes forever... L?hetetty: 24.7.2012 17:36 L?hett?j?: Pena Kupen [kupen at wippies.fi] Hello, I have a postgres query, which takes about 0,1sek and resultset is one line On my page, there is a link, which uses same sql tuo print koordinates to map. When plotting to the maps, it's never ends. I killed query from active task and pick sql from postgres log. It seems like following: select encode(AsBinary(force_collection(force_2d("koord")),'NDR'),'hex') as geom,"oid" from ( select ... [subpressed query] ) as foobar where koord && GeomFromText('POLYGON((3517739 7581169,3517739 7587169,3523739 7587169,3523739 7581169,3517739 7581169))',find_srid('','location','koord')) When trying same with phpPgAdmin, first just my sql from same sql-sentence. select ... [subpressed query] It takes same 0,1sek and one line as result. When trying same query as whole select encode(AsBinary(force_collection(force_2d("koord")),'NDR'),'hex') as geom,"oid" from ( select ... [subpressed query] ) as foobar where koord && GeomFromText('POLYGON((3517739 7581169,3517739 7587169,3523739 7587169,3523739 7581169,3517739 7581169))',find_srid('','location','koord')) It takes long time. After 15minutes, I killed query again. Any idea, why this hungs? Am I doing something wrongly? How to trace this? -- Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From jolni at KMS.dk Wed Jul 25 04:31:48 2012 From: jolni at KMS.dk (jlundnielsen) Date: Wed, 25 Jul 2012 04:31:48 -0700 (PDT) Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev In-Reply-To: <4FEC2540.9070108@ulb.ac.be> References: <1340802438165-4984223.post@n6.nabble.com> <4FEC2540.9070108@ulb.ac.be> Message-ID: <1343215908788-4990737.post@n6.nabble.com> Thanks for your reply Julien, and sorry for taking so long to get back... In short it did not work for me. I have since made a simple mapfile with just a single layer from a shapefile. It shows the labels as expected. Then I did a GetStyles request, to let MapServer generate its own SLD based on that. Labels are requested in this MapServer-generated SLD. But when I then send a GetMap request applying this SLD, the labels are not shown. Somehow the TextSymbolizer in the SLD is not translated into a label in the temporary mapfile. Does anyone have an idea what might be the problem here? I have not noticed any other problems with my new install of 6.2 beta1, and I'm not having this problem in version 6.0.1. Below is my original LAYER from the mapfile, the MapServer-generated SLD and finally the temporary LAYER from applying the SLD to a GetMap request. /LAYER #kommune NAME "kommune" TYPE polygon STATUS ON DATA "KOMMUNE" EXTENT 120000 5900000 1000000 6500000 MINSCALEDENOM 1 MAXSCALEDENOM 100000000 TEMPLATE "blank.html" LABELITEM "KOMNAVN" METADATA "wms_title" "Kommune" "wms_srs" "epsg:25832" "ows_include_items" "all" END #METADATA CLASS NAME "default" GROUP "default" LABEL COLOR 40 40 173 FONT "verdana" TYPE truetype SIZE 12 POSITION AUTO PARTIALS FALSE MINDISTANCE 100 MINFEATURESIZE auto END #LABEL STYLE OUTLINECOLOR 40 40 173 WIDTH 2 END #STYLE END #CLASS END #LAYER <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> <NamedLayer> <Name>kommune</Name> <UserStyle> <FeatureTypeStyle> <Rule> <Name>default</Name> <MinScaleDenominator>1.000000</MinScaleDenominator> <MaxScaleDenominator>100000000.000000</MaxScaleDenominator> <PolygonSymbolizer> <Stroke> <CssParameter name="stroke">#2828ad</CssParameter> <CssParameter name="stroke-width">2.00</CssParameter> </Stroke> </PolygonSymbolizer> <TextSymbolizer> <Label>KOMNAVN</Label> <CssParameter name="font-family">verdana</CssParameter> <CssParameter name="font-size">12.00</CssParameter> <LabelPlacement> <PointPlacement> <AnchorPoint> <AnchorPointX>0.5</AnchorPointX> <AnchorPointY>0.5</AnchorPointY> </AnchorPoint> </PointPlacement> </LabelPlacement> <Fill> <CssParameter name="fill">#2828ad</CssParameter> </Fill> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> LAYER DATA "KOMMUNE" EXTENT 120000 5900000 1000000 6500000 LABELITEM "KOMNAVN" MAXSCALEDENOM 1e+08 METADATA "wms_srs" "epsg:25832" "ows_include_items" "all" "wms_title" "Kommune" END # METADATA MINSCALEDENOM 1 NAME "kommune" STATUS ON TEMPLATE "blank.html" TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "default" MAXSCALEDENOM 1e+08 MINSCALEDENOM 1 STYLE ANGLE 0 OFFSET 0 0 POLAROFFSET 0 0 OUTLINECOLOR 40 40 173 END # STYLE TEXT ("[KOMNAVN]") END # CLASS END # LAYER/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-TextSymbolizer-in-6-1-dev-tp4984223p4990737.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Wed Jul 25 05:28:08 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 25 Jul 2012 14:28:08 +0200 Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev References: <1340802438165-4984223.post@n6.nabble.com><4FEC2540.9070108@ulb.ac.be> <1343215908788-4990737.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CB@KS-EVS1.smi.sachsen.de> > Does anyone have an idea what might be the problem here? Can you try with <Label><PropertyName>KOMNAVN</PropertyName></Label> instead of > <TextSymbolizer> > <Label>KOMNAVN</Label> > [...] > </TextSymbolizer> It seems msSLDParseTextParams() tries to read the string value of Label/PropertyName to build the expression but msSLDGenerateTextSLD() writes only Label with the LABELITEM as text content. HTH From jolni at KMS.dk Wed Jul 25 06:16:47 2012 From: jolni at KMS.dk (jlundnielsen) Date: Wed, 25 Jul 2012 06:16:47 -0700 (PDT) Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev Message-ID: <B01712FDD202F14FAD4690D529EB1551022E6C75@MIM-EXCDB002.res.adroot.dk> Thanks for joining in :-) Unfortunately it doesn't seem to make a difference adding the PropertyName tag inside the Label tag. ________________________________ Fra: Eichner, Andreas - SID-NLKM [via OSGeo.org] [mailto:ml-node+s1560n4990747h82 at n6.nabble.com] Sendt: 25. juli 2012 14:28 Til: Nielsen, Jonas Lund Emne: Re: SLD TextSymbolizer in 6.1-dev > Does anyone have an idea what might be the problem here? Can you try with <Label><PropertyName>KOMNAVN</PropertyName></Label> instead of > <TextSymbolizer> > <Label>KOMNAVN</Label> > [...] > </TextSymbolizer> It seems msSLDParseTextParams() tries to read the string value of Label/PropertyName to build the expression but msSLDGenerateTextSLD() writes only Label with the LABELITEM as text content. HTH _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users ________________________________ If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.n6.nabble.com/SLD-TextSymbolizer-in-6-1-dev-tp4984 223p4990747.html To unsubscribe from SLD TextSymbolizer in 6.1-dev, click here <http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsu bscribe_by_code&node=4984223&code=am9sbmlAS01TLmRrfDQ5ODQyMjN8NjY2MTMxNj c0> . NAML <http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macr o_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespac es.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.w eb.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemai l.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble% 3Aemail.naml> -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SV-SLD-TextSymbolizer-in-6-1-dev-tp4990757.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120725/24b3f7c0/attachment.htm> From Andreas.Eichner at sid.sachsen.de Wed Jul 25 06:59:24 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 25 Jul 2012 15:59:24 +0200 Subject: [mapserver-users] SLD TextSymbolizer in 6.1-dev References: <B01712FDD202F14FAD4690D529EB1551022E6C75@MIM-EXCDB002.res.adroot.dk> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CC@KS-EVS1.smi.sachsen.de> Sorry, missed the temporary map file... It misses everything that deals with the font and currently I guess the font related CssParameter should be enclosed by <Font>. <Font> <CssParameter name="font-family">verdana</CssParameter> <CssParameter name="font-size">12.00</CssParameter> </Font> > Thanks for joining in :-) > > Unfortunately it doesn't seem to make a difference adding the > PropertyName tag inside the Label tag. From jmckenna at gatewaygeomatics.com Wed Jul 25 07:30:41 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 25 Jul 2012 11:30:41 -0300 Subject: [mapserver-users] Mapserver as wms client In-Reply-To: <004f01cd69e9$9b8fee50$d2afcaf0$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> Message-ID: <50100311.9020201@gatewaygeomatics.com> On 12-07-24 7:13 PM, Sowmya Tiramdasu wrote: > Hi, > > > > I configures map server to act as a WMS Client. But it doesn't work as > expected. When i make a getMap request to my WMS server I get the right > image back but when I try to make it a layer through my map server it is > not working. > > > > I am using fiddler to see all the calls made to the server. I see the > request I am sending to the map server but do not see a request to my > WMS Server( I thought when Map server tries to consume the WMS server, > it sends a request to the WMS Server- which should be shown in fiddler) A very easy way to see all of the WMS requests, is to use the included "shp2img" commandline utility with the "-all_debug 5" option (http://www.mapserver.org/utilities/shp2img.html), MS4W users can call this utility after executing 'setenv.bat' in the same command window. For example, the command could be: shp2img -m demo_wms.map -o ttt.png -all_debug 5 and the results would be: msLoadMap(): 0.003s msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). HTTP: Starting to prepare HTTP requests. Using CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem HTTP request: id=0, http://demo.mapserver.org/cgi-bin /wms?LAYERS=country_bounds&REQUEST=Ge tMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=400 &BBOX=-180.451127819549,-135.338345864662,180.451127819549,135.338345864662&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=0, 1306 bytes) msHTTPWriteFct(id=0, 2748 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 0: 0.109 + 0.624 + 0.203 = 0.936s msDrawMap(): WMS/WFS set-up and query, 0.857s msDrawRasterLayerLow(country_bounds): entering. msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (country_bounds), 0.007s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.869s msSaveImage(ttt.png) total time: 0.009s msFreeMap(): freeing map at 026ED540. freeLayer(): freeing layer at 036C3850. shp2img total time: 0.886s I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Wed Jul 25 07:43:08 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 25 Jul 2012 14:43:08 +0000 Subject: [mapserver-users] FOSS4G North America 2013 Message-ID: <C549F0496453D842B4DD71AC8188DDC51C8EFB@055-CH1MPN1-042.055d.mgd.msft.net> May 22-24, 2013 FOSS4G North America 2013 Marriott City Center<http://www.marriott.com/hotels/travel/mspcc-minneapolis-marriott-city-center/> Minneapolis, MN - USA Today the 2013 FOSS4G North America Conference Committee announced that the 2013 FOSS4G North America Conference<http://foss4g-na.org/> (FOSS4G-NA) will take place May 22-24 at the Marriott City Center<http://www.marriott.com/hotels/travel/mspcc-minneapolis-marriott-city-center/> in Minneapolis, MN. FOSS4G brings together public and private-sector stakeholders, innovators and developers who are at the forefront of free and open source software for geospatial applications. FOSS4G-NA 2013 will offer a broad program to discuss and build tools to help solve some of the world's most pressing problems and business needs. Notably, 2013 marks the 10 year anniversary of the first MapServer Users Meeting in Minnesota, the immediate predecessor of the FOSS4G Conference Series. FOSS4G-NA 2013 follows on the success of the 2012 conference held in Washington, DC. This regional event complements the larger FOSS4G<http://www.foss4g.org/> International Conference, the leading global conference organized by OSGeo focusing on Free and Open Source Software for Geospatial. The 2013 FOSS4G International Conference<http://2013.foss4g.org/> i<http://2013.foss4g.org/>s currently scheduled for September 17-21 in Nottingham, UK. Sponsorship Exhibition and Sponsorship information will be made available shortly. If you're interested in exhibiting or sponsoring please email sponsors [at] foss4g-na [dot] org for more information. Related Links * http://foss4g-na.org/ FOSS4G North America * http://foss4g.org/ FOSS4G International Conference * http://osgeo.org/ Open Source Geospatial Foundation -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120725/deea1a16/attachment.htm> From lists at fuchsschwanzdomain.de Wed Jul 25 08:34:18 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Wed, 25 Jul 2012 15:34:18 +0000 (UTC) Subject: [mapserver-users] Resolution of PDF Output References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> <jumj21$jgt$1@ultimate100.geggus.net> <500ED352.1020106@swoodbridge.com> Message-ID: <jup3lq$fqj$1@ultimate100.geggus.net> Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > set the RESOLUTION to an appropriate value for your PDF. This does not work for PDF. Regardless of the RESOLUTION in the Mapfile the generated PDF Files are always generated with 72 DPI. Same with SVG BTW. Looks like all cairo output is affected. Should I report this as a bug? Sven -- "Ich f?rchte mich nicht vor der R?ckkehr der Faschisten in der Maske der Faschisten, sondern vor der R?ckkehr der Faschisten in der Maske der Demokraten" (Theodor W. Adorno) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From arueda at munisig.com Wed Jul 25 08:28:56 2012 From: arueda at munisig.com (Almudena Rueda MUNISIG, S.L.) Date: Wed, 25 Jul 2012 17:28:56 +0200 Subject: [mapserver-users] Segmentation Fault on php_mpscript processTemplate Message-ID: <AOEPJNNFEAAGHCNOEPFGKEEIDCAA.arueda@munisig.com> Hallo list, I?ve just install mapserver6.0.3 on openSuse 11, compiling all libraries and applications, this is the list of libs and apps. i've compiled: agg-2.5 curl-7.26.0 gdal-1.9.1 libxml2-2.8.0 freetype-2.4.10 geos-3.3.5 jpeg-6b PDFlib-Lite-7.0 proj-4.8.0 gd-2.0.28 giflib-4.1.6 libpng-1.5.12 zlib-1.2.7 httpd-2.4.2 pcre-8.30 apr-1.4.6 apr-util-1.4.1 php-5.4.4 After compiling and installing all, when I try to draw a map with php_mapscript and an html template and i get the image generate on the tmp directory of apache, but the template is not processed. In apache error_log file I get a segmentation fault error. I think the problem is in the processTemplate function. Does anybody help me please? Thanks in advance Almudena Rueda From stiramdasu at qcoherent.com Wed Jul 25 09:47:01 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 25 Jul 2012 11:47:01 -0500 Subject: [mapserver-users] Mapserver as wms client In-Reply-To: <50100311.9020201@gatewaygeomatics.com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> Message-ID: <006701cd6a85$1de9f940$59bdebc0$@com> Hi Jeff, Thanks for the reply. I think that should work. But, I am having a problem running the utility. The error is : The program can not start because libmap.dll is missing from your computer. Try reinstalling the program to fix the problem. I went and checked in my C:\ms4w\Apache\cgi-bin folder and libmap.dll is present. I also ran the setenv.bat before running the utility. Can you please guide me how to get this utility running? Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, July 25, 2012 9:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client On 12-07-24 7:13 PM, Sowmya Tiramdasu wrote: > Hi, > > > > I configures map server to act as a WMS Client. But it doesn't work as > expected. When i make a getMap request to my WMS server I get the right > image back but when I try to make it a layer through my map server it is > not working. > > > > I am using fiddler to see all the calls made to the server. I see the > request I am sending to the map server but do not see a request to my > WMS Server( I thought when Map server tries to consume the WMS server, > it sends a request to the WMS Server- which should be shown in fiddler) A very easy way to see all of the WMS requests, is to use the included "shp2img" commandline utility with the "-all_debug 5" option (http://www.mapserver.org/utilities/shp2img.html), MS4W users can call this utility after executing 'setenv.bat' in the same command window. For example, the command could be: shp2img -m demo_wms.map -o ttt.png -all_debug 5 and the results would be: msLoadMap(): 0.003s msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). HTTP: Starting to prepare HTTP requests. Using CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem HTTP request: id=0, http://demo.mapserver.org/cgi-bin /wms?LAYERS=country_bounds&REQUEST=Ge tMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG: 4326&WIDTH=400 &BBOX=-180.451127819549,-135.338345864662,180.451127819549,135.338345864662& TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=0, 1306 bytes) msHTTPWriteFct(id=0, 2748 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 0: 0.109 + 0.624 + 0.203 = 0.936s msDrawMap(): WMS/WFS set-up and query, 0.857s msDrawRasterLayerLow(country_bounds): entering. msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (country_bounds), 0.007s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.869s msSaveImage(ttt.png) total time: 0.009s msFreeMap(): freeing map at 026ED540. freeLayer(): freeing layer at 036C3850. shp2img total time: 0.886s I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Wed Jul 25 10:04:31 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 25 Jul 2012 12:04:31 -0500 Subject: [mapserver-users] Mapserver as wms client In-Reply-To: <006701cd6a85$1de9f940$59bdebc0$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> Message-ID: <006801cd6a87$90d32ba0$b27982e0$@com> Hi Jeff, Sorry for the previous email. I got the Utility running now. I am checking where the problem is . Will let you know if I have further questions. Thank you very much for your help! Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Wednesday, July 25, 2012 11:47 AM To: 'Jeff McKenna'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client Hi Jeff, Thanks for the reply. I think that should work. But, I am having a problem running the utility. The error is : The program can not start because libmap.dll is missing from your computer. Try reinstalling the program to fix the problem. I went and checked in my C:\ms4w\Apache\cgi-bin folder and libmap.dll is present. I also ran the setenv.bat before running the utility. Can you please guide me how to get this utility running? Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, July 25, 2012 9:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client On 12-07-24 7:13 PM, Sowmya Tiramdasu wrote: > Hi, > > > > I configures map server to act as a WMS Client. But it doesn't work as > expected. When i make a getMap request to my WMS server I get the right > image back but when I try to make it a layer through my map server it is > not working. > > > > I am using fiddler to see all the calls made to the server. I see the > request I am sending to the map server but do not see a request to my > WMS Server( I thought when Map server tries to consume the WMS server, > it sends a request to the WMS Server- which should be shown in fiddler) A very easy way to see all of the WMS requests, is to use the included "shp2img" commandline utility with the "-all_debug 5" option (http://www.mapserver.org/utilities/shp2img.html), MS4W users can call this utility after executing 'setenv.bat' in the same command window. For example, the command could be: shp2img -m demo_wms.map -o ttt.png -all_debug 5 and the results would be: msLoadMap(): 0.003s msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). HTTP: Starting to prepare HTTP requests. Using CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem HTTP request: id=0, http://demo.mapserver.org/cgi-bin /wms?LAYERS=country_bounds&REQUEST=Ge tMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG: 4326&WIDTH=400 &BBOX=-180.451127819549,-135.338345864662,180.451127819549,135.338345864662& TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=0, 1306 bytes) msHTTPWriteFct(id=0, 2748 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 0: 0.109 + 0.624 + 0.203 = 0.936s msDrawMap(): WMS/WFS set-up and query, 0.857s msDrawRasterLayerLow(country_bounds): entering. msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (country_bounds), 0.007s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.869s msSaveImage(ttt.png) total time: 0.009s msFreeMap(): freeing map at 026ED540. freeLayer(): freeing layer at 036C3850. shp2img total time: 0.886s I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Jul 25 10:18:56 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 25 Jul 2012 13:18:56 -0400 Subject: [mapserver-users] Resolution of PDF Output In-Reply-To: <jup3lq$fqj$1@ultimate100.geggus.net> References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> <jumj21$jgt$1@ultimate100.geggus.net> <500ED352.1020106@swoodbridge.com> <jup3lq$fqj$1@ultimate100.geggus.net> Message-ID: <50102A80.1090101@swoodbridge.com> On 7/25/2012 11:34 AM, Sven Geggus wrote: > Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > >> set the RESOLUTION to an appropriate value for your PDF. > > This does not work for PDF. Regardless of the RESOLUTION in the Mapfile the > generated PDF Files are always generated with 72 DPI. > > Same with SVG BTW. Looks like all cairo output is affected. Should I report > this as a bug? > > Sven > Hi Sven, What version are you using? have you tried this with the 6.2-beta? Sounds like this should be reported as a bug if it does not already have a ticket and post the bug number here so people can add themselves to the cc list to track it. Hi Thomas, Is this a known issue? Is it resolved in 6.2 or is there a work around. Thanks, -Steve W From stiramdasu at qcoherent.com Wed Jul 25 10:35:05 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 25 Jul 2012 12:35:05 -0500 Subject: [mapserver-users] Mapserver as wms client error trace In-Reply-To: <006801cd6a87$90d32ba0$b27982e0$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> <006801cd6a87$90d32ba0$b27982e0$@com> Message-ID: <006901cd6a8b$d4b3e450$7e1bacf0$@com> Hi, I checked the trace after running the shp2img.exe. I see that there is no call made to my wms server. There is a re-projection error seems like. All the ortho images and output from shape files is coming good.Only the layer from my WMS server is not being rendered. Here is my mapfile and the error log. MAPFILE_________________________________________________________ MAP IMAGETYPE PNG EXTENT 1525556.83 190608.70 1547770.63 207656.82 # LAEA SIZE 984 660 SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" IMAGECOLOR 232 32 132 FONTSET "../fonts/fonts.list" PROJECTION "proj=utm" "zone=17" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://localhost:8080/keenland?" "wms_srs" "espg:32617" END END LAYER NAME "lidar" TYPE RASTER STATUS ON CONNECTION "http://localhost:8080/keenland?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:32617" "wms_name" "Contours,Points,Boundaries" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_latlonboundingbox" "1517852.6794090855 186462.90718181827 1555978.4750454489 212035.08718181826" "wms_width" "984" "wms_height" "660" END PROJECTION "init=epsg:32617" END END LAYER NAME "image" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0002.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0003.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0004.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0005.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0006.tif" OPACITY 100 END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0007.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0008.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0009.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0010.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0011.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0012.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0013.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0014.tif" END # LAYER LAYER NAME "image1" TYPE RASTER STATUS DEFAULT DATA "raster/lo-0015.tif" END # LAYER LAYER NAME ControlPoints #Photogrammetric points DATA Photogrammetric_Point STATUS DEFAULT TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 6 # Colour (RGB) - red COLOR 255 0 0 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END END LAYER NAME projections #Photogrammetric points DATA SBET_Trajectory_Source STATUS DEFAULT TYPE LINE CLASS STYLE # Colour (RGB) - red COLOR 150 0 0 WIDTH 5.0 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END END DEBUG 5 CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" END # Map File ___________________ERROR LOG__________________________________________ [Wed Jul 25 12:13:17 2012].80000 msLoadMap(): 0.017s [Wed Jul 25 12:13:17 2012].81000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Jul 25 12:13:17 2012].88000 msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps. [Wed Jul 25 12:13:17 2012].88000 msDrawMap(): WMS/WFS set-up and query, 0.007s [Wed Jul 25 12:13:17 2012].88000 msDrawMap(): Layer 0 (lidar), 0.000s [Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerLow(image): entering. [Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=277,0,215,165 [Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): source raster PL (-3.301,-4.902) for dst PL (277,0). [Wed Jul 25 12:13:17 2012].90000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].91000 msDrawMap(): Layer 1 (image), 0.003s [Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=491,0,216,165 [Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): source raster PL (-9.856,-4.902) for dst PL (491,0). [Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].92000 msDrawMap(): Layer 2 (image1), 0.001s [Wed Jul 25 12:13:17 2012].92000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): src=0,0,2223,1706, dst=706,0,215,165 [Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): source raster PL (-6.063,-4.902) for dst PL (706,0). [Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].94000 msDrawMap(): Layer 3 (image1), 0.002s [Wed Jul 25 12:13:17 2012].94000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): src=0,0,2223,1705, dst=62,165,215,165 [Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): source raster PL (-6.093,-2.503) for dst PL (62,165). [Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].96000 msDrawMap(): Layer 4 (image1), 0.002s [Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): src=0,0,2222,1705, dst=277,165,215,165 [Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): source raster PL (-3.301,-2.503) for dst PL (277,165). [Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].98000 msDrawMap(): Layer 5 (image1), 0.002s [Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): src=0,0,2222,1705, dst=491,165,216,165 [Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): source raster PL (-9.856,-2.503) for dst PL (491,165). [Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].99000 msDrawMap(): Layer 6 (image1), 0.001s [Wed Jul 25 12:13:17 2012].99000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): src=0,0,2223,1705, dst=706,165,215,165 [Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): source raster PL (-6.063,-2.503) for dst PL (706,165). [Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].101000 msDrawMap(): Layer 7 (image1), 0.002s [Wed Jul 25 12:13:17 2012].101000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): src=0,0,2223,1706, dst=62,329,215,166 [Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): source raster PL (-6.093,-9.452) for dst PL (62,329). [Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].103000 msDrawMap(): Layer 8 (image1), 0.002s [Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=277,329,215,166 [Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): source raster PL (-3.301,-9.452) for dst PL (277,329). [Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].105000 msDrawMap(): Layer 9 (image1), 0.002s [Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=491,329,216,166 [Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): source raster PL (-9.856,-9.452) for dst PL (491,329). [Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].106000 msDrawMap(): Layer 10 (image1), 0.001s [Wed Jul 25 12:13:17 2012].106000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): src=0,0,2223,1706, dst=706,329,215,166 [Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): source raster PL (-6.063,-9.452) for dst PL (706,329). [Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].108000 msDrawMap(): Layer 11 (image1), 0.002s [Wed Jul 25 12:13:17 2012].108000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): src=0,0,2223,1706, dst=62,494,215,166 [Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): source raster PL (-6.093,-7.053) for dst PL (62,494). [Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].110000 msDrawMap(): Layer 12 (image1), 0.002s [Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=277,494,215,166 [Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): source raster PL (-3.301,-7.053) for dst PL (277,494). [Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].112000 msDrawMap(): Layer 13 (image1), 0.002s [Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerLow(image1): entering. [Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): Entering transform. [Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): src=0,0,2222,1706, dst=491,494,216,166 [Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): source raster PL (-9.856,-7.053) for dst PL (491,494). [Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Wed Jul 25 12:13:17 2012].113000 msDrawMap(): Layer 14 (image1), 0.001s [Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Layer 15 (ControlPoints), 0.001s [Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Layer 16 (projections), 0.000s [Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul 25 12:13:17 2012].114000 msDrawMap() total time: 0.034s [Wed Jul 25 12:13:17 2012].339000 msSaveImage(C:\ms4w\apps\tutorial\htdocs\ttt.png) total time: 0.225s [Wed Jul 25 12:13:17 2012].340000 msFreeMap(): freeing map at 03AE8FE8. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AEFF48. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF1E58. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF2780. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF3100. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF3A80. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF61F0. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF6960. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF70D0. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF7840. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF7FF8. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF8768. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF8E80. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFA598. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFACB0. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFB3C8. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFBAE0. [Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFC5D8. [Wed Jul 25 12:13:17 2012].340000 shp2img total time: 0.277s I hope someone can please help me with this. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: Sowmya Tiramdasu [mailto:stiramdasu at qcoherent.com] Sent: Wednesday, July 25, 2012 12:05 PM To: 'Sowmya Tiramdasu'; 'Jeff McKenna'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver as wms client Hi Jeff, Sorry for the previous email. I got the Utility running now. I am checking where the problem is . Will let you know if I have further questions. Thank you very much for your help! Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Wednesday, July 25, 2012 11:47 AM To: 'Jeff McKenna'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client Hi Jeff, Thanks for the reply. I think that should work. But, I am having a problem running the utility. The error is : The program can not start because libmap.dll is missing from your computer. Try reinstalling the program to fix the problem. I went and checked in my C:\ms4w\Apache\cgi-bin folder and libmap.dll is present. I also ran the setenv.bat before running the utility. Can you please guide me how to get this utility running? Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, July 25, 2012 9:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client On 12-07-24 7:13 PM, Sowmya Tiramdasu wrote: > Hi, > > > > I configures map server to act as a WMS Client. But it doesn't work as > expected. When i make a getMap request to my WMS server I get the right > image back but when I try to make it a layer through my map server it is > not working. > > > > I am using fiddler to see all the calls made to the server. I see the > request I am sending to the map server but do not see a request to my > WMS Server( I thought when Map server tries to consume the WMS server, > it sends a request to the WMS Server- which should be shown in fiddler) A very easy way to see all of the WMS requests, is to use the included "shp2img" commandline utility with the "-all_debug 5" option (http://www.mapserver.org/utilities/shp2img.html), MS4W users can call this utility after executing 'setenv.bat' in the same command window. For example, the command could be: shp2img -m demo_wms.map -o ttt.png -all_debug 5 and the results would be: msLoadMap(): 0.003s msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG). HTTP: Starting to prepare HTTP requests. Using CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem HTTP request: id=0, http://demo.mapserver.org/cgi-bin /wms?LAYERS=country_bounds&REQUEST=Ge tMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG: 4326&WIDTH=400 &BBOX=-180.451127819549,-135.338345864662,180.451127819549,135.338345864662& TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage HTTP: Before download loop msHTTPWriteFct(id=0, 1306 bytes) msHTTPWriteFct(id=0, 2748 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) Layer 0: 0.109 + 0.624 + 0.203 = 0.936s msDrawMap(): WMS/WFS set-up and query, 0.857s msDrawRasterLayerLow(country_bounds): entering. msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (country_bounds), 0.007s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.869s msSaveImage(ttt.png) total time: 0.009s msFreeMap(): freeing map at 026ED540. freeLayer(): freeing layer at 036C3850. shp2img total time: 0.886s I hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Wed Jul 25 12:25:02 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 25 Jul 2012 20:25:02 +0100 Subject: [mapserver-users] Mapserver Template - Conditionals In-Reply-To: <5945BFD8BD8B4E2E89E7EDE23D8B21B8@DELLM4500> Message-ID: <FC0CED76113A43F7B9936ED901DDF207@DELLM4500> Hi List, A few questions/points on templating: 1. I know it's possible to use "item" in a template as follows: [item name="featurecode" pattern="10021" format="<osgb:theme>Buildings</osgb:theme><osgb:descriptiveGroup>Building</o sgb:descriptiveGroup>" escape=none] But, is it possible to do something like: [item featurecode="10021" pattern="1" AND item lineitem="12345" pattern="2" format="....."] That is, returns true of both, or more, criteria are met. The only other way I can think of doing this is in the SQL query that runs on the layer. 2. Also, when I use use [item ...] and the criteria isn't met, it still causes an additional blank line to be created in the output file. It would be quite good if it did not create the cr/lf. Maybe nullformat could be used to enforce this in some way but nullformat="" still creates a blank line. 3. It would be nice if the item tag could also deal with a case/select statement e.g. [item name="A" pattern="1" format="Output1"] ELSE [item name="B" pattern="2" format="Output2"] ELSE [item name="C" pattern="3" format="Output3"] DEFAULT [item name="D" pattern="4" format="Output4"] 4. And finally, when using: [resultset layer=LayerName] [feature] Two blank lines are created in the output file. It would be good if these tags didn't do that. Many thanks. Regards, Donald From jmckenna at gatewaygeomatics.com Wed Jul 25 13:18:28 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 25 Jul 2012 17:18:28 -0300 Subject: [mapserver-users] Mapserver as wms client error trace In-Reply-To: <006901cd6a8b$d4b3e450$7e1bacf0$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> <006801cd6a87$90d32ba0$b27982e0$@com> <006901cd6a8b$d4b3e450$7e1bacf0$@com> Message-ID: <50105494.9090009@gatewaygeomatics.com> Hello Sowmya, Next I would probably test by adding a known working WMS server into your mapfile: you can use the exact example from the docs here (just add a projection object) http://www.mapserver.org/ogc/wms_client.html#adding-a-wms-layer If shp2img shows a GetMap for that new layer, then you know it's a problem with your WMS Server (or a problem regarding coordinates). If all else fails, make a copy of your mapfile, then remove all other layers from it, and any projection objects, and make sure your EXTENT and UNITS match the coordinates of your WMS layer. (yes projections are the hardest part of web mapping) Good luck, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-25 2:35 PM, Sowmya Tiramdasu wrote: > Hi, > > I checked the trace after running the shp2img.exe. I see that there is no > call made to my wms server. There is a re-projection error seems like. All > the ortho images and output from shape files is coming good.Only the layer > from my WMS server is not being rendered. Here is my mapfile and the error > log. > From stiramdasu at qcoherent.com Wed Jul 25 13:49:48 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 25 Jul 2012 15:49:48 -0500 Subject: [mapserver-users] Mapserver as wms client error trace In-Reply-To: <50105494.9090009@gatewaygeomatics.com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> <006801cd6a87$90d32ba0$b27982e0$@com> <006901cd6a8b$d4b3e450$7e1bacf0$@com> <50105494.9090009@gatewaygeomatics.com> Message-ID: <007a01cd6aa7$087a2e00$196e8a00$@com> Hi Jeff, Thanks for your reply. Yes, I tried the example ones and it works fine. The problem is only with my WMS Server. The data I have( shape files, ortho images and the Las file[This is being rendered by my WMS Server]) are all in the same projection and I gave the extents of the map also accordingly. With the same projection and extents I am able to render the ortho images and shape files using map server, but not able to render the image from my WMS Server. How can I check if my extents are right and the projection information I provided is right ? Are there any Tips or best practices to achieve this? Also, can you guide me to a good tutorial where I can understand all this projection stuff. I am fairly new to GIS domain. Thanks again for your patience in trying to help me. Appreciate your help. Regards, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, July 25, 2012 3:18 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client error trace Hello Sowmya, Next I would probably test by adding a known working WMS server into your mapfile: you can use the exact example from the docs here (just add a projection object) http://www.mapserver.org/ogc/wms_client.html#adding-a-wms-layer If shp2img shows a GetMap for that new layer, then you know it's a problem with your WMS Server (or a problem regarding coordinates). If all else fails, make a copy of your mapfile, then remove all other layers from it, and any projection objects, and make sure your EXTENT and UNITS match the coordinates of your WMS layer. (yes projections are the hardest part of web mapping) Good luck, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-25 2:35 PM, Sowmya Tiramdasu wrote: > Hi, > > I checked the trace after running the shp2img.exe. I see that there is no > call made to my wms server. There is a re-projection error seems like. All > the ortho images and output from shape files is coming good.Only the layer > from my WMS server is not being rendered. Here is my mapfile and the error > log. > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Wed Jul 25 15:16:12 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 25 Jul 2012 17:16:12 -0500 Subject: [mapserver-users] Mapserver as wms client error trace In-Reply-To: <007a01cd6aa7$087a2e00$196e8a00$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> <006801cd6a87$90d32ba0$b27982e0$@com> <006901cd6a8b$d4b3e450$7e1bacf0$@com> <50105494.9090009@gatewaygeomatics.com> <007a01cd6aa7$087a2e00$196e8a00$@com> Message-ID: <008601cd6ab3$19e4d5d0$4dae8170$@com> Hi Jeff, Just to let you know. I got it working :) The problem was with an entry in the shape file. Under the WMS meta data , I gave wms_latlonboundingbox value as my extent. Ideally it should have been wms_extent feature. So was this projection problem. Thanks again for all your guidance, I learnt many things! Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Wednesday, July 25, 2012 3:50 PM To: 'Jeff McKenna'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client error trace Hi Jeff, Thanks for your reply. Yes, I tried the example ones and it works fine. The problem is only with my WMS Server. The data I have( shape files, ortho images and the Las file[This is being rendered by my WMS Server]) are all in the same projection and I gave the extents of the map also accordingly. With the same projection and extents I am able to render the ortho images and shape files using map server, but not able to render the image from my WMS Server. How can I check if my extents are right and the projection information I provided is right ? Are there any Tips or best practices to achieve this? Also, can you guide me to a good tutorial where I can understand all this projection stuff. I am fairly new to GIS domain. Thanks again for your patience in trying to help me. Appreciate your help. Regards, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Wednesday, July 25, 2012 3:18 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver as wms client error trace Hello Sowmya, Next I would probably test by adding a known working WMS server into your mapfile: you can use the exact example from the docs here (just add a projection object) http://www.mapserver.org/ogc/wms_client.html#adding-a-wms-layer If shp2img shows a GetMap for that new layer, then you know it's a problem with your WMS Server (or a problem regarding coordinates). If all else fails, make a copy of your mapfile, then remove all other layers from it, and any projection objects, and make sure your EXTENT and UNITS match the coordinates of your WMS layer. (yes projections are the hardest part of web mapping) Good luck, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-25 2:35 PM, Sowmya Tiramdasu wrote: > Hi, > > I checked the trace after running the shp2img.exe. I see that there is no > call made to my wms server. There is a re-projection error seems like. All > the ortho images and output from shape files is coming good.Only the layer > from my WMS server is not being rendered. Here is my mapfile and the error > log. > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Jul 25 15:29:19 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 25 Jul 2012 19:29:19 -0300 Subject: [mapserver-users] Mapserver as wms client error trace In-Reply-To: <008601cd6ab3$19e4d5d0$4dae8170$@com> References: <004f01cd69e9$9b8fee50$d2afcaf0$@com> <50100311.9020201@gatewaygeomatics.com> <006701cd6a85$1de9f940$59bdebc0$@com> <006801cd6a87$90d32ba0$b27982e0$@com> <006901cd6a8b$d4b3e450$7e1bacf0$@com> <50105494.9090009@gatewaygeomatics.com> <007a01cd6aa7$087a2e00$196e8a00$@com> <008601cd6ab3$19e4d5d0$4dae8170$@com> Message-ID: <5010733F.10907@gatewaygeomatics.com> Great news Sowmya! (I can go happily enjoy my dinner now ha) And welcome to the world of MapServer! (fun isn't it?! you're going to fall in love) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-25 7:16 PM, Sowmya Tiramdasu wrote: > Hi Jeff, > > Just to let you know. I got it working :) > > The problem was with an entry in the shape file. Under the WMS meta data , I > gave wms_latlonboundingbox value as my extent. Ideally it should have been > wms_extent feature. So was this projection problem. > > Thanks again for all your guidance, I learnt many things! > > Thanks, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya > Tiramdasu > Sent: Wednesday, July 25, 2012 3:50 PM > To: 'Jeff McKenna'; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver as wms client error trace > > Hi Jeff, > > Thanks for your reply. Yes, I tried the example ones and it works fine. The > problem is only with my WMS Server. The data I have( shape files, ortho > images and the Las file[This is being rendered by my WMS Server]) are all in > the same projection and I gave the extents of the map also accordingly. With > the same projection and extents I am able to render the ortho images and > shape files using map server, but not able to render the image from my WMS > Server. > > How can I check if my extents are right and the projection information I > provided is right ? Are there any Tips or best practices to achieve this? > Also, can you guide me to a good tutorial where I can understand all this > projection stuff. I am fairly new to GIS domain. > > Thanks again for your patience in trying to help me. Appreciate your help. > > Regards, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Wednesday, July 25, 2012 3:18 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver as wms client error trace > > Hello Sowmya, > > Next I would probably test by adding a known working WMS server into > your mapfile: you can use the exact example from the docs here (just add > a projection object) > http://www.mapserver.org/ogc/wms_client.html#adding-a-wms-layer If > shp2img shows a GetMap for that new layer, then you know it's a problem > with your WMS Server (or a problem regarding coordinates). > > If all else fails, make a copy of your mapfile, then remove all other > layers from it, and any projection objects, and make sure your EXTENT > and UNITS match the coordinates of your WMS layer. > > (yes projections are the hardest part of web mapping) > > Good luck, > > -jeff > > > From osgeo at janos.szatmary.name Wed Jul 25 19:17:38 2012 From: osgeo at janos.szatmary.name (geojohn) Date: Wed, 25 Jul 2012 19:17:38 -0700 (PDT) Subject: [mapserver-users] MapServer/GDAL Debug for Overview Selection Message-ID: <1343269058605-4990922.post@n6.nabble.com> I have a map which has both a color elevation and a relief. They both have 8 power of 2 overviews. At some point MapServer/GDAL switches from using an overview to using the full resolution version. This doesn't appear to happen at the right time. That is, everything looks fine, and at some point it switches to full resolution and the relief is no longer prominent enough. I turned on every debug option I could find, but GDAL doesn't seem to output which overview it's actually using. The debug messages show that the overviews are opened, but there's no message showing which was selected. Is there any way to debug this? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-GDAL-Debug-for-Overview-Selection-tp4990922.html Sent from the Mapserver - User mailing list archive at Nabble.com. From K.Hirst at bom.gov.au Wed Jul 25 20:59:50 2012 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Thu, 26 Jul 2012 13:59:50 +1000 Subject: [mapserver-users] Polygon Fill with text in MapServer 6.0.3 [SEC=UNCLASSIFIED] Message-ID: <F6B9883A73AC594592041E20C59A484601C3A940A833@BOM-VMBX-HO.bom.gov.au> Dear List, In MapServer 5.4.2, I had defined a symbol as follows: SYMBOL NAME "IDR68" TYPE TRUETYPE FONT "arial" CHARACTER "No data" GAP 2 END and used it as a polygon fill for a layer CLASS STYLE SYMBOL "IDR68" COLOR 0 0 0 OUTLINECOLOR 0 0 0 SIZE 12 END END In migrating to MapServer 6.0.3, I have done the following: SYMBOL NAME "IDR68" TYPE TRUETYPE FONT "arial" CHARACTER "No data" END and in the layer CLASS STYLE SYMBOL "IDR68" COLOR 0 0 0 SIZE 12 GAP 2 END STYLE OUTLINECOLOR 0 0 0 END END Instead of filling the polygon with "No data", I only get a fill with the first character ie "N". Is there a way to fill a polygon with text in MapServer 6.0?? Thanks Kathleen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120726/ffa62842/attachment.htm> From stiramdasu at qcoherent.com Thu Jul 26 07:22:25 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Thu, 26 Jul 2012 09:22:25 -0500 Subject: [mapserver-users] On the fly Projection Message-ID: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> Hi, I have a projection given as follows : GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS _1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174 532925199433]] How can I specify this under the PROJECTION in mapfile and also I would like to project this on to epsg : 32617. How can I achieve this. Any help will be appreciated. Thanks in advance! Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax <http://www.geocue.com/> www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120726/de256a11/attachment.htm> From lists at fuchsschwanzdomain.de Thu Jul 26 07:55:58 2012 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Thu, 26 Jul 2012 14:55:58 +0000 (UTC) Subject: [mapserver-users] Resolution of PDF Output References: <juls29$amq$2@ultimate100.geggus.net> <CAOM3y2jp2vaPcpt8W0zOK7k5JLNoAAiOyYPX8Ft7NA8mXW06og@mail.gmail.com> <jumj21$jgt$1@ultimate100.geggus.net> <500ED352.1020106@swoodbridge.com> <jup3lq$fqj$1@ultimate100.geggus.net> <50102A80.1090101@swoodbridge.com> Message-ID: <jurlpu$c3d$1@ultimate100.geggus.net> Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > What version are you using? Have been using some git trunk back from may because of the GAMMA Option I needed for Ocean Polygons. > have you tried this with the 6.2-beta? Just updated to latest trunk to check if the problem still exists and unfortunately it does. To clarify what this bug is all about: It is not about mapserer not honoring the DPI given in the mapfile (it does), but about the generated file (pdf/svg) not knowing about this value. This results in PDF Files which are way to huge in terms of real-world length units. > Sounds like this should be reported as a bug if it does not already have > a ticket and post the bug number here so people can add themselves to > the cc list to track it. I will just have a look at the bugtracker if there is something like this already reported. Sven -- "If you don't make lower-resolution mapping data publicly available, there will be people with their cars and GPS devices, driving around with their laptops" (Tim Berners-Lee) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From jmckenna at gatewaygeomatics.com Thu Jul 26 08:02:58 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 26 Jul 2012 12:02:58 -0300 Subject: [mapserver-users] On the fly Projection In-Reply-To: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> References: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> Message-ID: <50115C22.50009@gatewaygeomatics.com> Hello Sowmya, A really helpful site for searching for projections and then different syntax examples for them is: http://spatialreference.org Yours might be here: http://spatialreference.org/ref/sr-org/15/ Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-26 11:22 AM, Sowmya Tiramdasu wrote: > Hi, > > > > I have a projection given as follows : > > > > GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]] > > > > How can I specify this under the PROJECTION in mapfile and also I would > like to project this on to epsg : 32617. How can I achieve this. > > > > Any help will be appreciated. Thanks in advance! > > > > Thanks, > > Sowmya. > > *_______________________________* > > Sowmya Tiramdasu > > *QCoherent Software* > > 9668 Madison Blvd., Suite 202 > > Madison, AL 35758 > > (256) 461-8289 Telephone > > (256) 461-8249 Fax > > www.geocue.com <http://www.geocue.com/> > > From stiramdasu at qcoherent.com Thu Jul 26 12:51:56 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Thu, 26 Jul 2012 14:51:56 -0500 Subject: [mapserver-users] On the fly Projection In-Reply-To: <50115C22.50009@gatewaygeomatics.com> References: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> <50115C22.50009@gatewaygeomatics.com> Message-ID: <00aa01cd6b68$1d3bedd0$57b3c970$@com> Hi Jeff, Thanks for the references you provided . I gave the output projections under the MAP section and the LAYER Projection under the layer section. But I am not sure what is the error. The projection is not happening correctly. I do not see any specific errors in the log file also. Below are the details of my two different shape files. I want the SBET_Trajectory_source to be projected in to the Photogrammetric_point's projection. ---------------------------------------------------------------------------- ----------- Layer name: Photogrammetric_Point Geometry: 3D Point Feature Count: 33 Extent: (1532496.038000, 197080.590000) - (1543965.215000, 203467.824241) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Kentucky_North_FIPS_1601_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101004]], PRIMEM["Greenwich",0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",1640416.66666667], PARAMETER["False_Northing",0], PARAMETER["Central_Meridian",-84.25], PARAMETER["Standard_Parallel_1",37.9666666666667], PARAMETER["Standard_Parallel_2",38.9666666666667], PARAMETER["Latitude_Of_Origin",37.5], UNIT["Foot_US",0.304800609601219]] Name: String (254.0) Desc: String (254.0) EntityType: String (254.0) EntTypDesc: String (254.0) ID: Real (11.0) GUID: String (254.0) LyrName: String (254.0) LyrDesc: String (254.0) CentroidX: Real (18.9) CentroidY: Real (18.9) CentroidZ: Real (18.9) C:\ms4w\tools\gdal-ogr>ogrinfo C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source .shp SBET_Trajectory_Source -summary INFO: Open of `C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source.shp' using driver `ESRI Shapefile' successful. Layer name: SBET_Trajectory_Source Geometry: 3D Line String Feature Count: 1 Extent: (-84.760205, 37.880771) - (-84.333587, 38.208327) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101004]], PRIMEM["Greenwich",0], UNIT["Degree",0.0174532925199433]] Name: String (254.0) Desc: String (254.0) EntityType: String (254.0) EntTypDesc: String (254.0) ID: Real (11.0) GUID: String (254.0) LyrName: String (254.0) LyrDesc: String (254.0) NumVerts: Real (11.0) EntLength: Real (18.9) LengthUnit: String (254.0) ---------------------------------------------------------------------------- ---------------------------- The projections I mentioned in my mapfile are : The output projection : PROJECTION "proj=utm" "zone=17" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END SBET_Trajectory_Source projection : PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END -------------------------------------------------------------- Can you identify where I am going wrong ? I am kind of stuck , don't have any clues why it is not working. Thanks again for all your time and patience in helping me. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Thursday, July 26, 2012 10:03 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] On the fly Projection Hello Sowmya, A really helpful site for searching for projections and then different syntax examples for them is: http://spatialreference.org Yours might be here: http://spatialreference.org/ref/sr-org/15/ Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-07-26 11:22 AM, Sowmya Tiramdasu wrote: > Hi, > > > > I have a projection given as follows : > > > > GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS _1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174 532925199433]] > > > > How can I specify this under the PROJECTION in mapfile and also I would > like to project this on to epsg : 32617. How can I achieve this. > > > > Any help will be appreciated. Thanks in advance! > > > > Thanks, > > Sowmya. > > *_______________________________* > > Sowmya Tiramdasu > > *QCoherent Software* > > 9668 Madison Blvd., Suite 202 > > Madison, AL 35758 > > (256) 461-8289 Telephone > > (256) 461-8249 Fax > > www.geocue.com <http://www.geocue.com/> > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Thu Jul 26 13:47:13 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 26 Jul 2012 14:47:13 -0600 Subject: [mapserver-users] On the fly Projection In-Reply-To: <00aa01cd6b68$1d3bedd0$57b3c970$@com> References: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> <50115C22.50009@gatewaygeomatics.com> <00aa01cd6b68$1d3bedd0$57b3c970$@com> Message-ID: <CAHBySPaAM1Uk1S4NJW8p18Q=HBH-xgAQpMScqNZGoQwcRv5DTw@mail.gmail.com> It looks like your imagery is EPSG:2246 and your SBET_Trajectory_Source is EPSG:4269 So keep it simple to start with: 1. Set your map to EPSG:2246 2. Set your map extents to the ones for the imagery 1532496.038000, 197080.590000 1543965.215000, 203467.824241 3. Set your SBET_Trajectory_Source to EPSG:4269 See if you get acceptable results. Rich On Thu, Jul 26, 2012 at 1:51 PM, Sowmya Tiramdasu <stiramdasu at qcoherent.com> wrote: > Hi Jeff, > > Thanks for the references you provided . I gave the output projections > under the MAP section and the LAYER Projection under the layer section. But > I am not sure what is the error. The projection is not happening correctly. > I do not see any specific errors in the log file also. > > Below are the details of my two different shape files. I want the > SBET_Trajectory_source to be projected in to the Photogrammetric_point's > projection. > > ---------------------------------------------------------------------------- > ----------- > Layer name: Photogrammetric_Point > Geometry: 3D Point > Feature Count: 33 > Extent: (1532496.038000, 197080.590000) - (1543965.215000, 203467.824241) > Layer SRS WKT: > PROJCS["NAD_1983_StatePlane_Kentucky_North_FIPS_1601_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137,298.257222101004]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Lambert_Conformal_Conic_2SP"], > PARAMETER["False_Easting",1640416.66666667], > PARAMETER["False_Northing",0], > PARAMETER["Central_Meridian",-84.25], > PARAMETER["Standard_Parallel_1",37.9666666666667], > PARAMETER["Standard_Parallel_2",38.9666666666667], > PARAMETER["Latitude_Of_Origin",37.5], > UNIT["Foot_US",0.304800609601219]] > Name: String (254.0) > Desc: String (254.0) > EntityType: String (254.0) > EntTypDesc: String (254.0) > ID: Real (11.0) > GUID: String (254.0) > LyrName: String (254.0) > LyrDesc: String (254.0) > CentroidX: Real (18.9) > CentroidY: Real (18.9) > CentroidZ: Real (18.9) > > C:\ms4w\tools\gdal-ogr>ogrinfo > C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source > .shp SBET_Trajectory_Source -summary > INFO: Open of `C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source.shp' > using driver `ESRI Shapefile' successful. > > Layer name: SBET_Trajectory_Source > Geometry: 3D Line String > Feature Count: 1 > Extent: (-84.760205, 37.880771) - (-84.333587, 38.208327) > Layer SRS WKT: > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137,298.257222101004]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]] > Name: String (254.0) > Desc: String (254.0) > EntityType: String (254.0) > EntTypDesc: String (254.0) > ID: Real (11.0) > GUID: String (254.0) > LyrName: String (254.0) > LyrDesc: String (254.0) > NumVerts: Real (11.0) > EntLength: Real (18.9) > LengthUnit: String (254.0) > ---------------------------------------------------------------------------- > ---------------------------- > The projections I mentioned in my mapfile are : > > The output projection : PROJECTION > "proj=utm" > "zone=17" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > SBET_Trajectory_Source projection : PROJECTION > "proj=longlat" > "ellps=GRS80" > "datum=NAD83" > "no_defs" > END > > -------------------------------------------------------------- > > Can you identify where I am going wrong ? I am kind of stuck , don't have > any clues why it is not working. Thanks again for all your time and patience > in helping me. > > Thanks, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Thursday, July 26, 2012 10:03 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] On the fly Projection > > Hello Sowmya, > > A really helpful site for searching for projections and then different > syntax examples for them is: http://spatialreference.org > > Yours might be here: http://spatialreference.org/ref/sr-org/15/ > > Have fun! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 12-07-26 11:22 AM, Sowmya Tiramdasu wrote: >> Hi, >> >> >> >> I have a projection given as follows : >> >> >> >> > GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS > _1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174 > 532925199433]] >> >> >> >> How can I specify this under the PROJECTION in mapfile and also I would >> like to project this on to epsg : 32617. How can I achieve this. >> >> >> >> Any help will be appreciated. Thanks in advance! >> >> >> >> Thanks, >> >> Sowmya. >> >> *_______________________________* >> >> Sowmya Tiramdasu >> >> *QCoherent Software* >> >> 9668 Madison Blvd., Suite 202 >> >> Madison, AL 35758 >> >> (256) 461-8289 Telephone >> >> (256) 461-8249 Fax >> >> www.geocue.com <http://www.geocue.com/> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From stiramdasu at qcoherent.com Fri Jul 27 06:12:09 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Fri, 27 Jul 2012 08:12:09 -0500 Subject: [mapserver-users] On the fly Projection In-Reply-To: <CAHBySPaAM1Uk1S4NJW8p18Q=HBH-xgAQpMScqNZGoQwcRv5DTw@mail.gmail.com> References: <009001cd6b3a$14ed3ea0$3ec7bbe0$@com> <50115C22.50009@gatewaygeomatics.com> <00aa01cd6b68$1d3bedd0$57b3c970$@com> <CAHBySPaAM1Uk1S4NJW8p18Q=HBH-xgAQpMScqNZGoQwcRv5DTw@mail.gmail.com> Message-ID: <00c301cd6bf9$6eaa5da0$4bff18e0$@com> Hi Richard, Good Morning! Thank you very much. It worked :) .I struggled whole of yesterday with this. Seems like I need to learn more basics about projection first before I get in to this stuff. Thanks again very much. Appreciate your help! Have a good day! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Thursday, July 26, 2012 3:47 PM To: Sowmya Tiramdasu Cc: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] On the fly Projection It looks like your imagery is EPSG:2246 and your SBET_Trajectory_Source is EPSG:4269 So keep it simple to start with: 1. Set your map to EPSG:2246 2. Set your map extents to the ones for the imagery 1532496.038000, 197080.590000 1543965.215000, 203467.824241 3. Set your SBET_Trajectory_Source to EPSG:4269 See if you get acceptable results. Rich On Thu, Jul 26, 2012 at 1:51 PM, Sowmya Tiramdasu <stiramdasu at qcoherent.com> wrote: > Hi Jeff, > > Thanks for the references you provided . I gave the output projections > under the MAP section and the LAYER Projection under the layer section. But > I am not sure what is the error. The projection is not happening correctly. > I do not see any specific errors in the log file also. > > Below are the details of my two different shape files. I want the > SBET_Trajectory_source to be projected in to the Photogrammetric_point's > projection. > > ---------------------------------------------------------------------------- > ----------- > Layer name: Photogrammetric_Point > Geometry: 3D Point > Feature Count: 33 > Extent: (1532496.038000, 197080.590000) - (1543965.215000, 203467.824241) > Layer SRS WKT: > PROJCS["NAD_1983_StatePlane_Kentucky_North_FIPS_1601_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137,298.257222101004]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Lambert_Conformal_Conic_2SP"], > PARAMETER["False_Easting",1640416.66666667], > PARAMETER["False_Northing",0], > PARAMETER["Central_Meridian",-84.25], > PARAMETER["Standard_Parallel_1",37.9666666666667], > PARAMETER["Standard_Parallel_2",38.9666666666667], > PARAMETER["Latitude_Of_Origin",37.5], > UNIT["Foot_US",0.304800609601219]] > Name: String (254.0) > Desc: String (254.0) > EntityType: String (254.0) > EntTypDesc: String (254.0) > ID: Real (11.0) > GUID: String (254.0) > LyrName: String (254.0) > LyrDesc: String (254.0) > CentroidX: Real (18.9) > CentroidY: Real (18.9) > CentroidZ: Real (18.9) > > C:\ms4w\tools\gdal-ogr>ogrinfo > C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source > .shp SBET_Trajectory_Source -summary > INFO: Open of `C:\ms4w\apps\tutorial\data\SBET_Trajectory_Source.shp' > using driver `ESRI Shapefile' successful. > > Layer name: SBET_Trajectory_Source > Geometry: 3D Line String > Feature Count: 1 > Extent: (-84.760205, 37.880771) - (-84.333587, 38.208327) > Layer SRS WKT: > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137,298.257222101004]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]] > Name: String (254.0) > Desc: String (254.0) > EntityType: String (254.0) > EntTypDesc: String (254.0) > ID: Real (11.0) > GUID: String (254.0) > LyrName: String (254.0) > LyrDesc: String (254.0) > NumVerts: Real (11.0) > EntLength: Real (18.9) > LengthUnit: String (254.0) > ---------------------------------------------------------------------------- > ---------------------------- > The projections I mentioned in my mapfile are : > > The output projection : PROJECTION > "proj=utm" > "zone=17" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > SBET_Trajectory_Source projection : PROJECTION > "proj=longlat" > "ellps=GRS80" > "datum=NAD83" > "no_defs" > END > > -------------------------------------------------------------- > > Can you identify where I am going wrong ? I am kind of stuck , don't have > any clues why it is not working. Thanks again for all your time and patience > in helping me. > > Thanks, > Sowmya. > _______________________________ > Sowmya Tiramdasu > QCoherent Software > 9668 Madison Blvd., Suite 202 > Madison, AL 35758 > (256) 461-8289 Telephone > (256) 461-8249 Fax > www.geocue.com > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Thursday, July 26, 2012 10:03 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] On the fly Projection > > Hello Sowmya, > > A really helpful site for searching for projections and then different > syntax examples for them is: http://spatialreference.org > > Yours might be here: http://spatialreference.org/ref/sr-org/15/ > > Have fun! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 12-07-26 11:22 AM, Sowmya Tiramdasu wrote: >> Hi, >> >> >> >> I have a projection given as follows : >> >> >> >> > GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS > _1980",6378137,298.257222101004]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174 > 532925199433]] >> >> >> >> How can I specify this under the PROJECTION in mapfile and also I would >> like to project this on to epsg : 32617. How can I achieve this. >> >> >> >> Any help will be appreciated. Thanks in advance! >> >> >> >> Thanks, >> >> Sowmya. >> >> *_______________________________* >> >> Sowmya Tiramdasu >> >> *QCoherent Software* >> >> 9668 Madison Blvd., Suite 202 >> >> Madison, AL 35758 >> >> (256) 461-8289 Telephone >> >> (256) 461-8249 Fax >> >> www.geocue.com <http://www.geocue.com/> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From aperi2007 at gmail.com Fri Jul 27 06:09:38 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 27 Jul 2012 15:09:38 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers Message-ID: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com> Hi, I need to call for a GetFeatureInfo on a layer-group (rt_cat.idcatbdfog). I guess it should return identify result from every layer of the group. Instead it is say-ing: msShapefileOpen(): Unable to access file. No (NULL) filename provided. msBuildPath: Unable to access file. msShapefileOpen(): Unable to access file. No (NULL) filename provided. msBuildPath: Unable to access file. msBuildPath: Unable to access file. My map file is this: LAYER NAME "rt_cat.idcatbdfog" TYPE POLYGON METADATA .... "ows_include_items" "all" END TEMPLATE 'void' END LAYER NAME "rt_cat.idcatbdfog.ar" STATUS OFF TYPE POLYGON DATA '/path-to-data/shapefile' PROJECTION "init=epsg:3003" END METADATA ... "ows_include_items" "all" "wms_layer_group" "/rt_cat.idcatbdfog" END TEMPLATE 'void' What I'm missing ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120727/db0b027f/attachment.htm> From Andreas.Eichner at sid.sachsen.de Fri Jul 27 07:11:13 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 27 Jul 2012 16:11:13 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers References: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de> > I need to call for a GetFeatureInfo on a layer-group > (rt_cat.idcatbdfog). > > I guess it should return identify result from every layer of > the group. MS does exactly that. Specifying a layer group in QUERY_LAYERS is basically equivalent to specifying every layer corresponding to that group. Simply ommit that additional layer: > LAYER > NAME "rt_cat.idcatbdfog" > TYPE POLYGON > METADATA > .... > "ows_include_items" "all" > END > TEMPLATE 'void' > END > Instead it is say-ing: > > msShapefileOpen(): Unable to access file. No (NULL) filename provided. > msBuildPath: Unable to access file. > msShapefileOpen(): Unable to access file. No (NULL) filename provided. > msBuildPath: Unable to access file. > msBuildPath: Unable to access file. MS is somewhat confused and tries to query that layer which has no data. From aperi2007 at gmail.com Fri Jul 27 11:39:28 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 27 Jul 2012 20:39:28 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de> References: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de> Message-ID: <CABqTJk8V9C354v2iNF4knxRZzajOjALyt3F-Myw9R+E_TeFmqQ@mail.gmail.com> Hi Eichner, thx for hint. I try without the addition-layer. The GetFeatureInfo now work. But as a indesiderable secondary effect is disappeared the Group-name from the getcapabilities. There is some workaround to add a group-name to the getcapabilities ? Thx, Andrea. 2012/7/27 Eichner, Andreas - SID-NLKM <Andreas.Eichner at sid.sachsen.de> > > > I need to call for a GetFeatureInfo on a layer-group > > (rt_cat.idcatbdfog). > > > > I guess it should return identify result from every layer of > > the group. > > MS does exactly that. Specifying a layer group in QUERY_LAYERS is > basically equivalent to specifying every layer corresponding to that > group. > > Simply ommit that additional layer: > > > LAYER > > NAME "rt_cat.idcatbdfog" > > TYPE POLYGON > > METADATA > > .... > > "ows_include_items" "all" > > END > > TEMPLATE 'void' > > END > > > Instead it is say-ing: > > > > msShapefileOpen(): Unable to access file. No (NULL) filename provided. > > msBuildPath: Unable to access file. > > msShapefileOpen(): Unable to access file. No (NULL) filename provided. > > msBuildPath: Unable to access file. > > msBuildPath: Unable to access file. > > MS is somewhat confused and tries to query that layer which has no data. > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120727/dc8efa59/attachment.htm> From aperi2007 at gmail.com Sun Jul 29 16:05:59 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 30 Jul 2012 01:05:59 +0200 Subject: [mapserver-users] Opacity change the color Message-ID: <CABqTJk9GBUYRvbpD6C5HzwkpoXAr9apU_5kBkK3LCaS2A22GYw@mail.gmail.com> Hi, On mapserver dev, using the OPACITY tag I notice the color is changed from the color setting. As example: CLASS NAME 'water' STYLE COLOR 0 0 255 ANTIALIAS false OPACITY 10 END END this setting instead of a full blue give a light gray. Instead if I put OPACITY 100 I have correctly a "full blue". Is this a knowed thing ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/0b5477dd/attachment.htm> From henrique.renno at gmail.com Sun Jul 29 16:50:19 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sun, 29 Jul 2012 20:50:19 -0300 Subject: [mapserver-users] MapServer and PHP Message-ID: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> Hello, I tried to find a solution to my problem using google but with no success. I'm using WinXP and just installed ms4w from the zip file. After executing apache-install.bat, the localhost showed me the mapserver webpage as it should. I also loaded a shapefile using mapserv.exe after configuring a map file. Now I want to load the shapefile using mapscript, but it seems that apache has a problem with php as I wrote a simple php file to show phpinfo and it just shows the file content, that is, apache didn't use the php-cgi.exe script to understand php files. The mime section contains AddType and Action set to .php and /cgi-bin/php-cgi.exe. What could be the problem? Thanks -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120729/8e285e7c/attachment.htm> From lester at lsces.co.uk Mon Jul 30 00:27:50 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 08:27:50 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> Message-ID: <50163776.9080907@lsces.co.uk> Henrique Renn? wrote: > I tried to find a solution to my problem using google but with no success. I'm > using WinXP and just installed ms4w from the zip file. After executing > apache-install.bat, the localhost showed me the mapserver webpage as it should. > I also loaded a shapefile using mapserv.exe after configuring a map file. Now I > want to load the shapefile using mapscript, but it seems that apache has a > problem with php as I wrote a simple php file to show phpinfo and it just shows > the file content, that is, apache didn't use the php-cgi.exe script to > understand php files. The mime section contains AddType and Action set to .php > and /cgi-bin/php-cgi.exe. What could be the problem? What is ScriptAlias set to? Using php as CGI usually means that it's pointing to the PHP directory, which is where php-cgi.exe is located, but I'm fairly sure mapserver uses the conventional location for cgi-bin ... in the apache directory I've been doing my own installations of Apache/PHP/Firebird/Mapserver, so haven't checked out the 'default' recently ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From Andreas.Eichner at sid.sachsen.de Mon Jul 30 01:33:11 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 30 Jul 2012 10:33:11 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers References: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com><56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de> <CABqTJk8V9C354v2iNF4knxRZzajOjALyt3F-Myw9R+E_TeFmqQ@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> wms_layer_group Description: (Optional) Can be used to assign a layer to a number of hierarchically nested groups. This grouped hierarchy will be expressed in the capabilities. WMS_LAYER_GROUP is different from the GROUP keyword in that it does not publish the name of the group in the capabilities, only the title. As a consequence the groups set with WMS_LAYER_GROUP can not be requested with a GetMap or GetFeatureInfo request (see section 7.1.4.5.2 of the WMS implementation specification version 1.1.1. (OGC 01-068r2)). Another difference is that GROUP does not support nested groups. The purpose of this metadata setting is to enable making a WMS client aware of layer grouping. All group names should be preceded by a forward slash (/). It is not allowed to use both the WMS_LAYER_GROUP setting and the GROUP keyword for a single layer. > The GetFeatureInfo now work. > But as a indesiderable secondary effect is disappeared the > Group-name from the getcapabilities. > > There is some workaround to add a group-name to the getcapabilities ? Yes, see http://mapserver.org/ogc/wms_server.html#layer-object-metadata: wms_layer_group: [...] WMS_LAYER_GROUP is different from the GROUP keyword in that it does not publish the name of the group in the capabilities, only the title. As a consequence the groups set with WMS_LAYER_GROUP can not be requested with a GetMap or GetFeatureInfo request [...] Use the GROUP keyword on all and a wms_group_title (and optionally wms_group_abstract) metadata on one of the layers corresponding to that group. So it should become something like that LAYER GROUP "rt_cat.idcatbdfog" NAME "rt_cat.idcatbdfog.ar" STATUS DEFAULT TYPE POLYGON DATA '/path-to-data/shapefile' PROJECTION "init=epsg:3003" END METADATA ... "ows_include_items" "all" wms_group_title "The rt_cat.idcatbdfog group" wms_group_abstract "This group is intented to show all layers that belong to rt_cat.idcatbdfog" END TEMPLATE 'void' [...] This should hopefully work as you want. Greets. From Andreas.Eichner at sid.sachsen.de Mon Jul 30 01:49:43 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 30 Jul 2012 10:49:43 +0200 Subject: [mapserver-users] Opacity change the color References: <CABqTJk9GBUYRvbpD6C5HzwkpoXAr9apU_5kBkK3LCaS2A22GYw@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D2@KS-EVS1.smi.sachsen.de> > OPACITY 10 > this setting instead of a full blue give a light gray. > Instead if I put OPACITY 100 I have correctly a "full blue". Opacity 10 is near transparent, so blue it might appear as light gray. Have a try with a higher value, let's say 50 or 75 and see if this is what you want. From aperi2007 at gmail.com Mon Jul 30 02:39:47 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 30 Jul 2012 11:39:47 +0200 Subject: [mapserver-users] Opacity change the color In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D2@KS-EVS1.smi.sachsen.de> References: <CABqTJk9GBUYRvbpD6C5HzwkpoXAr9apU_5kBkK3LCaS2A22GYw@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D2@KS-EVS1.smi.sachsen.de> Message-ID: <CABqTJk9wWQA54iqw0VSzRGC0AiD4xBTwb8EbhhgTg6GSnueuUQ@mail.gmail.com> Hi, I discovered just now that the problem is due to qgis. The last version of wgis-dev available on repository wrong drammatically the colors when the object has some transparency. I don't know exactly why this happen. But now I'm sure that is not a mapserver problem, but instead a qgis-dev problem. ps: i notice this happened only with the last actually dev (I use the qgis-dev 1.9.0 - 540df9c) on windows. Sorry for noise. Regards, 2012/7/30 Eichner, Andreas - SID-NLKM <Andreas.Eichner at sid.sachsen.de> > > OPACITY 10 > > this setting instead of a full blue give a light gray. > > Instead if I put OPACITY 100 I have correctly a "full blue". > > Opacity 10 is near transparent, so blue it might appear as light gray. > Have a try with a higher value, let's say 50 or 75 and see if this is > what you want. > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/3428d1a0/attachment.htm> From aperi2007 at gmail.com Mon Jul 30 03:06:30 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 30 Jul 2012 12:06:30 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> References: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de> <CABqTJk8V9C354v2iNF4knxRZzajOjALyt3F-Myw9R+E_TeFmqQ@mail.gmail.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> Message-ID: <CABqTJk9VXDP+mTS69b7-CZaFUqMdki8PYGpZHod_Mmux-rc_yQ@mail.gmail.com> Hi Eichner, The GROUP tag effectively allow set the Name and abstract. This is great, but it don't allow the GetFeatureInfo request. :( I try it, but on my qgis the identify icon is disabled. I try to see the GetCapabilities. http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&&SERVICE=WMS&request=getcapabilities And effectively the layer rt_cat.idcatacque is not reported as "queryable". So the GROUP tag don't allow the GetFeatureInfo as single aggregation. Perhaps a bug for MapServer ? 2012/7/30 Eichner, Andreas - SID-NLKM <Andreas.Eichner at sid.sachsen.de> > > wms_layer_group > > Description: (Optional) Can be used to assign a layer to a number of > hierarchically nested groups. This grouped hierarchy will be expressed > in the capabilities. > > WMS_LAYER_GROUP is different from the GROUP keyword in that it does > not publish the name of the group in the capabilities, only the title. > As a consequence the groups set with WMS_LAYER_GROUP can not be > requested with a GetMap or GetFeatureInfo request (see section 7.1.4.5.2 > of the WMS implementation specification version 1.1.1. (OGC 01-068r2)). > Another difference is that GROUP does not support nested groups. The > purpose of this metadata setting is to enable making a WMS client aware > of layer grouping. > > All group names should be preceded by a forward slash (/). It is not > allowed to use both the WMS_LAYER_GROUP setting and the GROUP keyword > for a single layer. > > > > The GetFeatureInfo now work. > > But as a indesiderable secondary effect is disappeared the > > Group-name from the getcapabilities. > > > > There is some workaround to add a group-name to the getcapabilities ? > > Yes, see http://mapserver.org/ogc/wms_server.html#layer-object-metadata: > > wms_layer_group: [...] WMS_LAYER_GROUP is different from the GROUP > keyword in that it does not publish the name of the group in the > capabilities, only the title. As a consequence the groups set with > WMS_LAYER_GROUP can not be requested with a GetMap or GetFeatureInfo > request [...] > > Use the GROUP keyword on all and a wms_group_title (and optionally > wms_group_abstract) metadata on one of the layers corresponding to that > group. So it should become something like that > > LAYER > GROUP "rt_cat.idcatbdfog" > NAME "rt_cat.idcatbdfog.ar" > STATUS DEFAULT > TYPE POLYGON > DATA '/path-to-data/shapefile' > PROJECTION > "init=epsg:3003" > END > METADATA > ... > "ows_include_items" "all" > wms_group_title "The rt_cat.idcatbdfog group" > wms_group_abstract "This group is intented to show all layers > that belong to rt_cat.idcatbdfog" > END > TEMPLATE 'void' > [...] > > This should hopefully work as you want. Greets. > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/bfa6e12f/attachment.htm> From Andreas.Eichner at sid.sachsen.de Mon Jul 30 03:33:44 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 30 Jul 2012 12:33:44 +0200 Subject: [mapserver-users] How do a GetFeatureInfo on a group layers References: <CABqTJk9EPp4_KVeHNW+gH7OsZrH4vcL5mRTO-KEXvdown1Zu_g@mail.gmail.com><56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de><CABqTJk8V9C354v2iNF4knxRZzajOjALyt3F-Myw9R+E_TeFmqQ@mail.gmail.com><56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> <CABqTJk9VXDP+mTS69b7-CZaFUqMdki8PYGpZHod_Mmux-rc_yQ@mail.gmail.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> Hmmm, strange but yes, the code says: } else { /* Beginning of a new group... enclose the group in a layer block */ msIO_printf(" <Layer>\n"); so it seems there's no intention to set any attribute like "queryable". But since querying the group is supported, to me it looks like a bug... Note: In my response I accidentally set STATUS from ON to DEFAULT, but ON was already correct. So you should revert to ON. Sorry. > -----Urspr?ngliche Nachricht----- > Von: Andrea Peri [mailto:aperi2007 at gmail.com] > Gesendet: Montag, 30. Juli 2012 12:07 > An: Eichner, Andreas - SID-NLKM > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] How do a GetFeatureInfo on a > group layers > > Hi Eichner, > > The GROUP tag effectively allow set the Name and abstract. > This is great, but it don't allow the GetFeatureInfo request. :( > > I try it, but on my qgis the identify icon is disabled. > > I try to see the GetCapabilities. > http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?m ap=wmscatasto&&SERVICE=WMS&request=getcapabilities > > And effectively the layer > rt_cat.idcatacque > is not reported as "queryable". > > So the GROUP tag don't allow the GetFeatureInfo as single aggregation. > > Perhaps a bug for MapServer ? From henrique.renno at gmail.com Mon Jul 30 04:28:56 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Mon, 30 Jul 2012 08:28:56 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50163776.9080907@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> Message-ID: <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> 2012/7/30 Lester Caine <lester at lsces.co.uk> > Henrique Renn? wrote: > >> I tried to find a solution to my problem using google but with no >> success. I'm >> using WinXP and just installed ms4w from the zip file. After executing >> apache-install.bat, the localhost showed me the mapserver webpage as it >> should. >> I also loaded a shapefile using mapserv.exe after configuring a map file. >> Now I >> want to load the shapefile using mapscript, but it seems that apache has a >> problem with php as I wrote a simple php file to show phpinfo and it just >> shows >> the file content, that is, apache didn't use the php-cgi.exe script to >> understand php files. The mime section contains AddType and Action set to >> .php >> and /cgi-bin/php-cgi.exe. What could be the problem? >> > > What is ScriptAlias set to? > Using php as CGI usually means that it's pointing to the PHP directory, > which is where php-cgi.exe is located, but I'm fairly sure mapserver uses > the conventional location for cgi-bin ... in the apache directory > > I've been doing my own installations of Apache/PHP/Firebird/Mapserver, so > haven't checked out the 'default' recently ... > Thanks for your reply. The ScriptAlias seems to be right: ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/" I never used or configured Apache and PHP, so I'm a little lost, but the website said ms4w would have everything properly configured, so I didn't bother with these. Do you think the only solution would be to configure manually both Apache and PHP? > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact> > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org <mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users> > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/15440901/attachment.htm> From lester at lsces.co.uk Mon Jul 30 05:22:43 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 13:22:43 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> Message-ID: <50167C93.8080602@lsces.co.uk> Henrique Renn? wrote: > The mime section contains AddType and Action set to .php > and /cgi-bin/php-cgi.exe. What could be the problem? > > > What is ScriptAlias set to? > Using php as CGI usually means that it's pointing to the PHP directory, > which is where php-cgi.exe is located, but I'm fairly sure mapserver uses > the conventional location for cgi-bin ... in the apache directory > > I've been doing my own installations of Apache/PHP/Firebird/Mapserver, so > haven't checked out the 'default' recently ... > > > Thanks for your reply. The ScriptAlias seems to be right: ScriptAlias /cgi-bin/ > "/ms4w/Apache/cgi-bin/" > I never used or configured Apache and PHP, so I'm a little lost, but the website > said ms4w would have everything properly configured, so I didn't bother with > these. Do you think the only solution would be to configure manually both Apache > and PHP? That is sort of what I was expecting ... but is php-cgi.exe located in that directory? Having PHP running with Apache is normally the starting point before adding Mapserver, so WAS PHP working ... you probably did not test? Personally I run php as an apache module ... in httpd,conf LoadModule php5_module c:\Network\PHP5\php5apache2_2.dll So I don't have to mix up with the cgi stuff, but it depends on which version you downloaded ... 6.0.3? It might be worth trying the installer instead. PHP is an option as far as I can see, so would need to be enabled while installing. I'm just grabbing a copy of the zip so I can check it out anyway. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From henrique.renno at gmail.com Mon Jul 30 06:40:17 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Mon, 30 Jul 2012 10:40:17 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50167C93.8080602@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> <50167C93.8080602@lsces.co.uk> Message-ID: <CA+xQXF8yggrQ1Q=fvid5TrW6qW-8FOeC6Lurs8J_3k2YRRULNQ@mail.gmail.com> I'll try setting everything up with the installer later. Maybe the problem with the zip file is that it needs some configuration by hand. 2012/7/30 Lester Caine <lester at lsces.co.uk> > Henrique Renn? wrote: > >> The mime section contains AddType and Action set to .php >> and /cgi-bin/php-cgi.exe. What could be the problem? >> >> >> What is ScriptAlias set to? >> Using php as CGI usually means that it's pointing to the PHP >> directory, >> which is where php-cgi.exe is located, but I'm fairly sure mapserver >> uses >> the conventional location for cgi-bin ... in the apache directory >> >> I've been doing my own installations of >> Apache/PHP/Firebird/Mapserver, so >> haven't checked out the 'default' recently ... >> >> >> Thanks for your reply. The ScriptAlias seems to be right: ScriptAlias >> /cgi-bin/ >> "/ms4w/Apache/cgi-bin/" >> I never used or configured Apache and PHP, so I'm a little lost, but the >> website >> said ms4w would have everything properly configured, so I didn't bother >> with >> these. Do you think the only solution would be to configure manually both >> Apache >> and PHP? >> > > That is sort of what I was expecting ... but is php-cgi.exe located in > that directory? Having PHP running with Apache is normally the starting > point before adding Mapserver, so WAS PHP working ... you probably did not > test? > > Personally I run php as an apache module ... > > in httpd,conf > LoadModule php5_module c:\Network\PHP5\php5apache2_2.**dll > > So I don't have to mix up with the cgi stuff, but it depends on which > version you downloaded ... > 6.0.3? It might be worth trying the installer instead. PHP is an option as > far as I can see, so would need to be enabled while installing. I'm just > grabbing a copy of the zip so I can check it out anyway. > > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact> > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org <mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users> > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/c2c10f26/attachment.htm> From lester at lsces.co.uk Mon Jul 30 06:43:43 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 14:43:43 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50167C93.8080602@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> <50167C93.8080602@lsces.co.uk> Message-ID: <50168F8F.70307@lsces.co.uk> Lester Caine wrote: > 6.0.3? It might be worth trying the installer instead. PHP is an option as far > as I can see, so would need to be enabled while installing. I'm just grabbing a > copy of the zip so I can check it out anyway. Henrique did you run setenv.bat ... I can't see it being refered to in the installation guide, but it sets up the path to all of the tools such as PHP and would need to be run before apache-install.bat I suspect it should probably have been CALLED from that ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From jmckenna at gatewaygeomatics.com Mon Jul 30 06:46:40 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jul 2012 10:46:40 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> Message-ID: <50169040.8070200@gatewaygeomatics.com> On 12-07-29 8:50 PM, Henrique Renn? wrote: > Hello, > > I tried to find a solution to my problem using google but with no > success. I'm using WinXP and just installed ms4w from the zip file. > After executing apache-install.bat, the localhost showed me the > mapserver webpage as it should. I also loaded a shapefile using > mapserv.exe after configuring a map file. Now I want to load the > shapefile using mapscript, but it seems that apache has a problem with > php as I wrote a simple php file to show phpinfo and it just shows the > file content, that is, apache didn't use the php-cgi.exe script to > understand php files. The mime section contains AddType and Action set > to .php and /cgi-bin/php-cgi.exe. What could be the problem? > Hello, Please note that MS4W questions should be sent to the MS4W-users mailing list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). Here are my comments: - MS4W is designed so that Apache and PHP work out-of-the-box (no configuration needed) - on a fresh machine, install MS4W (sounds like you already know this step) - once your localhost page shows the MS4W homepage, you know you are ready - to verify that PHP is running, without making any changes to the configuration, (assuming you are using MS4W 3.0.6) copy the file C:/ms4w/tmp/phpinfo.php into C:/ms4w/Apache/htdocs/ and then in your web browser goto http://localhost/phpinfo.php - the page should show you information about your PHP install For any more MS4W questions, feel free to contact the MS4W-users mailing list, or you can contact me directly for custom builds or to contribute funding to help this great product grow and live. Oh one final note: I did cringe when you mention "XP": that platform is becoming old now, similar to (when I started this) users stuck on Windows98 years ago. Be warned that for best results with MS4W you should be using a more recent Windows version such as Windows7 or Vista. Thank you for using MS4W. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From lester at lsces.co.uk Mon Jul 30 06:57:24 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 14:57:24 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50168F8F.70307@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> <50167C93.8080602@lsces.co.uk> <50168F8F.70307@lsces.co.uk> Message-ID: <501692C4.3020900@lsces.co.uk> Lester Caine wrote: > Lester Caine wrote: >> 6.0.3? It might be worth trying the installer instead. PHP is an option as far >> as I can see, so would need to be enabled while installing. I'm just grabbing a >> copy of the zip so I can check it out anyway. > > Henrique > did you run setenv.bat ... I can't see it being refered to in the installation > guide, but it sets up the path to all of the tools such as PHP and would need to > be run before apache-install.bat I suspect it should probably have been CALLED > from that ... Found the reference to it after sending ;) It's in the notes on 'tools' and is needed in order to use php from the command line, but I suspect that it also needed to set up the path to the libraries as well. Perhaps someone can confirm that? I don't use the 'stock' install since I need Firebird and some other tools as well. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From lester at lsces.co.uk Mon Jul 30 07:02:30 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 15:02:30 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50169040.8070200@gatewaygeomatics.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> Message-ID: <501693F6.6000509@lsces.co.uk> Jeff McKenna wrote: > Oh one final note: I did cringe when you mention "XP": that platform is > becoming old now, similar to (when I started this) users stuck on > Windows98 years ago. Be warned that for best results with MS4W you > should be using a more recent Windows version such as Windows7 or Vista. Since my own customer base banned Vista, they are only just upgrading to Windows7, but most have now switched to using Linux for the web server infrastructure where they were pure windows sites before. Best results for Mapserver are on Linux and our benchmarks show that W7 running Apache/PHP leaves a lot to be desired ;) -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From henrique.renno at gmail.com Mon Jul 30 07:46:26 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Mon, 30 Jul 2012 11:46:26 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50168F8F.70307@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50163776.9080907@lsces.co.uk> <CA+xQXF8fWdzssW1o0Oh8neosLJRw4gBM2zwf9w-MqgAQPJT07g@mail.gmail.com> <50167C93.8080602@lsces.co.uk> <50168F8F.70307@lsces.co.uk> Message-ID: <CA+xQXF_+G5-Ztny1Cq3igJ76orhFYsD3AA_V2KHiK=ZvqU9BJA@mail.gmail.com> Yes, but it seemed to not set the variables, so I set them manually under Control Panel. 2012/7/30 Lester Caine <lester at lsces.co.uk> > Lester Caine wrote: > >> 6.0.3? It might be worth trying the installer instead. PHP is an option >> as far >> as I can see, so would need to be enabled while installing. I'm just >> grabbing a >> copy of the zip so I can check it out anyway. >> > > Henrique > did you run setenv.bat ... I can't see it being refered to in the > installation guide, but it sets up the path to all of the tools such as PHP > and would need to be run before apache-install.bat I suspect it should > probably have been CALLED from that ... > > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact> > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org <mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users> > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/b5e9bc47/attachment.htm> From henrique.renno at gmail.com Mon Jul 30 07:48:02 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Mon, 30 Jul 2012 11:48:02 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50169040.8070200@gatewaygeomatics.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> Message-ID: <CA+xQXF_xyGHmBdx-fmpOvqskiZXJThH2Ur=piT_mOp+cZXDuwQ@mail.gmail.com> Thanks for your advices. I'll try them later. 2012/7/30 Jeff McKenna <jmckenna at gatewaygeomatics.com> > On 12-07-29 8:50 PM, Henrique Renn? wrote: > > Hello, > > > > I tried to find a solution to my problem using google but with no > > success. I'm using WinXP and just installed ms4w from the zip file. > > After executing apache-install.bat, the localhost showed me the > > mapserver webpage as it should. I also loaded a shapefile using > > mapserv.exe after configuring a map file. Now I want to load the > > shapefile using mapscript, but it seems that apache has a problem with > > php as I wrote a simple php file to show phpinfo and it just shows the > > file content, that is, apache didn't use the php-cgi.exe script to > > understand php files. The mime section contains AddType and Action set > > to .php and /cgi-bin/php-cgi.exe. What could be the problem? > > > > Hello, > > Please note that MS4W questions should be sent to the MS4W-users mailing > list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). > > Here are my comments: > > - MS4W is designed so that Apache and PHP work out-of-the-box (no > configuration needed) > - on a fresh machine, install MS4W (sounds like you already know this step) > - once your localhost page shows the MS4W homepage, you know you are ready > - to verify that PHP is running, without making any changes to the > configuration, (assuming you are using MS4W 3.0.6) copy the file > C:/ms4w/tmp/phpinfo.php into C:/ms4w/Apache/htdocs/ and then in your web > browser goto http://localhost/phpinfo.php > - the page should show you information about your PHP install > > For any more MS4W questions, feel free to contact the MS4W-users mailing > list, or you can contact me directly for custom builds or to contribute > funding to help this great product grow and live. > > Oh one final note: I did cringe when you mention "XP": that platform is > becoming old now, similar to (when I started this) users stuck on > Windows98 years ago. Be warned that for best results with MS4W you > should be using a more recent Windows version such as Windows7 or Vista. > > Thank you for using MS4W. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/f06fe16f/attachment.htm> From jmckenna at gatewaygeomatics.com Mon Jul 30 08:37:53 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jul 2012 12:37:53 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <501693F6.6000509@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> Message-ID: <5016AA51.7020309@gatewaygeomatics.com> On 12-07-30 11:02 AM, Lester Caine wrote: > Jeff McKenna wrote: >> Oh one final note: I did cringe when you mention "XP": that platform is >> becoming old now, similar to (when I started this) users stuck on >> Windows98 years ago. Be warned that for best results with MS4W you >> should be using a more recent Windows version such as Windows7 or Vista. > > Since my own customer base banned Vista, they are only just upgrading to > Windows7, but most have now switched to using Linux for the web server > infrastructure where they were pure windows sites before. Best results > for Mapserver are on Linux and our benchmarks show that W7 running > Apache/PHP leaves a lot to be desired ;) > Hello Lester, Thanks for your feedback. In fact at last year's WMS Benchmarking exercise with several software teams, we found that MapServer on Windows did very well vs Linux, and other mapping engines for that matter (don't just take my word for it, see the numbers at http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/). Let me know how we can help your customer base: please contact me directly at any time. Thanks for using MS4W. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Mon Jul 30 08:49:26 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 30 Jul 2012 11:49:26 -0400 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <5016AA51.7020309@gatewaygeomatics.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> Message-ID: <5016AD06.6060803@mapgears.com> On 12-07-30 11:37 AM, Jeff McKenna wrote: > > Thanks for your feedback. In fact at last year's WMS Benchmarking > exercise with several software teams, we found that MapServer on Windows > did very well vs Linux, and other mapping engines for that matter (don't > just take my word for it, see the numbers at > http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/). > Looking at the charts in the 2011 Benchmark presentations, it seems that MapServer on Linux was more or less 3 times faster than the Windows version in each chart. So my interpretation is that MapServer on Windows is doing as well as the rest of the pack, but in those tests, MapServer and Mapnik on Linux were still doing much better. Am I missing something? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jmckenna at gatewaygeomatics.com Mon Jul 30 08:57:03 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jul 2012 12:57:03 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <5016AD06.6060803@mapgears.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> Message-ID: <5016AECF.5030004@gatewaygeomatics.com> On 12-07-30 12:49 PM, Daniel Morissette wrote: > On 12-07-30 11:37 AM, Jeff McKenna wrote: >> >> Thanks for your feedback. In fact at last year's WMS Benchmarking >> exercise with several software teams, we found that MapServer on Windows >> did very well vs Linux, and other mapping engines for that matter (don't >> just take my word for it, see the numbers at >> http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/). >> > > > Looking at the charts in the 2011 Benchmark presentations, it seems that > MapServer on Linux was more or less 3 times faster than the Windows > version in each chart. So my interpretation is that MapServer on Windows > is doing as well as the rest of the pack, but in those tests, MapServer > and Mapnik on Linux were still doing much better. Am I missing something? > I really didn't want a public "x is better than y" war (especially since we are all on the same team) : I simply meant Windows did very well (I tried to use those exact words). Thank you for clarifying exact numbers. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From lester at lsces.co.uk Mon Jul 30 10:08:14 2012 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 30 Jul 2012 18:08:14 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <5016AD06.6060803@mapgears.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> Message-ID: <5016BF7E.2000400@lsces.co.uk> Daniel Morissette wrote: >> Thanks for your feedback. In fact at last year's WMS Benchmarking >> exercise with several software teams, we found that MapServer on Windows >> did very well vs Linux, and other mapping engines for that matter (don't >> just take my word for it, see the numbers at >> http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/presentation/). >> > Looking at the charts in the 2011 Benchmark presentations, it seems that > MapServer on Linux was more or less 3 times faster than the Windows version in > each chart. So my interpretation is that MapServer on Windows is doing as well > as the rest of the pack, but in those tests, MapServer and Mapnik on Linux were > still doing much better. Am I missing something? That corresponds with the benchmark figures I posted for Apache/PHP running on W7 and SUSE linux on the same test machine. XP running on the same hardware was a lot faster than W7 running the identical tests, but still half the speed of Linux. I was somewhat surprised just how slow W7 was but the consensus was that the figures were accurate, and there was little that could be done to improve things :( It was early this year, but I don't think anything has changed since. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From stiramdasu at qcoherent.com Mon Jul 30 12:04:14 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Mon, 30 Jul 2012 14:04:14 -0500 Subject: [mapserver-users] Re-Projections In-Reply-To: <5016BF7E.2000400@lsces.co.uk> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> <5016BF7E.2000400@lsces.co.uk> Message-ID: <000001cd6e86$1d128b40$5737a1c0$@com> Hi All, I have a scenario for re-projections. Can anyone let me know if the following scenario works in MapServer? Below is a sample map file ( A,B,C are three different projections. LAYER 1, 2, 3 are three different layers in the map file) MAP PROJECTION : A LAYER 1 PROJECTION : B LAYER 2 PROJECTION : B LAYER 3 PROJECTION : C END Any help is greatly appreciated. Thanks in advance! Thanks, Sowmya. From Jukka.Rahkonen at mmmtike.fi Mon Jul 30 12:12:33 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 30 Jul 2012 19:12:33 +0000 Subject: [mapserver-users] Re-Projections In-Reply-To: <000001cd6e86$1d128b40$5737a1c0$@com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> <5016BF7E.2000400@lsces.co.uk>,<000001cd6e86$1d128b40$5737a1c0$@com> Message-ID: <84446DEF76453C439E9E97E438E13A634608C5@suutari.haapa.mmm.fi> Hi, Of course it works and you should be able to make configurations by following this document http://mapserver.org/ogc/wms_server.html#setting-up-a-wms-server-using-mapserver -Jukka Rahkonen- ________________________________________ Sowmya Tiramdasu wrote: > Hi All, > I have a scenario for re-projections. Can anyone let me know if the > following scenario works in MapServer? > Below is a sample map file ( A,B,C are three different projections. LAYER > 1, 2, 3 are three different layers in the map file) MAP PROJECTION : A LAYER 1 PROJECTION : B LAYER 2 PROJECTION : B LAYER 3 PROJECTION : C END Any help is greatly appreciated. Thanks in advance! Thanks, Sowmya. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Jul 30 12:14:15 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jul 2012 16:14:15 -0300 Subject: [mapserver-users] Re-Projections In-Reply-To: <000001cd6e86$1d128b40$5737a1c0$@com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> <5016BF7E.2000400@lsces.co.uk> <000001cd6e86$1d128b40$5737a1c0$@com> Message-ID: <5016DD07.2060809@gatewaygeomatics.com> On 12-07-30 4:04 PM, Sowmya Tiramdasu wrote: > Hi All, > > I have a scenario for re-projections. Can anyone let me know if the > following scenario works in MapServer? > > Below is a sample map file ( A,B,C are three different projections. LAYER > 1, 2, 3 are three different layers in the map file) > > MAP > > PROJECTION : A > > LAYER 1 > PROJECTION : B > LAYER 2 > PROJECTION : B > LAYER 3 > PROJECTION : C > END > > Any help is greatly appreciated. Thanks in advance! Hello Sowmya, Yes that would work in MapServer (ProjectionA is your output projection). You should review the "Important Notes" in the documentation: http://www.mapserver.org/mapfile/projection.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stiramdasu at qcoherent.com Mon Jul 30 13:13:47 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Mon, 30 Jul 2012 15:13:47 -0500 Subject: [mapserver-users] Re-Projections In-Reply-To: <84446DEF76453C439E9E97E438E13A634608C5@suutari.haapa.mmm.fi> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <501693F6.6000509@lsces.co.uk> <5016AA51.7020309@gatewaygeomatics.com> <5016AD06.6060803@mapgears.com> <5016BF7E.2000400@lsces.co.uk>, <000001cd6e86$1d128b40$5737a1c0$@com> <84446DEF76453C439E9E97E438E13A634608C5@suutari.haapa.mmm.fi> Message-ID: <000101cd6e8f$d56e3280$804a9780$@com> Hi Jeff,Rahkonen Thanks for your feedback. Yes, it really worked. Cool. It was my bad, first time I gave wrong extent values and it did not work. Now it is working perfectly fine. Thanks , Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Monday, July 30, 2012 2:13 PM To: 'Mapserver-users' Subject: Re: [mapserver-users] Re-Projections Hi, Of course it works and you should be able to make configurations by following this document http://mapserver.org/ogc/wms_server.html#setting-up-a-wms-server-using-mapse rver -Jukka Rahkonen- ________________________________________ Sowmya Tiramdasu wrote: > Hi All, > I have a scenario for re-projections. Can anyone let me know if the > following scenario works in MapServer? > Below is a sample map file ( A,B,C are three different projections. LAYER > 1, 2, 3 are three different layers in the map file) MAP PROJECTION : A LAYER 1 PROJECTION : B LAYER 2 PROJECTION : B LAYER 3 PROJECTION : C END Any help is greatly appreciated. Thanks in advance! Thanks, Sowmya. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From web at infogeo.ch Mon Jul 30 16:08:14 2012 From: web at infogeo.ch (web) Date: Tue, 31 Jul 2012 01:08:14 +0200 Subject: [mapserver-users] Best approach for huge dataset. Message-ID: <1343689694-2bdef8094ad9e8a0db80fd68aab55606@infogeo.ch> Hi guys, I'm building a WMS with around 1000 tif files that are about 2gb each one. I wonder if the approach I've taken is the most appropriate. I built a mapfile with one LAYER declaration for each file. That makes then 1000 LAYER declarations. I use a GROUP and call it in the LAYERS parameter in my client to avoid writting the 1000 names :-) But well it's kinda slow to open as you can guess. Is this approach a good one or is there any other more appropriate I could follow? Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120731/22ca268e/attachment.htm> From woodbri at swoodbridge.com Mon Jul 30 16:59:42 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 30 Jul 2012 19:59:42 -0400 Subject: [mapserver-users] Best approach for huge dataset. In-Reply-To: <1343689694-2bdef8094ad9e8a0db80fd68aab55606@infogeo.ch> References: <1343689694-2bdef8094ad9e8a0db80fd68aab55606@infogeo.ch> Message-ID: <50171FEE.8040006@swoodbridge.com> On 7/30/2012 7:08 PM, web wrote: > Hi guys, > > I'm building a WMS with around 1000 tif files that are about 2gb each > one. I wonder if the approach I've taken is the most appropriate. I > built a mapfile with one LAYER declaration for each file. That makes > then 1000 LAYER declarations. I use a GROUP and call it in the LAYERS > parameter in my client to avoid writting the 1000 names :-) > But well it's kinda slow to open as you can guess. > Is this approach a good one or is there any other more appropriate I > could follow? No this is probably the worse way you could have done it. Read this and specifically you want to create a tileindex so all you rasters are in a single layer. http://mapserver.org/input/raster.html Also if you are using geotiff you should make sure all you rasters are using "TILED=YES" as this is the most efficent for mapserver to access. You should be looking at GDAL as that is the library that mapserver uses and it has some great utilites for manipulating geotiffs -Steve W From henrique.renno at gmail.com Mon Jul 30 18:54:05 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Mon, 30 Jul 2012 22:54:05 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <50169040.8070200@gatewaygeomatics.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> Message-ID: <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> I installed MS4W from the installer and it worked. Maybe the zip file has some different configuration in php. Just one more question. As I'll start using mapscript, do I have to use this list to take doubts out or another list? Thanks a lot for all your attention. 2012/7/30 Jeff McKenna <jmckenna at gatewaygeomatics.com> > On 12-07-29 8:50 PM, Henrique Renn? wrote: > > Hello, > > > > I tried to find a solution to my problem using google but with no > > success. I'm using WinXP and just installed ms4w from the zip file. > > After executing apache-install.bat, the localhost showed me the > > mapserver webpage as it should. I also loaded a shapefile using > > mapserv.exe after configuring a map file. Now I want to load the > > shapefile using mapscript, but it seems that apache has a problem with > > php as I wrote a simple php file to show phpinfo and it just shows the > > file content, that is, apache didn't use the php-cgi.exe script to > > understand php files. The mime section contains AddType and Action set > > to .php and /cgi-bin/php-cgi.exe. What could be the problem? > > > > Hello, > > Please note that MS4W questions should be sent to the MS4W-users mailing > list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). > > Here are my comments: > > - MS4W is designed so that Apache and PHP work out-of-the-box (no > configuration needed) > - on a fresh machine, install MS4W (sounds like you already know this step) > - once your localhost page shows the MS4W homepage, you know you are ready > - to verify that PHP is running, without making any changes to the > configuration, (assuming you are using MS4W 3.0.6) copy the file > C:/ms4w/tmp/phpinfo.php into C:/ms4w/Apache/htdocs/ and then in your web > browser goto http://localhost/phpinfo.php > - the page should show you information about your PHP install > > For any more MS4W questions, feel free to contact the MS4W-users mailing > list, or you can contact me directly for custom builds or to contribute > funding to help this great product grow and live. > > Oh one final note: I did cringe when you mention "XP": that platform is > becoming old now, similar to (when I started this) users stuck on > Windows98 years ago. Be warned that for best results with MS4W you > should be using a more recent Windows version such as Windows7 or Vista. > > Thank you for using MS4W. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120730/93b9d77d/attachment.htm> From lester at lsces.co.uk Mon Jul 30 23:29:04 2012 From: lester at lsces.co.uk (Lester Caine) Date: Tue, 31 Jul 2012 07:29:04 +0100 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> Message-ID: <50177B30.80401@lsces.co.uk> Henrique Renn? wrote: > I installed MS4W from the installer and it worked. Maybe the zip file has some > different configuration in php. I'm fairly sure that the installer has added what ever was missing although I'm sure Jeff would have commented if there WAS a difference. I do have a new windows box going together (running XP) so I will dump the zip file on that and see. I'm using Apache 2.4.x in production so it would need updating later, except that it will not need any of the web stuff when I ship it :) > Just one more question. As I'll start using mapscript, do I have to use this > list to take doubts out or another list? Well I use mapserver and php but not via ms4w, so I don't subscribe to the ms4w-users list ... anything related to creating the maps is best handled here but I'm sure that the ms4w list would be helpful as well. My own little work in progress is http://lsces.org.uk/mapper/display_map.php which uses the UK OS free data, although I have a set of historic maps of the Isle of Man which I've also processed to overlay one another. Still work in progress :( -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk From jmckenna at gatewaygeomatics.com Tue Jul 31 05:22:00 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 31 Jul 2012 09:22:00 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> Message-ID: <5017CDE8.2070802@gatewaygeomatics.com> On 12-07-30 10:54 PM, Henrique Renn? wrote: > I installed MS4W from the installer and it worked. Maybe the zip file > has some different configuration in php. > > Just one more question. As I'll start using mapscript, do I have to use > this list to take doubts out or another list? > > Thanks a lot for all your attention. > Wonderful. As you travel down this path, please refer to the PHP MapScript documentation (http://www.mapserver.org/mapscript/php/index.html), and for good karma: as you are developing your application you can contribute to the community by adding your PHP code snippets/advice to the MapServer Wiki yourself (https://github.com/mapserver/mapserver/wiki). Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jonas.eberle at gmx.de Tue Jul 31 05:56:47 2012 From: jonas.eberle at gmx.de (Jonas Eberle) Date: Tue, 31 Jul 2012 07:56:47 -0500 (CDT) Subject: [mapserver-users] GetFeatureInfo Request with Timeinterval and Tileindexed Raster Layers In-Reply-To: <1028633122.23326.1343737554184.JavaMail.root@eberle-mail.de> Message-ID: <609864060.23625.1343739407800.JavaMail.root@eberle-mail.de> Hi list, I have a tileindexed raster layer for WMS Time support. Each timestamp contains a whole image, so in GetMap requests I am only using single time requests like the following example. GetFeatureInfo requests are working with single timestamps. http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&LAYERS=mod11c3_lst_day&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913& TIME=2002-05-01 &BBOX=12523442.7133,7514065.6283,15028131.2558,10018754.1708&WIDTH=256&HEIGHT=256 U sing GetMap request with a timeinterval is working, too, but as the layers have all the same extents, only the newest one will display. But in the log file mapserver found all of the "tiles". Trying to get a GetFeatureInfo request on a timeinterval generates a table with the requested timestamps (one row for every timestamp within the interval) but the value of the raster pixel is always the same (see following example): http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&LAYERS=mod11c3_lst_day&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&FORMAT=image/png&SRS=EPSG:4326&&EXCEPTIONS=application/vnd.ogc.se_xml&BBOX=64.090575,33.757077,183.797606,72.247521&X=593&Y=295&INFO_FORMAT=text/html&QUERY_LAYERS=mod11c3_lst_day&WIDTH=1362&HEIGHT=802& TIME=2002-05-01/2002-08-01 In the template file [value_list] is written for the raster values. Requesting the single timestamps each, every timestamp has an other value. So it seems to me, that using GetFeatureInfo with a timeinterval, only the latest timestamp is queried. Is there a reason why using GetFeatureInfo with a timeinterval doesn't work? I am using Mapserver 6.0.1 on Ubuntu. In the PostGIS table the raster files are linked within the location column. Here is an excerpt of my map file (layer description): LAYER STATUS ON NAME "mod11c3_lst_day_time_idx" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=****** user=***** password=******** port=5432" DATA "geom from mod11c3_lst_day" METADATA "ows_title" "mod11c3_day TIME INDEX" "ows_srs" "EPSG:900913 EPSG:4326" "ows_extent" "49 44 180 85" "ows_timeextent" "2000-03-01/2012-05-01/P1M" "ows_timeitem" "date" "ows_timedefault" "2012-05-01" "ows_enable_request" "*" END FILTERITEM 'date' FILTER '%time%' END # raster layer LAYER NAME "mod11c3_lst_day" TYPE RASTER STATUS ON DEBUG ON PROJECTION "init=epsg:4326" END HEADER 'template_header_lst.html' FOOTER 'template_footer.html' TEMPLATE 'template.html' METADATA "ows_title" "MODIS TERRA Land Surface Temperature Daytime MONTHLY" "ows_srs" "EPSG:900913" "ows_extent" "49 44 180 85" "ows_timeextent" "2000-03-01/2012-05-01/P1M" "ows_timeitem" "date" "ows_timedefault" "2012-05-01" "ows_enable_request" "*" END TILEITEM "location" TILEINDEX "mod11c3_lst_day_time_idx" INCLUDE 'lst_colorbar2.map' END I hope anybode can help me. Thanks in advance, Jonas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120731/03fc6f98/attachment.htm> From jmckenna at gatewaygeomatics.com Tue Jul 31 07:10:07 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 31 Jul 2012 11:10:07 -0300 Subject: [mapserver-users] MapServer and PHP In-Reply-To: <CABNqA0VaQaSmTyPbENyyvUoZz60wiaAWj7JV+33XaErOa=zL8Q@mail.gmail.com> References: <CA+xQXF-xZb7npacd3aeny0uj16K9qNfESifQanT-wFK7F6zh=g@mail.gmail.com> <50169040.8070200@gatewaygeomatics.com> <CA+xQXF8wRQfzOffdyYRbdoQsAobVkGW=AQ4X=3Wut4A14LFK=Q@mail.gmail.com> <5017CDE8.2070802@gatewaygeomatics.com> <CABNqA0VaQaSmTyPbENyyvUoZz60wiaAWj7JV+33XaErOa=zL8Q@mail.gmail.com> Message-ID: <5017E73F.8050507@gatewaygeomatics.com> On 12-07-31 10:28 AM, Cristiano Sumariva wrote: > Talking about Mapserver Wiki. > How could submit some documentation notes at > http://mapserver.org/documentation.html ? > Is there a kind of wiki engine? There are stuff outdated at Mapscript. > Or should open a page at some wikipedia and try writing notes there? > Or that git wiki is a replacement for it? > Please always send your email questions to the MapServer list. If you want to contribute to the official documentation on mapserver.org then please do: - docs are stored on github now (https://github.com/mapserver/docs) - clone the docs for your git username - follow steps to checkout/pull (https://github.com/mapserver/mapserver/wiki/WorkingWithGit) - submit a pull request for any changes that you make (help: https://help.github.com/articles/using-pull-requests/) Or, if you want to add to the wiki instead, please do at: https://github.com/mapserver/mapserver/wiki Have fun! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Phil.Anzel at ftc.usda.gov Tue Jul 31 09:11:23 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Tue, 31 Jul 2012 16:11:23 +0000 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? Message-ID: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> All, We use MapServer via the SWIG interface for C#, loading a mapfile and rendering it with code similar to: mapscript.msLoadMapFromString(mapfile, null); imageObj io = mapObject.draw(); Our layers largely draw from database tables, lately we've started consuming remote WMS services and have found that these services are occassionally unavailable (such as reporting a "404" HTTP status). The "draw()" method throws an exception in such a case, reporting within the exception message the failing layer and the status. Is there a way to change this behavior? We'd like a softer landing: could we define the "must have" layers and allow others to be drawn or skipped based upon data availability. We'd also want to be able to query the mapObj regarding each layer's success or failure. Can this be done in MapServer 6.1-DEV? Thanks, - Phil Anzel, contractor for USDA/NRCS/ITC (Web Soil Survey Team) This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120731/279a225c/attachment.htm> From steve at qpublic.net Tue Jul 31 09:26:57 2012 From: steve at qpublic.net (Steve Lehr) Date: Tue, 31 Jul 2012 12:26:57 -0400 Subject: [mapserver-users] Out of the office 7/31. Please contact 386-734-1954 for immediate assistance. Message-ID: <11207311226.AA08994@qpublic.net> Out of the office 7/31. Please contact 386-734-1954 for immediate assistance. From pcorti at gmail.com Tue Jul 31 10:14:39 2012 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 31 Jul 2012 19:14:39 +0200 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> Message-ID: <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> Hi > Our layers largely draw from database tables, lately we've started consuming > remote WMS services and have found that these services are occassionally > unavailable (such as reporting a "404" HTTP status). The "draw()" method > throws an exception in such a case, reporting within the exception message > the failing layer and the status. > > > > Is there a way to change this behavior? We'd like a softer landing: could we > define the "must have" layers and allow others to be drawn or skipped based > upon data availability. We'd also want to be able to query the mapObj > regarding each layer's success or failure. > I maybe wrong, but I do not think there is a way to manage this from MapServer. As you are using mapscript to compose the map, you could check it out by code the correct response, and only in that case add the layer to the map. Another possible approach, if applicable (the data are not changing too often) could be to cache the WMS with a tile server, and use the tiles instead than WMS, with the big plus of having better performance as well. best regards p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From woodbri at swoodbridge.com Tue Jul 31 10:43:14 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 31 Jul 2012 13:43:14 -0400 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> Message-ID: <50181932.6000101@swoodbridge.com> I'm not sure if this will help, but have you tried using: MAP ... CONFIG ON_MISSING_DATA "IGNORE" ... -Steve W On 7/31/2012 1:14 PM, Paolo Corti wrote: > Hi > >> Our layers largely draw from database tables, lately we've started consuming >> remote WMS services and have found that these services are occassionally >> unavailable (such as reporting a "404" HTTP status). The "draw()" method >> throws an exception in such a case, reporting within the exception message >> the failing layer and the status. >> >> >> >> Is there a way to change this behavior? We'd like a softer landing: could we >> define the "must have" layers and allow others to be drawn or skipped based >> upon data availability. We'd also want to be able to query the mapObj >> regarding each layer's success or failure. >> > > I maybe wrong, but I do not think there is a way to manage this from MapServer. > As you are using mapscript to compose the map, you could check it out > by code the correct response, and only in that case add the layer to > the map. > Another possible approach, if applicable (the data are not changing > too often) could be to cache the WMS with a tile server, and use the > tiles instead than WMS, with the big plus of having better performance > as well. > > best regards > p > From pcorti at gmail.com Tue Jul 31 10:55:30 2012 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 31 Jul 2012 19:55:30 +0200 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <50181932.6000101@swoodbridge.com> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> <50181932.6000101@swoodbridge.com> Message-ID: <CAHXrU-K3NcHdv+H+MrvobS1184m2S9B390MD0Oz=x55kHDzSVw@mail.gmail.com> On Tue, Jul 31, 2012 at 7:43 PM, Stephen Woodbridge <woodbri at swoodbridge.com> wrote: > I'm not sure if this will help, but have you tried using: > > MAP > ... > CONFIG ON_MISSING_DATA "IGNORE" > ... > > -Steve W > Steve I think that is only for missing data in tile index, according to the documentation cheers p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From Phil.Anzel at ftc.usda.gov Tue Jul 31 11:25:29 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Tue, 31 Jul 2012 18:25:29 +0000 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> Message-ID: <A0641FF0352C64429BE486469C9AD53CA60DD2@001FSN2MPN1-071.001f.mgd2.msft.net> Paolo, Thanks for your suggestions. To a certain extent my query was an exploration of what was possible with the current MapServer API. Calls are being invoked by a back-end server using C# for map image creation, so in that context we have fine-grained control. Institutionally we're moving the WMS server whose service we consume from a remote development environment to a much more logically and physically adjacent production environment and expect the 404 errors to disappear (they had in fact been caused by an unanticipated administrative shutdown of the service appliance). Cheers! - Phil -----Original Message----- From: Paolo Corti [mailto:pcorti at gmail.com] Sent: Tuesday, July 31, 2012 11:15 AM To: Anzel, Phil - NRCS, Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to handle unavailable data source in mapObj layer? Hi > Our layers largely draw from database tables, lately we've started > consuming remote WMS services and have found that these services are > occassionally unavailable (such as reporting a "404" HTTP status). The > "draw()" method throws an exception in such a case, reporting within > the exception message the failing layer and the status. > > > > Is there a way to change this behavior? We'd like a softer landing: > could we define the "must have" layers and allow others to be drawn or > skipped based upon data availability. We'd also want to be able to > query the mapObj regarding each layer's success or failure. > I maybe wrong, but I do not think there is a way to manage this from MapServer. As you are using mapscript to compose the map, you could check it out by code the correct response, and only in that case add the layer to the map. Another possible approach, if applicable (the data are not changing too often) could be to cache the WMS with a tile server, and use the tiles instead than WMS, with the big plus of having better performance as well. best regards p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. From steve at qpublic.net Tue Jul 31 12:00:19 2012 From: steve at qpublic.net (Steve Lehr) Date: Tue, 31 Jul 2012 15:00:19 -0400 Subject: [mapserver-users] Out of the office 7/31. Please contact 386-734-1954 for immediate assistance. Message-ID: <11207311500.AA23416@qpublic.net> Out of the office 7/31. Please contact 386-734-1954 for immediate assistance. From woodbri at swoodbridge.com Tue Jul 31 12:24:19 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 31 Jul 2012 15:24:19 -0400 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <CAHXrU-K3NcHdv+H+MrvobS1184m2S9B390MD0Oz=x55kHDzSVw@mail.gmail.com> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> <CAHXrU-LQ=UYY1u6eoPug06Bmj1bfHy1iotdGzo1KCa89veLeaw@mail.gmail.com> <50181932.6000101@swoodbridge.com> <CAHXrU-K3NcHdv+H+MrvobS1184m2S9B390MD0Oz=x55kHDzSVw@mail.gmail.com> Message-ID: <501830E3.8040705@swoodbridge.com> On 7/31/2012 1:55 PM, Paolo Corti wrote: > On Tue, Jul 31, 2012 at 7:43 PM, Stephen Woodbridge > <woodbri at swoodbridge.com> wrote: >> I'm not sure if this will help, but have you tried using: >> >> MAP >> ... >> CONFIG ON_MISSING_DATA "IGNORE" >> ... >> >> -Steve W >> > > Steve > I think that is only for missing data in tile index, according to the > documentation > cheers > p > Yeah, I was afraid that might be the case, because that is how I typically use it. You might want to open a ticket to add a feature like: CONFIG ON_WMS_ERROR "IGNORE" CONFIG ON_WMS_404 "IGNORE" If this would be helpful to users. -Steve W From Phil.Anzel at ftc.usda.gov Tue Jul 31 13:23:52 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Tue, 31 Jul 2012 20:23:52 +0000 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? In-Reply-To: <CABNqA0V_=PCkw=6ubdqBYT5c5PHP27YSredqxKE412w8W43Peg@mail.gmail.com> References: <A0641FF0352C64429BE486469C9AD53CA60D69@001FSN2MPN1-071.001f.mgd2.msft.net> <CABNqA0V_=PCkw=6ubdqBYT5c5PHP27YSredqxKE412w8W43Peg@mail.gmail.com> Message-ID: <A0641FF0352C64429BE486469C9AD53CA60E17@001FSN2MPN1-071.001f.mgd2.msft.net> Thanks, Cristiano. I?ll experiment with your approach. - Phil From: Cristiano Sumariva [mailto:sumariva at gmail.com] Sent: Tuesday, July 31, 2012 1:58 PM To: Anzel, Phil - NRCS, Fort Collins, CO Subject: Re: [mapserver-users] How to handle unavailable data source in mapObj layer? Hum I guess you will need grab each outOfHouseLayer using the map.getLayer method and invoke draw on each layer. catching the exception. This way you can wait and retry, and give up some layer that did not answered removing it from mapObj. Split the mapObj into inHouseLayers and in case of failure draw home layers only. 2012/7/31 Anzel, Phil - NRCS, Fort Collins, CO <Phil.Anzel at ftc.usda.gov<mailto:Phil.Anzel at ftc.usda.gov>> All, We use MapServer via the SWIG interface for C#, loading a mapfile and rendering it with code similar to: mapscript.msLoadMapFromString(mapfile, null); imageObj io = mapObject.draw(); Our layers largely draw from database tables, lately we've started consuming remote WMS services and have found that these services are occassionally unavailable (such as reporting a "404" HTTP status). The "draw()" method throws an exception in such a case, reporting within the exception message the failing layer and the status. Is there a way to change this behavior? We'd like a softer landing: could we define the "must have" layers and allow others to be drawn or skipped based upon data availability. We'd also want to be able to query the mapObj regarding each layer's success or failure. Can this be done in MapServer 6.1-DEV? Thanks, - Phil Anzel, contractor for USDA/NRCS/ITC (Web Soil Survey Team) This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120731/99679794/attachment.htm> From alexkartatemp-1 at yahoo.com Tue Jul 31 15:42:04 2012 From: alexkartatemp-1 at yahoo.com (alexkartatemp-1 at yahoo.com) Date: Tue, 31 Jul 2012 15:42:04 -0700 (PDT) Subject: [mapserver-users] how to use attribute name in template with "_" Message-ID: <1343774524.60760.YahooMailNeo@web161805.mail.bf1.yahoo.com> Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120731/4e273123/attachment.htm>