From bowenj at peligroso.gaiaenv.com Sun Jun 20 07:31:45 2010 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Sun, 20 Jun 2010 08:31:45 -0600 Subject: Tiled Data and Queries Message-ID: <4C1E2651.3A2576EF@gaiaenv.com> Hi all, It would be nice to be able to query tiled data. Right now we are adding a monster theme as a queryonly layer in addition to individual tiles. It works; however, it can be quite slow. When I have a moment, I will explore a better option...it should be fairly straight forward. Steve, any plans to incorporate querying tiled data in the next release (please, please) :) Cheers, Jim From yassefa at dmsolutions.ca Tue Jun 1 06:34:59 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 01 Jun 2010 09:34:59 -0400 Subject: [mapserver-users] WFS =?windows-1252?Q?=96_version_relat?= =?windows-1252?Q?ed_problem?= In-Reply-To: <4C03E2F4.3000802@telefonica.net> References: <20100531160019.27071E01C9C@lists.osgeo.org> <4C03E2F4.3000802@telefonica.net> Message-ID: <4C050C83.4090300@dmsolutions.ca> On 31/05/2010 12:25 PM, Stefanie Weykam wrote: > Dear list members, > > I am having trouble with parsing the GetCapabilities response from my > WFS services: > > If I send a GetCapabilities-request indicating VERSION=1.0.0 ? > metadata having non ascii characters (like characters with accent) are > parsed without any problem. But indicating VERSION=1.1.0 or omitting > this parameter causes a parsing error at the first ?strange? character > encountered. Is there anything I can do about that? > Both, GetFeature and DescribeFeatureType work just fine with any version. > This is possibly related to http://trac.osgeo.org/mapserver/ticket/3297. The difference between wfs 1.0 and 1.1 in Mapserver GetCapabilities is that the version 1.1 uses libxml2 as the libarary to build the xml that is returned. It is parlty fixed is the current svn version. > Question n? 2 ? data type is always string: > In response to a DescribeFeatureType request, the server returns data > type ?string? for all fields. I wonder if I can specify the real data > type somehow?? This would allow thick clients to apply filter > expressions on this layer. > You should be able to set metadata at the layer level to do that: `"gml_PERIMETER_type" "double" #where PERIMETER is your attribute name best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pal.kristensen at statkart.no Tue Jun 1 07:56:09 2010 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 1 Jun 2010 07:56:09 -0700 (PDT) Subject: [mapserver-users] Styling a mapfile with SLD? Message-ID: <1275404169207-5126372.post@n2.nabble.com> Hi all! I'm trying to sett up a MapService that uses OGC SLD to override the regular MapServer rendering rules (classes and styles). For some reason MapServer does not seem to pick up the SLD, because the resulting map uses the default drawing rules defined in the map-file rather then the SLD. And BTW, is it possible to assign a SLD to a layer internally in a map-file, or do I need to provide the SLD as a parameter in the WMS GetMap request? The layer in the mapfile looks like this: LAYER NAME "PolbndA" TYPE POLYGON #TYPE LINE STATUS OFF DEBUG 5 MAXSCALEDENOM 1900000 CONNECTIONTYPE postgis CONNECTION "host=xx port=5432 dbname=xx password=xx user=xx" DATA "shape from euroerm.polbnda USING UNIQUE objectid USING SRID=4326" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Administrativie area" "wms_extent" "-15 28 47 82" #"wms_sld_url" "http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml" #"wms_sld_body" "AUTO" END PROJECTION "init=epsg:4326" END #LABELITEM "f_code" CLASSITEM "f_code" CLASS NAME "F_CODE" STYLE OUTLINECOLOR 255 100 0 SIZE 2 END LABEL COLOR 0 0 0 FONT verdana TYPE TRUETYPE SIZE 10 PARTIALS false POSITION lc END END END The corresponding SLD document that I try to apply: PolbndA erm:Style1 Default Styler PolbndA title abstract Administrative Area Administrative Area f_code FA001 #FFFFE6 1 ----- Regards, P?l Kristensen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126372p5126372.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Tue Jun 1 07:57:28 2010 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 1 Jun 2010 07:57:28 -0700 (PDT) Subject: [mapserver-users] Styling a mapfile with SLD? Message-ID: <1275404248791-5126381.post@n2.nabble.com> Hi all! I'm trying to sett up a MapService that uses OGC SLD to override the regular MapServer rendering rules (classes and styles). For some reason MapServer does not seem to pick up the SLD, because the resulting map uses the default drawing rules defined in the map-file rather then the SLD. And BTW, is it possible to assign a SLD to a layer internally in a map-file, or do I need to provide the SLD as a parameter in the WMS GetMap request? The layer in the mapfile looks like this: LAYER NAME "PolbndA" TYPE POLYGON #TYPE LINE STATUS OFF DEBUG 5 MAXSCALEDENOM 1900000 CONNECTIONTYPE postgis CONNECTION "host=xx port=5432 dbname=xx password=xx user=xx" DATA "shape from euroerm.polbnda USING UNIQUE objectid USING SRID=4326" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_title" "Administrativie area" "wms_extent" "-15 28 47 82" #"wms_sld_url" "http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml" #"wms_sld_body" "AUTO" END PROJECTION "init=epsg:4326" END #LABELITEM "f_code" CLASSITEM "f_code" CLASS NAME "F_CODE" STYLE OUTLINECOLOR 255 100 0 SIZE 2 END LABEL COLOR 0 0 0 FONT verdana TYPE TRUETYPE SIZE 10 PARTIALS false POSITION lc END END END The corresponding SLD document that I try to apply: PolbndA erm:Style1 Default Styler<Title> <FeatureTypeStyle> <!--FeatureTypeName>WFS_ERM:Fcode_FA001_A<FeatureTypeName--> <Name>PolbndA<Name> <Title>title<Title> <Abstract>abstract<Abstract> <!--SemanticTypeIdentifier>generic:all<SemanticTypeIdentifier--> <Rule> <Title>Administrative Area<Title> <Name>Administrative Area<Name> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>f_code</ogc:PropertyName> <ogc:Literal>FA001</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <PolygonSymbolizer> <Fill> <SvgParameter name="fill">#FFFFE6<SvgParameter> <SvgParameter name="fill-opacity">1<SvgParameter> <Fill> <PolygonSymbolizer> <Rule> <FeatureTypeStyle> <UserStyle> <NamedLayer> <StyledLayerDescriptor> ----- Regards, P?l Kristensen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5126381.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Weisbend at wapa.gov Tue Jun 1 08:02:40 2010 From: Weisbend at wapa.gov (Eric Weisbender) Date: Tue, 01 Jun 2010 09:02:40 -0600 Subject: [mapserver-users] Tiger Line Style File Message-ID: <4C04CCB0020000DF0005B74D@10.1.50.131> I have the Tiger Line files. I would like a style definition for the Tiger Line files for my map file. I'm just trying to save some time not defining them my self. Thanks, EW -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100601/5d5c8aa5/attachment.htm> From jt at mapmedia.de Tue Jun 1 08:23:25 2010 From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=) Date: Tue, 01 Jun 2010 17:23:25 +0200 Subject: [mapserver-users] Styling a mapfile with SLD? In-Reply-To: <1275404248791-5126381.post@n2.nabble.com> References: <1275404248791-5126381.post@n2.nabble.com> Message-ID: <4C0525ED.10803@mapmedia.de> Hi, and thanks for the 2nd try with a readable mail ;) paalkr wrote: > > Hi all! > > I'm trying to sett up a MapService that uses OGC SLD to override the regular > MapServer rendering rules (classes and styles). For some reason MapServer > does not seem to pick up the SLD, because the resulting map uses the default > drawing rules defined in the map-file rather then the SLD. 1. be sure that your umn can access the sld via http, how do you call it within the url? 2. the problem is, that umn does not provide any error-message if a sld does not work, umn has no access to it or the sld has errors. In this cases the map is rendered with the style-parameters of the mapfile. If I try to load http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml in Opera I get one syntax-error in line 41, in <StyledLayerDescriptor> the '/' is missing. And having a dedicated look, I find a lot of tags which should be closing-tags but don't have a backslash... > And BTW, is it possible to assign a SLD to a layer internally in a map-file, no > or do I need to provide the SLD as a parameter in the WMS GetMap request? yes Regards, J?rg > > The layer in the mapfile looks like this: > > LAYER > NAME "PolbndA" > TYPE POLYGON > #TYPE LINE > STATUS OFF > DEBUG 5 > MAXSCALEDENOM 1900000 > CONNECTIONTYPE postgis > CONNECTION "host=xx port=5432 dbname=xx password=xx user=xx" > DATA "shape from euroerm.polbnda USING UNIQUE objectid USING > SRID=4326" > PROCESSING "CLOSE_CONNECTION=DEFER" > METADATA > "wms_title" "Administrativie area" > "wms_extent" "-15 28 47 82" > #"wms_sld_url" "http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml" > #"wms_sld_body" "AUTO" > END > PROJECTION > "init=epsg:4326" > END > > #LABELITEM "f_code" > CLASSITEM "f_code" > > CLASS > NAME "F_CODE" > STYLE > OUTLINECOLOR 255 100 0 > SIZE 2 > END > LABEL > COLOR 0 0 0 > FONT verdana > TYPE TRUETYPE > SIZE 10 > PARTIALS false > POSITION lc > END > END > END > > The corresponding SLD document that I try to apply: > > <?xml version="1.0" encoding="utf-8"?> > <StyledLayerDescriptor version="1.1.0" > schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" > xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:se="http://www.opengis.net/se" > xmlns:xlink="http://www.w3.org/1999/xlink" > xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sld="http://www.opengis.net/sld"> > <!--Area features.--> > <NamedLayer> > <Name>PolbndA<Name> > <UserStyle> > <Name>erm:Style1<Name> > <Title>Default Styler<Title> > <FeatureTypeStyle> > <!--FeatureTypeName>WFS_ERM:Fcode_FA001_A<FeatureTypeName--> > <Name>PolbndA<Name> > <Title>title<Title> > <Abstract>abstract<Abstract> > <!--SemanticTypeIdentifier>generic:all<SemanticTypeIdentifier--> > <Rule> > <Title>Administrative Area<Title> > <Name>Administrative Area<Name> > <ogc:Filter> > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>f_code</ogc:PropertyName> > <ogc:Literal>FA001</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <PolygonSymbolizer> > <Fill> > <SvgParameter name="fill">#FFFFE6<SvgParameter> > <SvgParameter name="fill-opacity">1<SvgParameter> > <Fill> > <PolygonSymbolizer> > <Rule> > <FeatureTypeStyle> > <UserStyle> > <NamedLayer> > <StyledLayerDescriptor> > > ----- > > Regards, > P?l Kristensen -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From cjauvin at gmail.com Tue Jun 1 09:11:09 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Tue, 1 Jun 2010 12:11:09 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MapScript resultsGetShape confusion In-Reply-To: <4C047838.2030406@mapgears.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> Message-ID: <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> Hi Daniel, Thanks for the answer! In my context, I always need to retrieve a feature from the results of a query, so I should always be using resultsGetShape if I understand you correctly. The problem I have is with Python-MapScript version 5.6.3, included with MS4W beta 11. For instance with a point query, this code used to work before: if layer.queryByPoint(...) == MS_SUCCESS: res = layer.getResult(0) shp = shapeObj(MS_SHAPE_NULL) layer.resultsGetShape(shp, res.shapeindex) whereas in version 5.6.3 (at least the one included with MS4W b11 like I said) it completely hangs the server. The solution I found is to replace the call to resultsGetShape by a call to getFeature: shp = layer.getFeature(res.shapeindex) but then the fact that it works contradicts your explanation, so I am even more confused I guess! By the way, I guess it's important to note that these are Python-specific problems: I have the exact same code in PHP, and it works very fine. Thanks, Christian On Mon, May 31, 2010 at 11:02 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > Hi Christian, > > resultsGetShape() should be used only with shape ids received as part of a > query/resultset. The way queries work has changed in V5.6, and now shape ids > returned by a resultset are relative to the resultset and not to the global > dataset. That's why the new resultsGetShape() method was created. > > OTOH getFeature/getShape continue to work, but they work with absolute shape > ids, so you should use them when you read shapes by id and not going through > a query/resultset. > > In 5.6.2 or in 5.6.3, some of the drivers that were still not using the new > query mechanism properly have been fixed and that could explain the > different behavior that you get in v5.6.3. > > Daniel > > > Christian Jauvin wrote: >> >> Hi, >> >> I've been using the new layerObj.resultsGetShape function with MS >= >> 5.6.0, both with Python and PHP MapScript. >> >> (1) My first issue is that it seems that something changed with >> version 5.6.3 of Python MS (I'm using MS4W beta 11) because calls to >> that function that used to work now hangs the server. The PHP >> equivalent code still works fine though. >> >> (2) My second issue is with the signature difference between the >> Python and PHP versions of the same function: if I want to retrieve a >> certain queried shape in Python, I do this: >> >> shp = shapeObj(MS_SHAPE_NULL) >> layer.resultsGetShape(shp, target_shpindex) >> >> and then shp is what I want, whereas in PHP it takes only one >> argument, and returns the desired shape. Why is that? >> >> (3) My third issue is that to make my first issue works, I noticed >> that I can simply use layerObj.getFeature instead, which seems to be >> doing the same job. What is the difference between those? >> >> Best regards, >> >> Christian >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > > -- > Daniel Morissette > http://www.mapgears.com/ > From dmorissette at mapgears.com Tue Jun 1 10:27:35 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 01 Jun 2010 13:27:35 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion In-Reply-To: <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> Message-ID: <4C054307.6050802@mapgears.com> Christian Jauvin wrote: > > The solution I found is to replace the call to resultsGetShape by a > call to getFeature: > > shp = layer.getFeature(res.shapeindex) > > but then the fact that it works contradicts your explanation, so I am > even more confused I guess! > It is possible that for shapefiles, the ids are still the same between the two methods, that would explain why getFeature() still works for you, but doesn't explain why Python's resultsGetShape() fails. However, I know that with most other connection types (other than shapefile), the shape index returned by a resultset are different from the absolute shape index. About the Python issue, if you can file a ticket with a small testcase to reproduce (data + mapfile + exact steps to reproduce) then one of us could try to have a look. Daniel -- Daniel Morissette http://www.mapgears.com/ From cjauvin at gmail.com Tue Jun 1 11:13:22 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Tue, 1 Jun 2010 14:13:22 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion In-Reply-To: <4C054307.6050802@mapgears.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> <4C054307.6050802@mapgears.com> Message-ID: <AANLkTinSxU5SWsSrFfG0GQjNwTSasuVWH6E2eTTAgui-@mail.gmail.com> Hi Daniel, > About the Python issue, if you can file a ticket with a small testcase to > reproduce (data + mapfile + exact steps to reproduce) then one of us could > try to have a look. I just checked using the latest "python-mapscript 5.6.3-2~lucid1" package from UbuntuGIS, and it has the same issue. So it's not just MS4W beta 11. However given that the problem occurs only while using a PostGIS connection, how should I package my bug ticket? Thanks, Christian From dmorissette at mapgears.com Tue Jun 1 11:22:38 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 01 Jun 2010 14:22:38 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion In-Reply-To: <AANLkTinSxU5SWsSrFfG0GQjNwTSasuVWH6E2eTTAgui-@mail.gmail.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> <4C054307.6050802@mapgears.com> <AANLkTinSxU5SWsSrFfG0GQjNwTSasuVWH6E2eTTAgui-@mail.gmail.com> Message-ID: <4C054FEE.3080902@mapgears.com> Christian Jauvin wrote: > Hi Daniel, > >> About the Python issue, if you can file a ticket with a small testcase to >> reproduce (data + mapfile + exact steps to reproduce) then one of us could >> try to have a look. > > I just checked using the latest "python-mapscript 5.6.3-2~lucid1" > package from UbuntuGIS, and it has the same issue. So it's not just > MS4W beta 11. > > However given that the problem occurs only while using a PostGIS > connection, how should I package my bug ticket? > Errr... sorry, all that time I thought you were using shapefiles. If you're using postgis then the fact that getFeature() still works doesn't make sense (or shouldn't anyway). Perhaps set DEBUG 5 in your mapfile and layer and look in the debug output at the query that is sent to PostGIS and that causes the app to hang. (http://www.mapserver.org/optimization/debugging.html) Daniel -- Daniel Morissette http://www.mapgears.com/ From cjauvin at gmail.com Tue Jun 1 11:47:09 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Tue, 1 Jun 2010 14:47:09 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion In-Reply-To: <4C054FEE.3080902@mapgears.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> <4C054307.6050802@mapgears.com> <AANLkTinSxU5SWsSrFfG0GQjNwTSasuVWH6E2eTTAgui-@mail.gmail.com> <4C054FEE.3080902@mapgears.com> Message-ID: <AANLkTinf5NnUiHMwgPfuzSzlciQOXtnpVC4Ymr_5ImRI@mail.gmail.com> > Errr... sorry, all that time I thought you were using shapefiles. In fact I use both, but then it's only the PG connection type that is causing the issue. I did what you suggested, and added: CONFIG "MS_ERRORFILE" "<error file>" CONFIG "CPL_DEBUG" "ON" DEBUG 5 to my mapfile, and performed my query again. It generated a very long file (200K+ lines!) with only two types of line: [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition error. Parsing error near (null):(line 208) [...] [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called for record = 338 [...] My mapfile doesn't even have 208 lines, and apart from the debug stuff just added, it always worked fine. Any idea? From dmorissette at mapgears.com Tue Jun 1 14:02:35 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 01 Jun 2010 17:02:35 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion In-Reply-To: <AANLkTinf5NnUiHMwgPfuzSzlciQOXtnpVC4Ymr_5ImRI@mail.gmail.com> References: <AANLkTintnV_c3rM16Dw8xSuhYAOLQdqC2WQm6_3eeB1p@mail.gmail.com> <4C047838.2030406@mapgears.com> <AANLkTimfEoJA7Uuehfx7LXU2e-8EN-KotM1B-6aaZqPm@mail.gmail.com> <4C054307.6050802@mapgears.com> <AANLkTinSxU5SWsSrFfG0GQjNwTSasuVWH6E2eTTAgui-@mail.gmail.com> <4C054FEE.3080902@mapgears.com> <AANLkTinf5NnUiHMwgPfuzSzlciQOXtnpVC4Ymr_5ImRI@mail.gmail.com> Message-ID: <4C05756B.9080003@mapgears.com> Christian Jauvin wrote: > > I did what you suggested, and added: > > CONFIG "MS_ERRORFILE" "<error file>" > CONFIG "CPL_DEBUG" "ON" > DEBUG 5 > Did you also include DEBUG 5 inside the POSTGIS layer itself? > to my mapfile, and performed my query again. It generated a very long > file (200K+ lines!) with only two types of line: > > [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition > error. Parsing error near (null):(line 208) > [...] > [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called > for record = 338 > [...] > 200k times the same message sounds like an infinite loop of some sort. Perhaps look at the first few lines of debug/error messages. There may be a different message that would have been output *before* entering the infinite loop and that could give a hint about what is happening. Just a guess... can't do much more from here. What is the last version that worked fine? 5.6.2? Daniel -- Daniel Morissette http://www.mapgears.com/ From pal.kristensen at statkart.no Tue Jun 1 23:39:32 2010 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 1 Jun 2010 23:39:32 -0700 (PDT) Subject: [mapserver-users] Re: Styling a mapfile with SLD? In-Reply-To: <4C0525ED.10803@mapmedia.de> References: <1275404248791-5126381.post@n2.nabble.com> <4C0525ED.10803@mapmedia.de> Message-ID: <1275460772718-5129506.post@n2.nabble.com> Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. ----- Regards, P?l Kristensen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mschulz at webgis.de Wed Jun 2 03:04:29 2010 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 2 Jun 2010 12:04:29 +0200 Subject: [mapserver-users] Re: Styling a mapfile with SLD? In-Reply-To: <1275460772718-5129506.post@n2.nabble.com> References: <1275404248791-5126381.post@n2.nabble.com> <4C0525ED.10803@mapmedia.de> <1275460772718-5129506.post@n2.nabble.com> Message-ID: <AANLkTimLgROP7ArJMtnM7Qf66QxAXERn7AN8nVzr7-0E@mail.gmail.com> Hi, > Do you know if there is a ticket regarding the lack of error messages when > MapServer fails to either pick up or parse a SLD document? If not I think > that I will write one, and encourage one of my colleagues to have a look at > the source and maybe write a patch for it. if you enable debugging for the mapfile and layer that should use an sld document/url, I think you will get errors in the debug log. At least with recent versions of mapserver. Cheers, Michael > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.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 > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From tom at vdputte.nl Wed Jun 2 03:34:28 2010 From: tom at vdputte.nl (Tom van der Putte) Date: Wed, 02 Jun 2010 12:34:28 +0200 Subject: [mapserver-users] Mapscript Rasterquery returns empty result Message-ID: <4321.1275474868@vdputte.nl> Hi Frank, Alexander, Again thanks for your reply; I've been abroad for a month and haven't had time to check it out. However, I've ben doing some work on it today, and tested the following: I made a test tiff, with 2 large areas surrounded by NoData. When clicking anywhere in any one of the 2 big areas I get the response: {"_handle_":Resource id #47,"numlines":1,"type":0,"index":-1,"tileindex":-1,"classindex":0,"numvalues":8,"text":"","bounds":{"_handle_":Resource id #48,"minx":401265.0032,"miny":633815.31,"maxx":401265.0032,"maxy":633815.31},"values":[null,null,null,null,null,null,null,null]} When I click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }http://www.vdputte.nl/test_tiff.rar *** For the MAP part of the mapfile, I use the following (I removed most non-essential things): EXTENT -1000000 -1200000 2902206 1773859 IMAGETYPE PNG24 SIZE 600 600 STATUS ON UNITS METERS NAME "Test_Map" PROJECTION 'proj=lcc' 'lat_1=52.67000000000002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the test LAYER: LAYER NAME "mask" DATA "c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img" TYPE RASTER STATUS ON LAYER TEMPLATE "dummy.html" CLASS NAME "1" EXPRESSION ([pixel] == 1) STYLE color 255 0 0 END END CLASS NAME "2" EXPRESSION ([pixel] == 2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer = "mask"; $oLayer = $oMap->getLayerByName($szLayer); //get Layer $oMap->prepareQuery(); // To be sure no CRS problems arise, I use these coords, smack in the middle of the left area $x = 360429; $y = 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point right between the 2 areas */ $oPoint = ms_newPointObj(); //Create Point $oPoint->setXY($x,$y); $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status = $oLayer->open(); $result = $oLayer->getResult(0); //Get Result $numResults = $oLayer->getNumResults(); $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Can anybody confirm that they get the same behaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdam warmerdam at pobox.com sent: Tom van der Putte wrote: > Hi, > > I have the following code: > > $oMap->prepareQuery(); > $oPoint = ms_newPointObj(); > $oPoint->setXY($x,$y); //coords received from a AJAX call > > > $oLayer = $oMap->GetLayerByName($szLayer); //Name received from a AJAX call > $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); > $status = $oLayer->open(); > $result = $oLayer->getResult(0); > $numResults = $oLayer->getNumResults(); > $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); > echo(var2json($shape)); > > This results in the follwing json code to be returned: > > |{"_handle_":Resource id #45,"numlines":1,"type":0,"index":-1, > > "tileindex":-1,"classindex":0,"numvalues":8,"text":"", > > "bounds":{"_handle_":Resource id #46,"minx":607000, > > "miny":677000,"maxx":607000,"maxy":677000}, > > "values":[null,null,null,null,null,null,null,null]}| > > No matter what I try, it keeps returning empty shapes. How can this be? Tom, I agree with Alexander that you should be carefully reviewing your input coordinate and insuring it is in the same coordinate system as the raster file. The returned values are expected if you are attempting to fetch a non-existant result shape. If you simplify your test case down as much as you can and you still can't figure out why you do not get a result then you could try to bundle this up and submit it as a ticket. Keep in mind that such a ticket is much more likely to be acted on if you make it *easy* for the developer to reproduce your problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100602/0d829db6/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Wed Jun 2 04:23:17 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 Jun 2010 14:23:17 +0300 Subject: [mapserver-users] Mapscript Rasterquery returns empty result In-Reply-To: <4321.1275474868@vdputte.nl> References: <4321.1275474868@vdputte.nl> Message-ID: <CC197224AC75CE4DB23F739B16891B8601879BB9@tikka.haapa.mmm.fi> Hi, LAYER TEMPLATE "dummy.html"? Does such a thing exist? Have you tried with plain TEMPLATE "dummy.html"? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Tom van der Putte L?hetetty: 2. kes?kuuta 2010 13:34 Vastaanottaja: Frank Warmerdam; Alexander Petkov Kopio: mapserver-users at lists.osgeo.org Aihe: Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result Hi Frank, Alexander, Again thanks for your reply; I've been abroad for a month and haven't had time to check it out. However, I've ben doing some work on it today, and tested the following: I made a test tiff, with 2 large areas surrounded by NoData. When clicking anywhere in any one of the 2 big areas I get the response: {"_handle_":Resource id #47,"numlines":1,"type":0,"index":-1,"tileindex":-1,"classindex":0,"numvalues":8,"text":"","bounds":{"_handle_":Resource id #48,"minx":401265.0032,"miny":633815.31,"maxx":401265.0032,"maxy":633815.31},"values":[null,null,null,null,null,null,null,null]} When I click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:\ms4w\apps\fusion\MapServer\php\GetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:\ms4w\apps\fusion\MapServer\php\GetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: http://www.vdputte.nl/test_tiff.rar *** For the MAP part of the mapfile, I use the following (I removed most non-essential things): EXTENT -1000000 -1200000 2902206 1773859 IMAGETYPE PNG24 SIZE 600 600 STATUS ON UNITS METERS NAME "Test_Map" PROJECTION 'proj=lcc' 'lat_1=52.67000000000002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the test LAYER: LAYER NAME "mask" DATA "c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img" TYPE RASTER STATUS ON LAYER TEMPLATE "dummy.html" CLASS NAME "1" EXPRESSION ([pixel] == 1) STYLE color 255 0 0 END END CLASS NAME "2" EXPRESSION ([pixel] == 2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer = "mask"; $oLayer = $oMap->getLayerByName($szLayer); //get Layer $oMap->prepareQuery(); // To be sure no CRS problems arise, I use these coords, smack in the middle of the left area $x = 360429; $y = 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point right between the 2 areas */ $oPoint = ms_newPointObj(); //Create Point $oPoint->setXY($x,$y); $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status = $oLayer->open(); $result = $oLayer->getResult(0); //Get Result $numResults = $oLayer->getNumResults(); $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Can anybody confirm that they get the same behaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdam warmerdam at pobox.com sent: Tom van der Putte wrote: > Hi, > > I have the following code: > > $oMap->prepareQuery(); > $oPoint = ms_newPointObj(); > $oPoint->setXY($x,$y); //coords received from a AJAX call > > > $oLayer = $oMap->GetLayerByName($szLayer); //Name received from a AJAX call > $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); > $status = $oLayer->open(); > $result = $oLayer->getResult(0); > $numResults = $oLayer->getNumResults(); > $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); > echo(var2json($shape)); > > This results in the follwing json code to be returned: > > |{"_handle_":Resource id #45,"numlines":1,"type":0,"index":-1, > > "tileindex":-1,"classindex":0,"numvalues":8,"text":"", > > "bounds":{"_handle_":Resource id #46,"minx":607000, > > "miny":677000,"maxx":607000,"maxy":677000}, > > "values":[null,null,null,null,null,null,null,null]}| > > No matter what I try, it keeps returning empty shapes. How can this be? Tom, I agree with Alexander that you should be carefully reviewing your input coordinate and insuring it is in the same coordinate system as the raster file. The returned values are expected if you are attempting to fetch a non-existant result shape. If you simplify your test case down as much as you can and you still can't figure out why you do not get a result then you could try to bundle this up and submit it as a ticket. Keep in mind that such a ticket is much more likely to be acted on if you make it *easy* for the developer to reproduce your problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com <javascript:top.opencompose('warmerdam at pobox.com','','','')> light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100602/6acb0547/attachment.htm> From tom at vdputte.nl Wed Jun 2 04:49:07 2010 From: tom at vdputte.nl (Tom van der Putte) Date: Wed, 02 Jun 2010 13:49:07 +0200 Subject: [mapserver-users] Mapscript Rasterquery returns empty result Message-ID: <1271.1275479347@vdputte.nl> Hi Jukka, Hmmm that does look strange, but as it turns out, removing "LAYER" didn't help. Thx anyway ;) Tom On Wed 02/06/10 13:23 , "Rahkonen Jukka" Jukka.Rahkonen at mmmtike.fi sent: BODY { FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif } Hi, LAYER TEMPLATE "dummy.html"? Does such a thing exist? Have you tried with plain TEMPLATE "dummy.html"? -Jukka Rahkonen- ------------------------- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Tom van der Putte L?hetetty: 2. kes?kuuta 2010 13:34 Vastaanottaja: Frank Warmerdam; Alexander Petkov Kopio: mapserver-users at lists.osgeo.org Aihe: Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result Hi Frank, Alexander, Again thanks for your reply; I've been abroad for a month and haven't had time to check it out. However, I've ben doing some work on it today, and tested the following: I made a test tiff, with 2 large areas surrounded by NoData. When clicking anywhere in any one of the 2 big areas I get the response: {"_handle_":Resource id #47,"numlines":1,"type":0,"index":-1,"tileindex":-1,"classindex":0,"numvalues":8,"text":"","bounds":{"_handle_":Resource id #48,"minx":401265.0032,"miny":633815.31,"maxx":401265.0032,"maxy":633815.31},"values":[null,null,null,null,null,null,null,null]} When I click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: BODY { FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif } http://www.vdputte.nl/test_tiff.rar*** For the MAP part of the mapfile, I use the following (I removed most non-essential things): EXTENT -1000000 -1200000 2902206 1773859 IMAGETYPE PNG24 SIZE 600 600 STATUS ON UNITS METERS NAME "Test_Map" PROJECTION 'proj=lcc' 'lat_1=52.67000000000002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the test LAYER: LAYER NAME "mask" DATA "c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img" TYPE RASTER STATUS ON LAYER TEMPLATE "dummy.html" CLASS NAME "1" EXPRESSION ([pixel] == 1) STYLE color 255 0 0 END END CLASS NAME "2" EXPRESSION ([pixel] == 2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer = "mask"; $oLayer = $oMap->getLayerByName($szLayer); //get Layer $oMap->prepareQuery(); // To be sure no CRS problems arise, I use these coords, smack in the middle of the left area $x = 360429; $y = 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point right between the 2 areas */ $oPoint = ms_newPointObj(); //Create Point $oPoint->setXY($x,$y); $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status = $oLayer->open(); $result = $oLayer->getResult(0); //Get Result $numResults = $oLayer->getNumResults(); $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Can anybody confirm that they get the same behaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdam warmerdam at pobox.com sent: Tom van der Putte wrote: > Hi, > > I have the following code: > > $oMap->prepareQuery(); > $oPoint = ms_newPointObj(); > $oPoint->setXY($x,$y); //coords received from a AJAX call > > > $oLayer = $oMap->GetLayerByName($szLayer); //Name received from a AJAX call > $status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1); > $status = $oLayer->open(); > $result = $oLayer->getResult(0); > $numResults = $oLayer->getNumResults(); > $shape = $oLayer->getShape($result->shapeindex,$result->tileindex); > echo(var2json($shape)); > > This results in the follwing json code to be returned: > > |{"_handle_":Resource id #45,"numlines":1,"type":0,"index":-1, > > "tileindex":-1,"classindex":0,"numvalues":8,"text":"", > > "bounds":{"_handle_":Resource id #46,"minx":607000, > > "miny":677000,"maxx":607000,"maxy":677000}, > > "values":[null,null,null,null,null,null,null,null]}| > > No matter what I try, it keeps returning empty shapes. How can this be? Tom, I agree with Alexander that you should be carefully reviewing your input coordinate and insuring it is in the same coordinate system as the raster file. The returned values are expected if you are attempting to fetch a non-existant result shape. If you simplify your test case down as much as you can and you still can't figure out why you do not get a result then you could try to bundle this up and submit it as a ticket. Keep in mind that such a ticket is much more likely to be acted on if you make it *easy* for the developer to reproduce your problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, light and sound - activate the windows | -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100602/c875f088/attachment.htm> From yassefa at dmsolutions.ca Wed Jun 2 05:21:30 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 02 Jun 2010 08:21:30 -0400 Subject: [mapserver-users] Re: Styling a mapfile with SLD? In-Reply-To: <1275460772718-5129506.post@n2.nabble.com> References: <1275404248791-5126381.post@n2.nabble.com> <4C0525ED.10803@mapmedia.de> <1275460772718-5129506.post@n2.nabble.com> Message-ID: <4C064CCA.9020306@dmsolutions.ca> On 02/06/2010 2:39 AM, paalkr wrote: > Hi! > > Thanks! I really don't understand how that poorly formatted SLD slipped > trough the oxygen XML editor, obviously there are many close-tags that > misses the backslash. > > Do you know if there is a ticket regarding the lack of error messages when > MapServer fails to either pick up or parse a SLD document? If not I think > that I will write one, and encourage one of my colleagues to have a look at > the source and maybe write a patch for it. > > There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. best regards, > ----- > > Regards, > P?l Kristensen > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jmckenna at gatewaygeomatics.com Wed Jun 2 05:39:04 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 02 Jun 2010 09:39:04 -0300 Subject: [mapserver-users] Mapscript Rasterquery returns empty result In-Reply-To: <4321.1275474868@vdputte.nl> References: <4321.1275474868@vdputte.nl> Message-ID: <4C0650E8.9050208@gatewaygeomatics.com> Tom van der Putte wrote: > As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? > You could test this yourself with MapServer 5.6.3 quickly by extracting MS4W version 3.0 onto a different drive. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Wed Jun 2 06:01:48 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 Jun 2010 16:01:48 +0300 Subject: [mapserver-users] Re: Styling a mapfile with SLD? In-Reply-To: <4C064CCA.9020306@dmsolutions.ca> References: <1275404248791-5126381.post@n2.nabble.com> <4C0525ED.10803@mapmedia.de><1275460772718-5129506.post@n2.nabble.com> <4C064CCA.9020306@dmsolutions.ca> Message-ID: <CC197224AC75CE4DB23F739B16891B8601879BBF@tikka.haapa.mmm.fi> Yewondwossen Assefa wrote: > On 02/06/2010 2:39 AM, paalkr wrote: > > Hi! > > > > Thanks! I really don't understand how that poorly formatted > SLD slipped > > trough the oxygen XML editor, obviously there are many > close-tags that > > misses the backslash. > > > > Do you know if there is a ticket regarding the lack of > error messages when > > MapServer fails to either pick up or parse a SLD document? > If not I think > > that I will write one, and encourage one of my colleagues > to have a look at > > the source and maybe write a patch for it. > > > > > There is an ol one > http://trac.osgeo.org/mapserver/ticket/1471 that I > just updated. The errors are trapped but at this point we let the WMS > request succeed without the SLD. I believe the correct way > would be to > return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- From yassefa at dmsolutions.ca Wed Jun 2 06:24:09 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 02 Jun 2010 09:24:09 -0400 Subject: [mapserver-users] Re: Styling a mapfile with SLD? In-Reply-To: <CC197224AC75CE4DB23F739B16891B8601879BBF@tikka.haapa.mmm.fi> References: <1275404248791-5126381.post@n2.nabble.com> <4C0525ED.10803@mapmedia.de><1275460772718-5129506.post@n2.nabble.com> <4C064CCA.9020306@dmsolutions.ca> <CC197224AC75CE4DB23F739B16891B8601879BBF@tikka.haapa.mmm.fi> Message-ID: <4C065B79.2000204@dmsolutions.ca> On 02/06/2010 9:01 AM, Rahkonen Jukka wrote: > Yewondwossen Assefa wrote: > > >> On 02/06/2010 2:39 AM, paalkr wrote: >> >>> Hi! >>> >>> Thanks! I really don't understand how that poorly formatted >>> >> SLD slipped >> >>> trough the oxygen XML editor, obviously there are many >>> >> close-tags that >> >>> misses the backslash. >>> >>> Do you know if there is a ticket regarding the lack of >>> >> error messages when >> >>> MapServer fails to either pick up or parse a SLD document? >>> >> If not I think >> >>> that I will write one, and encourage one of my colleagues >>> >> to have a look at >> >>> the source and maybe write a patch for it. >>> >>> >>> >> There is an ol one >> http://trac.osgeo.org/mapserver/ticket/1471 that I >> just updated. The errors are trapped but at this point we let the WMS >> request succeed without the SLD. I believe the correct way >> would be to >> return an exception. >> > > This needs some consideration. Think about an end user who is using > somew ready made application which is set to get styles from an external > SLD. Now if this SLD gets broken, which would you prefer as an user: a > correct exception without a map, or a map which may have wrong styling? > I would take the map. > > -Jukka Rahkonen- > > I guess it is debatable. I have not seen something in the specs re. this issue. I will send a note to wms-dev list at OGC to see if there is something in the specs that deals with this issue. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From cjauvin at gmail.com Wed Jun 2 08:17:30 2010 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 2 Jun 2010 11:17:30 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion [solved!] Message-ID: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, "tileindex": resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > Christian Jauvin wrote: >> >> I did what you suggested, and added: >> >> CONFIG "MS_ERRORFILE" "<error file>" >> CONFIG "CPL_DEBUG" "ON" >> DEBUG 5 >> > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > >> to my mapfile, and performed my query again. It generated a very long >> file (200K+ lines!) with only two types of line: >> >> [Tue Jun ?1 14:36:01 2010].765230 getSymbol(): Symbol definition >> error. Parsing error near (null):(line 208) >> [...] >> [Tue Jun ?1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called >> for record = 338 >> [...] >> > > 200k times the same message sounds like an infinite loop of some sort. > > Perhaps look at the first few lines of debug/error messages. There may be a > different message that would have been output *before* entering the infinite > loop and that could give a hint about what is happening. Just a guess... > can't do much more from here. > > What is the last version that worked fine? 5.6.2? > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aboudreault at mapgears.com Wed Jun 2 08:24:53 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 2 Jun 2010 11:24:53 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion [solved!] In-Reply-To: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> References: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> Message-ID: <201006021124.53296.aboudreault@mapgears.com> Not sure why it is required with a PostGIS layer, but it shouldn't. In PHP, -1 is passe when the tileindex is not specified. Please fill a bug and assign it to "aboudreault", I'm going to take a look. Thanks, Alan On June 2, 2010 11:17:30 am Christian Jauvin wrote: > Ok.. so with a lot of fiddling around (and with inspiration from a > Frank Warmerdam's testing script) I've been able to find the cause of > the problem, as well as its solution: with a PostGIS connected layer, > a call to resultsGetShape *has* to include the third parameter, > "tileindex": > > resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 > resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! > > I don't know if it's really a bug, but it contradicts the > documentation, in which the tileindex argument is optional, and it > wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. > > By the way, an initial observation I made was wrong: it also affects > the PHP version, and the workaround is the same. > > Best regards, > > Christian > > > On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette > > <dmorissette at mapgears.com> wrote: > > Christian Jauvin wrote: > >> I did what you suggested, and added: > >> > >> CONFIG "MS_ERRORFILE" "<error file>" > >> CONFIG "CPL_DEBUG" "ON" > >> DEBUG 5 > > > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > > >> to my mapfile, and performed my query again. It generated a very long > >> file (200K+ lines!) with only two types of line: > >> > >> [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition > >> error. Parsing error near (null):(line 208) > >> [...] > >> [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called > >> for record = 338 > >> [...] > > > > 200k times the same message sounds like an infinite loop of some sort. > > > > Perhaps look at the first few lines of debug/error messages. There may be > > a different message that would have been output *before* entering the > > infinite loop and that could give a hint about what is happening. Just a > > guess... can't do much more from here. > > > > What is the last version that worked fine? 5.6.2? > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.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 > -- Alan Boudreault Mapgears http://www.mapgears.com From wal3 at mindspring.com Wed Jun 2 17:11:56 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 2 Jun 2010 20:11:56 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion [solved!] In-Reply-To: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> References: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> Message-ID: <AA393ED38DB84417ADD48A0CDB18E32B@Worthlaptop> This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. I'm in the middle of a project and did not have time to figure out what was causing the problem. The only change was the change to the MapServer version so I quickly reverted back. I'm using PHP Mapscript. I'll see if I can find the time to check to see if this is the problem I was having. Worth -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian Jauvin Sent: Wednesday, June 02, 2010 11:18 AM To: Daniel Morissette Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapScript resultsGetShape confusion [solved!] Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, "tileindex": resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > Christian Jauvin wrote: >> >> I did what you suggested, and added: >> >> CONFIG "MS_ERRORFILE" "<error file>" >> CONFIG "CPL_DEBUG" "ON" >> DEBUG 5 >> > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > >> to my mapfile, and performed my query again. It generated a very long >> file (200K+ lines!) with only two types of line: >> >> [Tue Jun ?1 14:36:01 2010].765230 getSymbol(): Symbol definition >> error. Parsing error near (null):(line 208) >> [...] >> [Tue Jun ?1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called >> for record = 338 >> [...] >> > > 200k times the same message sounds like an infinite loop of some sort. > > Perhaps look at the first few lines of debug/error messages. There may be a > different message that would have been output *before* entering the infinite > loop and that could give a hint about what is happening. Just a guess... > can't do much more from here. > > What is the last version that worked fine? 5.6.2? > > Daniel > -- > Daniel Morissette > http://www.mapgears.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 wal3 at mindspring.com Thu Jun 3 05:57:27 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Thu, 3 Jun 2010 08:57:27 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion [solved!] In-Reply-To: <AA393ED38DB84417ADD48A0CDB18E32B@Worthlaptop> References: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> <AA393ED38DB84417ADD48A0CDB18E32B@Worthlaptop> Message-ID: <D441B4B6374842358938AEC20093FC8F@Worthlaptop> Yes, adding the tileindex argument to the resultsGetShape call in PHP mapscript seems to have solved my problem with moving my application from MapServer 5.6.1 to 5.6.3. Worth -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: Wednesday, June 02, 2010 8:12 PM To: 'Christian Jauvin'; 'Daniel Morissette' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapScript resultsGetShape confusion [solved!] This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. I'm in the middle of a project and did not have time to figure out what was causing the problem. The only change was the change to the MapServer version so I quickly reverted back. I'm using PHP Mapscript. I'll see if I can find the time to check to see if this is the problem I was having. Worth -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian Jauvin Sent: Wednesday, June 02, 2010 11:18 AM To: Daniel Morissette Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapScript resultsGetShape confusion [solved!] Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, "tileindex": resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > Christian Jauvin wrote: >> >> I did what you suggested, and added: >> >> CONFIG "MS_ERRORFILE" "<error file>" >> CONFIG "CPL_DEBUG" "ON" >> DEBUG 5 >> > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > >> to my mapfile, and performed my query again. It generated a very long >> file (200K+ lines!) with only two types of line: >> >> [Tue Jun ?1 14:36:01 2010].765230 getSymbol(): Symbol definition >> error. Parsing error near (null):(line 208) >> [...] >> [Tue Jun ?1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called >> for record = 338 >> [...] >> > > 200k times the same message sounds like an infinite loop of some sort. > > Perhaps look at the first few lines of debug/error messages. There may be a > different message that would have been output *before* entering the infinite > loop and that could give a hint about what is happening. Just a guess... > can't do much more from here. > > What is the last version that worked fine? 5.6.2? > > Daniel > -- > Daniel Morissette > http://www.mapgears.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 aboudreault at mapgears.com Thu Jun 3 08:22:02 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 3 Jun 2010 11:22:02 -0400 Subject: [mapserver-users] MapScript resultsGetShape confusion [solved!] In-Reply-To: <D441B4B6374842358938AEC20093FC8F@Worthlaptop> References: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> <AA393ED38DB84417ADD48A0CDB18E32B@Worthlaptop> <D441B4B6374842358938AEC20093FC8F@Worthlaptop> Message-ID: <201006031122.02410.aboudreault@mapgears.com> Steve and I are in discussion to solve this issue. If you have other useful information or want to follow the bug processing, here's the trac ticket: http://trac.osgeo.org/mapserver/ticket/3467 regards, Alan On June 3, 2010 08:57:27 am Worth Lutz wrote: > Yes, adding the tileindex argument to the resultsGetShape call in PHP > mapscript seems to have solved my problem with moving my application from > MapServer 5.6.1 to 5.6.3. > > Worth > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz > Sent: Wednesday, June 02, 2010 8:12 PM > To: 'Christian Jauvin'; 'Daniel Morissette' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapScript resultsGetShape confusion > [solved!] > > This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. > > I'm in the middle of a project and did not have time to figure out what was > causing the problem. The only change was the change to the MapServer > version so I quickly reverted back. I'm using PHP Mapscript. I'll see if > I can find the time to check to see if this is the problem I was having. > > Worth > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian > Jauvin > Sent: Wednesday, June 02, 2010 11:18 AM > To: Daniel Morissette > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapScript resultsGetShape confusion > [solved!] > > Ok.. so with a lot of fiddling around (and with inspiration from a > Frank Warmerdam's testing script) I've been able to find the cause of > the problem, as well as its solution: with a PostGIS connected layer, > a call to resultsGetShape *has* to include the third parameter, > "tileindex": > > resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 > resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! > > I don't know if it's really a bug, but it contradicts the > documentation, in which the tileindex argument is optional, and it > wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. > > By the way, an initial observation I made was wrong: it also affects > the PHP version, and the workaround is the same. > > Best regards, > > Christian > > > On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette > > <dmorissette at mapgears.com> wrote: > > Christian Jauvin wrote: > >> I did what you suggested, and added: > >> > >> CONFIG "MS_ERRORFILE" "<error file>" > >> CONFIG "CPL_DEBUG" "ON" > >> DEBUG 5 > > > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > > >> to my mapfile, and performed my query again. It generated a very long > >> file (200K+ lines!) with only two types of line: > >> > >> [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition > >> error. Parsing error near (null):(line 208) > >> [...] > >> [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called > >> for record = 338 > >> [...] > > > > 200k times the same message sounds like an infinite loop of some sort. > > > > Perhaps look at the first few lines of debug/error messages. There may be > > a > > > different message that would have been output *before* entering the > > infinite > > > loop and that could give a hint about what is happening. Just a guess... > > can't do much more from here. > > > > What is the last version that worked fine? 5.6.2? > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.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 > -- Alan Boudreault Mapgears http://www.mapgears.com From francesco.pirotti at unipd.it Thu Jun 3 10:16:50 2010 From: francesco.pirotti at unipd.it (francesco) Date: Thu, 03 Jun 2010 19:16:50 +0200 Subject: [mapserver-users] PHP mapscript does not use GRID information when reprojecting rect object [solved??] In-Reply-To: <201006031122.02410.aboudreault@mapgears.com> References: <AANLkTimlXpuB7HCYfhOlOZGdKigAlwsYpaUSsqLaelpt@mail.gmail.com> <AA393ED38DB84417ADD48A0CDB18E32B@Worthlaptop> <D441B4B6374842358938AEC20093FC8F@Worthlaptop> <201006031122.02410.aboudreault@mapgears.com> Message-ID: <4C07E382.1030202@unipd.it> Hello list, Some time ago I posted a problem about reprojection using mapscript. I "solved" it sort of say, and I think that this note can help users as well as developers. To reassume: I had a map projection and a layer in another projection. Mapserver perfectly uses the GRIDS in the projection information of the layer when it draws, but it did NOT use them when calling the mapscript function project( projectionObj proj_in, projectionObj proj_out ) . The answer is that the "null" keyword gave the incorrect reprojection. Deleting the ",null" string and leaving only the name of the grid file will work fine. INCORRECT "nadgrids=lombardia_tot.gsb,null" CORRECT "nadgrids=lombardia_tot.gsb" *main project projection* PROJECTION "proj=utm" "zone=32" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END *layer projection* PROJECTION "proj=tmerc" "lat_0=0" "lon_0=9" "k=0.9996" "x_0=1500000" "y_0=0" "ellps=intl" "units=m" "no_defs" "nadgrids=lombardia_tot.gsb,null" END -- *Francesco Pirotti* Dep. TESAF CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry Remote Sensing and G.I.S. University of Padova Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm Email: francesco.pirotti at unipd.it <mailto:francesco.pirotti at unipd.it> Phone: +39 049 827 2710 Phone: +39 349 55 39 261 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100603/34e3c978/attachment.htm> From jeremiahosullivan at gmail.com Thu Jun 3 11:31:48 2010 From: jeremiahosullivan at gmail.com (Jerry O'Sullivan) Date: Thu, 3 Jun 2010 19:31:48 +0100 Subject: [mapserver-users] Cascading WMS Message-ID: <AANLkTik968tiieGbEzVjD9boiEq3wcGMvL4voE4zC4Vs@mail.gmail.com> Hi, I have set up Mapserver to read a WMS server and then feed this out via WMS. The image quality is degraded by MapServer so it is re rendering the image. How can I get MapServer to simply pass the image that it gets from the WMS server on instead of re rendering? Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100603/a5bef54e/attachment.htm> From fsalas at geocuba.cu Thu Jun 3 15:50:20 2010 From: fsalas at geocuba.cu (salas) Date: Thu, 3 Jun 2010 15:50:20 -0700 Subject: [mapserver-users] how pass parameters to map file Message-ID: <00a201cb036f$38175ee0$ea0110b6@deltha> Hi, in this moment i have working with mapserver and geomoose framework , and I need make a filter dynamic but I don?t know how pass the parameters to map file. how implement this ? best regards , Salas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100603/7630bcf1/attachment.htm> From dmorissette at mapgears.com Thu Jun 3 20:38:27 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Jun 2010 23:38:27 -0400 Subject: [mapserver-users] Cascading WMS In-Reply-To: <AANLkTik968tiieGbEzVjD9boiEq3wcGMvL4voE4zC4Vs@mail.gmail.com> References: <AANLkTik968tiieGbEzVjD9boiEq3wcGMvL4voE4zC4Vs@mail.gmail.com> Message-ID: <4C087533.8080606@mapgears.com> Jerry O'Sullivan wrote: > > I have set up Mapserver to read a WMS server and then feed this out via > WMS. The image quality is degraded by MapServer so it is re rendering > the image. > > How can I get MapServer to simply pass the image that it gets from the > WMS server on instead of re rendering? > I can think of two reasons for loss of image quality in cascaded WMS layers: 1- Incompatible output format. For instance, if the cascaded WMS returns 24 bit imagery (PNG24 or JPEG) and your MapServer is configured for 8 bits output (GIF, PNG8) then you will experience some color issues. 2- Reprojection. Make sure the SRS that is used by the WMS client is supported by the cascaded server and listed in the wms_srs metadata. Reprojection of the cascaded WMS request (required if the requested SRS is not listed as being supported by the remote server) can greatly degrade image quality. If your client calls MapServer with a SRS that is supported by the remote WMS server then it should make essentially the same request to the remote server and there should be no transformation or quality loss. HTH Daniel -- Daniel Morissette http://www.mapgears.com/ From jt at mapmedia.de Fri Jun 4 00:09:22 2010 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Fri, 04 Jun 2010 09:09:22 +0200 Subject: [mapserver-users] how pass parameters to map file In-Reply-To: <00a201cb036f$38175ee0$ea0110b6@deltha> References: <00a201cb036f$38175ee0$ea0110b6@deltha> Message-ID: <4C08A6A2.5050103@mapmedia.de> salas wrote: > Hi, in this moment i have working with mapserver and geomoose framework > , and I need make a filter dynamic but I don?t know how pass the > parameters to map file. > how implement this ? http://mapserver.org/mapfile/variable_sub.html J?rg > > best regards , Salas > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From to.tonton at gmail.com Fri Jun 4 06:05:30 2010 From: to.tonton at gmail.com (Tonton) Date: Fri, 4 Jun 2010 15:05:30 +0200 Subject: [mapserver-users] numeric label without decimal ? Message-ID: <AANLkTil1li3hrYxaB7NqtpvruLfiF5PydmW_J8UKk31Q@mail.gmail.com> hello i use shapefile to render a map in wms layer. it is working good but ... the column i use TXT have number ( 12 30 255 etc...) so i see with 10 digits after the point ( 12.00000000 30.000000000 255.000000000 etc...) if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation Tonton next the layer LAYER NAME "LabelParcelle.shp" DATA "LabelParcelle.shp" TYPE POINT DEBUG 5 DUMP TRUE LABELCACHE ON METADATA WMS_TITLE "LabelParcelle.shp" "WMS_SRS" "EPSG:27572" WFS_TITLE "LabelParcelle.shp" "WFS_SRS" "EPSG:27572" END LABELITEM TXT CLASS NAME "LabelParcelle.shp" STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 0 0 0 END LABEL TYPE BITMAP POSITION AUTO SIZE MEDIUM COLOR 0 0 0 End #LABEL END END #Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100604/5df6842b/attachment.htm> From bfraser at geoanalytic.com Fri Jun 4 07:33:28 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 04 Jun 2010 08:33:28 -0600 Subject: [mapserver-users] how pass parameters to map file In-Reply-To: <00a201cb036f$38175ee0$ea0110b6@deltha> References: <00a201cb036f$38175ee0$ea0110b6@deltha> Message-ID: <4C090EB8.3060207@geoanalytic.com> Salas, You may want to ask the question on the GeoMoose mainling list. Have a look at the County demo delivered with GeoMoose, specifically the "search_parcels" service in the mapbook.xml Best Regards, Brent Fraser salas wrote: > Hi, in this moment i have working with mapserver and geomoose framework > , and I need make a filter dynamic but I don?t know how pass the > parameters to map file. > how implement this ? > > best regards , Salas > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeremiahosullivan at gmail.com Fri Jun 4 08:04:32 2010 From: jeremiahosullivan at gmail.com (osullivj) Date: Fri, 4 Jun 2010 08:04:32 -0700 (PDT) Subject: [mapserver-users] Re: Cascading WMS In-Reply-To: <4C087533.8080606@mapgears.com> References: <AANLkTik968tiieGbEzVjD9boiEq3wcGMvL4voE4zC4Vs@mail.gmail.com> <4C087533.8080606@mapgears.com> Message-ID: <1275663872993-5139790.post@n2.nabble.com> Daniel, Thanks...using png24 sorted the image quality issue As there is no 'need' to regenerate the image, can I get mapserver to pass along the result of the original WMS request Thanks, Jerry -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Cascading-WMS-tp5136351p5139790.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Fri Jun 4 08:04:33 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 4 Jun 2010 08:04:33 -0700 (PDT) Subject: [mapserver-users] numeric label without decimal ? In-Reply-To: <AANLkTil1li3hrYxaB7NqtpvruLfiF5PydmW_J8UKk31Q@mail.gmail.com> References: <AANLkTil1li3hrYxaB7NqtpvruLfiF5PydmW_J8UKk31Q@mail.gmail.com> Message-ID: <805393.55190.qm@web38204.mail.mud.yahoo.com> Tonton, This is because de data domain,there's no way to apply a format with the LABEL tag, you have to change the data domain from the data source directly IC Carlos Ruiz ________________________________ From: Tonton <to.tonton at gmail.com> To: mapserver-users at lists.osgeo.org Sent: Fri, June 4, 2010 8:05:30 AM Subject: [mapserver-users] numeric label without decimal ? hello i use shapefile to render a map in wms layer. it is working good but ... the column i use TXT have number ( 12 30 255 etc...) so i see with 10 digits after the point ( 12.00000000 30.000000000 255.000000000 etc...) if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation Tonton next the layer LAYER NAME "LabelParcelle.shp" DATA "LabelParcelle.shp" TYPE POINT DEBUG 5 DUMP TRUE LABELCACHE ON METADATA WMS_TITLE "LabelParcelle.shp" "WMS_SRS" "EPSG:27572" WFS_TITLE "LabelParcelle.shp" "WFS_SRS" "EPSG:27572" END LABELITEM TXT CLASS NAME "LabelParcelle.shp" STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 0 0 0 END LABEL TYPE BITMAP POSITION AUTO SIZE MEDIUM COLOR 0 0 0 End #LABEL END END #Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100604/c77b2bef/attachment.htm> From dmorissette at mapgears.com Fri Jun 4 08:21:29 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 04 Jun 2010 11:21:29 -0400 Subject: [mapserver-users] Re: Cascading WMS In-Reply-To: <1275663872993-5139790.post@n2.nabble.com> References: <AANLkTik968tiieGbEzVjD9boiEq3wcGMvL4voE4zC4Vs@mail.gmail.com> <4C087533.8080606@mapgears.com> <1275663872993-5139790.post@n2.nabble.com> Message-ID: <4C0919F9.50207@mapgears.com> osullivj wrote: > Daniel, > > Thanks...using png24 sorted the image quality issue > > As there is no 'need' to regenerate the image, can I get mapserver to pass > along the result of the original WMS request > No, you can't. Actually, if all you need is a dumb proxy then you don't need MapServer anyway. Apache's ProxyPass directive would do the trick for instance. -- Daniel Morissette http://www.mapgears.com/ From gianni.olivieri at gmail.com Fri Jun 4 12:14:59 2010 From: gianni.olivieri at gmail.com (Gianni Olivieri) Date: Fri, 4 Jun 2010 21:14:59 +0200 Subject: [mapserver-users] Path profile... Message-ID: <AANLkTimf67Z8vB604YLNo49i8SL5Zz8h2tOEMG9oJcl7@mail.gmail.com> Hallo to all, i'm a new subscriber of this mailing-list... I'd like to build a web service where an user insert two coordinates gps and the website give out a profile of path with altitude to see if there are visibility between the 2 given point.... I've thinked to do this with map server... it's ok? I'm on the right way? I've already download some srtm maps in hgt format. I'd like to programm the client interface in php... For now I ask to you if this is the right way, if it's simple to query map server to collect the altitude of a path. For now is all. Best regards. -- Gianni Olivieri gianni.olivieri at gmail.com From kobben at itc.nl Sat Jun 5 08:05:28 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Sat, 5 Jun 2010 17:05:28 +0200 Subject: [mapserver-users] Path profile... In-Reply-To: <AANLkTimf67Z8vB604YLNo49i8SL5Zz8h2tOEMG9oJcl7@mail.gmail.com> Message-ID: <C8303458.12E32%kobben@itc.nl> HI, Mapserver is exactly what its name says: a server of maps. Therefore not the right platform to do the kind of spatial analysis you describe. The analysis funcyionlity you describe could be realised in vaery many ways, in any kind of GIS software (eg. GRASS, QGIS, if you want to stay in the Open Source Domain). Or you could store the dtata serverside and write the analysis logic yourself in php (its not that complicated an analysis). Mapserver could of course be used if you need to show the results in the form of a maps... Yours, -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-06-10 21:14, "Gianni Olivieri" <gianni.olivieri at gmail.com> wrote: > Hallo to all, > > i'm a new subscriber of this mailing-list... I'd like to build a > web service where an user insert two coordinates gps and the website > give out a profile of path with altitude to see if there are > visibility between the 2 given point.... > > I've thinked to do this with map server... it's ok? I'm on the right way? > I've already download some srtm maps in hgt format. > > I'd like to programm the client interface in php... > > For now I ask to you if this is the right way, if it's simple to query > map server to collect the altitude of a path. > > For now is all. > > Best regards. > > -- > Gianni Olivieri > gianni.olivieri at gmail.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From Steve.Lime at state.mn.us Sat Jun 5 09:29:55 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 5 Jun 2010 11:29:55 -0500 Subject: [mapserver-users] Path profile... In-Reply-To: <C8303458.12E32%kobben@itc.nl> References: <AANLkTimf67Z8vB604YLNo49i8SL5Zz8h2tOEMG9oJcl7@mail.gmail.com>, <C8303458.12E32%kobben@itc.nl> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C0295303424@MNMAIL05.ead.state.mn.us> MapServer also does data extraction though and so it might be possible to do this. I know you can extract vector features using another geometery (5.6 and earlier versions only support polygons/points), but SVN trunk supports lines and multipoint features as well. I believe Frank's raster query code is just as flexible in that version. So, if you're willing/able to compile the development code you might have some luck... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Barend K?bben [kobben at itc.nl] Sent: Saturday, June 05, 2010 10:05 AM To: Gianni Olivieri; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Path profile... HI, Mapserver is exactly what its name says: a server of maps. Therefore not the right platform to do the kind of spatial analysis you describe. The analysis funcyionlity you describe could be realised in vaery many ways, in any kind of GIS software (eg. GRASS, QGIS, if you want to stay in the Open Source Domain). Or you could store the dtata serverside and write the analysis logic yourself in php (its not that complicated an analysis). Mapserver could of course be used if you need to show the results in the form of a maps... Yours, -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-06-10 21:14, "Gianni Olivieri" <gianni.olivieri at gmail.com> wrote: > Hallo to all, > > i'm a new subscriber of this mailing-list... I'd like to build a > web service where an user insert two coordinates gps and the website > give out a profile of path with altitude to see if there are > visibility between the 2 given point.... > > I've thinked to do this with map server... it's ok? I'm on the right way? > I've already download some srtm maps in hgt format. > > I'd like to programm the client interface in php... > > For now I ask to you if this is the right way, if it's simple to query > map server to collect the altitude of a path. > > For now is all. > > Best regards. > > -- > Gianni Olivieri > gianni.olivieri at gmail.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From wal3 at mindspring.com Sun Jun 6 10:30:26 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 6 Jun 2010 13:30:26 -0400 Subject: [mapserver-users] Compiling on CentOS 5 In-Reply-To: <4BFBFEE5.9020600@tamu.edu> References: <4BFAEAB2.1090709@tamu.edu> <4BFBC2BB.5010409@gatewaygeomatics.com> <4BFBFEE5.9020600@tamu.edu> Message-ID: <548C54221652410CAE00E9D63DD83864@Worthlaptop> Gerry, I would be interested in your findings. I am trying to install mapserver/mapscript on RHEL 5 but have not found current rpms for MapServer. I'm not much on linux but did get the FGS version working. I was wondering what your experience was and where you found the packages to get your system up and running. Thanks, Worth -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager Sent: Tuesday, May 25, 2010 12:46 PM To: Jeff McKenna Cc: MAPSERVER-USERS Subject: Re: [mapserver-users] Compiling on CentOS 5 Thanks, Jeff: More in-line, below... On 5/25/10 7:29 AM, Jeff McKenna wrote: > Gerald Creager wrote: >> I'm having to reinstall Mapserver after some significant hardware >> issues. I was perusing the documentation and find several explicit >> entries for installing on Windows. >> >> For Linux, there's the suggestion to use FGS (used it before, isn't >> latest version, but will probably work), or Debian. Sorry, guys, >> ubuntu is a debian variant, so while it's nice that there's GIS >> systems for debian, they are, to my mind, the same. >> >> My question: Where's the information on dependencies to compile and >> use Mapserver? If they reside in the pdf documentation, I've tried to >> snag it, and the pdf appears damaged: unreadable in eVince or Acrobat >> reader. >> >> Looking for suggestions on how I might proceed. >> > > Gerry, > > Here are some of my comments: > > - FGS version 9.5 contains MapServer 5.6.3 (the latest MapServer > release), I use it often and recommend it The wiki link to FGS needs to be updated. When I followed the link, it was for 5.4, which I can use, but since we crashed so much, I wanted to go ahead and get current. > - documentation for compiling MapServer on Unix systems is found at: > http://www.mapserver.org/installation/unix.html I just *knew* it had to be around somewhere. However the PDF link produced a bad download several times for the Mapserver docs... That might bear looking into. I tried it at home, even using several methods to download it, and two readers to look at the results, then, last night, I tried again from home and still failed. Is Mapserver allergic to Texans, perhaps? In the end, I fell back to what I thought I remembered from years past, and that (surprisingly) worked. It was a bit more work than having the instructions in front of you, but it's good to know I could still do it. > - if you feel like giving back to the community, as you travel down the > compilation path you could record your steps in the MapServer wiki, so > others can learn from your steps: http://trac.osgeo.org/mapserver/ I'll try to get started on that today. It's been awhile since I've contributed anything save moral support to the community, so it's time I did some good. gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From K.Hirst at bom.gov.au Sun Jun 6 16:37:37 2010 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Mon, 7 Jun 2010 09:37:37 +1000 Subject: [mapserver-users] numeric label without decimal ? [SEC=UNCLASSIFIED] In-Reply-To: <805393.55190.qm@web38204.mail.mud.yahoo.com> Message-ID: <F6B9883A73AC594592041E20C59A484601B6621F6B85@BOM-VMBX-HO.bom.gov.au> Hi Tonton and Carlos, You can use an OGR connection to remove decimal points for labelling. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following LAYER .. CONNECTIONTYPE OGR CONNECTION "test.shp" DATA "select CAST(testfld1 AS INTEGER (4)) from test" .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Saturday, 5 June 2010 1:05 AM To: Tonton; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] numeric label without decimal ? Tonton, This is because de data domain, there's no way to apply a format with the LABEL tag, you have to change the data domain from the data source directly IC Carlos Ruiz ________________________________ From: Tonton <to.tonton at gmail.com> To: mapserver-users at lists.osgeo.org Sent: Fri, June 4, 2010 8:05:30 AM Subject: [mapserver-users] numeric label without decimal ? hello i use shapefile to render a map in wms layer. it is working good but ... the column i use TXT have number ( 12 30 255 etc...) so i see with 10 digits after the point ( 12.00000000 30.000000000 255.000000000 etc...) if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation Tonton next the layer LAYER NAME "LabelParcelle.shp" DATA "LabelParcelle.shp" TYPE POINT DEBUG 5 DUMP TRUE LABELCACHE ON METADATA WMS_TITLE "LabelParcelle.shp" "WMS_SRS" "EPSG:27572" WFS_TITLE "LabelParcelle.shp" "WFS_SRS" "EPSG:27572" END LABELITEM TXT CLASS NAME "LabelParcelle.shp" STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 0 0 0 END LABEL TYPE BITMAP POSITION AUTO SIZE MEDIUM COLOR 0 0 0 End #LABEL END END #Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100607/a09156a6/attachment.htm> From peter.hopfgartner at r3-gis.com Mon Jun 7 00:23:13 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Mon, 07 Jun 2010 09:23:13 +0200 Subject: [mapserver-users] Compiling on CentOS 5 In-Reply-To: <548C54221652410CAE00E9D63DD83864@Worthlaptop> References: <4BFAEAB2.1090709@tamu.edu> <4BFBC2BB.5010409@gatewaygeomatics.com> <4BFBFEE5.9020600@tamu.edu> <548C54221652410CAE00E9D63DD83864@Worthlaptop> Message-ID: <1275895393.2862.2.camel@peter-laptop> On Sun, 2010-06-06 at 13:30 -0400, Worth Lutz wrote: > > Gerry, > > I would be interested in your findings. I am trying to install > mapserver/mapscript on RHEL 5 but have not found current rpms for MapServer. > > I'm not much on linux but did get the FGS version working. I was wondering > what your experience was and where you found the packages to get your system > up and running. > > Thanks, > Worth > > Hi Worth, there are current RPMs referenced at http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS You can follow the RPM packaging of various Open Source GIS packages at http://lists.osgeo.org/mailman/listinfo/el, the list is very low traffic. Peter > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager > Sent: Tuesday, May 25, 2010 12:46 PM > To: Jeff McKenna > Cc: MAPSERVER-USERS > Subject: Re: [mapserver-users] Compiling on CentOS 5 > > Thanks, Jeff: More in-line, below... > > On 5/25/10 7:29 AM, Jeff McKenna wrote: > > Gerald Creager wrote: > >> I'm having to reinstall Mapserver after some significant hardware > >> issues. I was perusing the documentation and find several explicit > >> entries for installing on Windows. > >> > >> For Linux, there's the suggestion to use FGS (used it before, isn't > >> latest version, but will probably work), or Debian. Sorry, guys, > >> ubuntu is a debian variant, so while it's nice that there's GIS > >> systems for debian, they are, to my mind, the same. > >> > >> My question: Where's the information on dependencies to compile and > >> use Mapserver? If they reside in the pdf documentation, I've tried to > >> snag it, and the pdf appears damaged: unreadable in eVince or Acrobat > >> reader. > >> > >> Looking for suggestions on how I might proceed. > >> > > > > Gerry, > > > > Here are some of my comments: > > > > - FGS version 9.5 contains MapServer 5.6.3 (the latest MapServer > > release), I use it often and recommend it > > The wiki link to FGS needs to be updated. When I followed the link, it > was for 5.4, which I can use, but since we crashed so much, I wanted to > go ahead and get current. > > > - documentation for compiling MapServer on Unix systems is found at: > > http://www.mapserver.org/installation/unix.html > > I just *knew* it had to be around somewhere. However the PDF link > produced a bad download several times for the Mapserver docs... That > might bear looking into. I tried it at home, even using several methods > to download it, and two readers to look at the results, then, last > night, I tried again from home and still failed. Is Mapserver allergic > to Texans, perhaps? > > In the end, I fell back to what I thought I remembered from years past, > and that (surprisingly) worked. It was a bit more work than having the > instructions in front of you, but it's good to know I could still do it. > > > - if you feel like giving back to the community, as you travel down the > > compilation path you could record your steps in the MapServer wiki, so > > others can learn from your steps: http://trac.osgeo.org/mapserver/ > > I'll try to get started on that today. It's been awhile since I've > contributed anything save moral support to the community, so it's time I > did some good. > > gerry -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 From pcreso at pcreso.com Mon Jun 7 01:42:00 2010 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 7 Jun 2010 01:42:00 -0700 (PDT) Subject: [mapserver-users] Compiling on CentOS 5 In-Reply-To: <1275895393.2862.2.camel@peter-laptop> Message-ID: <981687.27162.qm@web33204.mail.mud.yahoo.com> See: http://www.chasedavis.com/2007/apr/29/mapserver-newsroom-part-2/ Personally I prefer to run OpenSuse as a mapserver box, largely due to the work the guys who maintain the GEO repository put in to make sure that current versions of a wide range of GIS/GPS related applications work well. There are some Centos/RH packages maintained there ase well, via the OpenSuse build service, but mapserver is not included. http://download.opensuse.org/repositories/Application:/Geo/ & for those wanting a Postgis solution: http://download.opensuse.org/repositories/Application:/Geo:/ Ubuntu comes second, but note the Debian & Ubuntu repositories are less complete in the GIS arena & often version or two behind. Cheers, Brent Wood --- On Mon, 6/7/10, Peter Hopfgartner <peter.hopfgartner at r3-gis.com> wrote: > From: Peter Hopfgartner <peter.hopfgartner at r3-gis.com> > Subject: RE: [mapserver-users] Compiling on CentOS 5 > To: "Worth Lutz" <wal3 at mindspring.com> > Cc: "'MAPSERVER-USERS'" <mapserver-users at lists.osgeo.org> > Date: Monday, June 7, 2010, 7:23 PM > On Sun, 2010-06-06 at 13:30 -0400, > Worth Lutz wrote: > > > > Gerry, > > > > I would be interested in your findings.? I am > trying to install > > mapserver/mapscript on RHEL 5 but have not found > current rpms for MapServer. > > > > I'm not much on linux but did get the FGS version > working.? I was wondering > > what your experience was and where you found the > packages to get your system > > up and running. > > > > Thanks, > > Worth > > > > > Hi Worth, > > there are current RPMs referenced at > http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS > > You can follow the RPM packaging of various Open Source GIS > packages at > http://lists.osgeo.org/mailman/listinfo/el, the list is > very low > traffic. > > Peter > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] > On Behalf Of Gerry Creager > > Sent: Tuesday, May 25, 2010 12:46 PM > > To: Jeff McKenna > > Cc: MAPSERVER-USERS > > Subject: Re: [mapserver-users] Compiling on CentOS 5 > > > > Thanks, Jeff: More in-line, below... > > > > On 5/25/10 7:29 AM, Jeff McKenna wrote: > > > Gerald Creager wrote: > > >> I'm having to reinstall Mapserver after some > significant hardware > > >> issues. I was perusing the documentation and > find several explicit > > >> entries for installing on Windows. > > >> > > >> For Linux, there's the suggestion to use FGS > (used it before, isn't > > >> latest version, but will probably work), or > Debian. Sorry, guys, > > >> ubuntu is a debian variant, so while it's > nice that there's GIS > > >> systems for debian, they are, to my mind, the > same. > > >> > > >> My question: Where's the information on > dependencies to compile and > > >> use Mapserver? If they reside in the pdf > documentation, I've tried to > > >> snag it, and the pdf appears damaged: > unreadable in eVince or Acrobat > > >> reader. > > >> > > >> Looking for suggestions on how I might > proceed. > > >> > > > > > > Gerry, > > > > > > Here are some of my comments: > > > > > > - FGS version 9.5 contains MapServer 5.6.3 (the > latest MapServer > > > release), I use it often and recommend it > > > > The wiki link to FGS needs to be updated. When I > followed the link, it > > was for 5.4, which I can use, but since we crashed so > much, I wanted to > > go ahead and get current. > > > > > - documentation for compiling MapServer on Unix > systems is found at: > > > http://www.mapserver.org/installation/unix.html > > > > I just *knew* it had to be around somewhere. However > the PDF link > > produced a bad download several times for the > Mapserver docs... That > > might bear looking into. I tried it at home, even > using several methods > > to download it, and two readers to look at the > results, then, last > > night, I tried again from home and still failed. Is > Mapserver allergic > > to Texans, perhaps? > > > > In the end, I fell back to what I thought I remembered > from years past, > > and that (surprisingly) worked. It was a bit more work > than having the > > instructions in front of you, but it's good to know I > could still do it. > > > > > - if you feel like giving back to the community, > as you travel down the > > > compilation path you could record your steps in > the MapServer wiki, so > > > others can learn from your steps: http://trac.osgeo.org/mapserver/ > > > > I'll try to get started on that today. It's been > awhile since I've > > contributed anything save moral support to the > community, so it's time I > > did some good. > > > > gerry > > -- > Dott. Peter Hopfgartner > > R3 GIS Srl - GmbH > Via Johann Kravogl-Str. 2 > I-39012 Meran/Merano (BZ) > Email: peter.hopfgartner at r3-gis.com > Tel. : +39 0473 494949 > Fax? : +39 0473 069902 > www? : http://www.r3-gis.com > > XING : http://www.xing.com/go/invita/8917535 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sulerzh at gmail.com Mon Jun 7 04:21:15 2010 From: sulerzh at gmail.com (Larry Doll) Date: Mon, 7 Jun 2010 19:21:15 +0800 Subject: [mapserver-users] Need help to complie mapserver-5.6.3 under windows In-Reply-To: <AANLkTilxVo0itvt1-_wfjaMfd1hPyhSPL4Aw2tOmgtLV@mail.gmail.com> References: <AANLkTilxVo0itvt1-_wfjaMfd1hPyhSPL4Aw2tOmgtLV@mail.gmail.com> Message-ID: <AANLkTinMmLm27qFhIOQsjCDNPBmT_zQ1mfLOqfYqGfyB@mail.gmail.com> When I compile mapserver-5.6.3 under windows ,using nmake /f makefile.vc, I got the error like this: LIBC.lib(dllcrt0.obj) : error LNK2005: __CRT_INIT at 12 ??? MSVCRT.lib(crtdll.ob j) ??? LIBC.lib(dllcrt0.obj) : error LNK2005: __DllMainCRTStartup at 12 ??? MSVCRT.lib( crtdll.obj) ??? LIBC.lib(dllcrt0.obj) : error LNK2005: __amsg_exit ??? MSVCRT.lib(MSVCR80.dll ) ??? LIBC.lib(crt0dat.obj) : error LNK2005: _exit ??? MSVCRT.lib(MSVCR80.dll) ?? ? LIBC.lib(fflush.obj) : error LNK2005: _fflush ??? MSVCRT.lib(MSVCR80.dll) ? ?? LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z ??? MSVCRT.lib(cinitexe.obj) ??? LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a ??? MSVCRT.lib(cinitexe.obj) ??? LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z ??? MSVCRT.lib(cinitexe.obj) ??? LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a ??? MSVCRT.lib(cinitexe.obj) ??? ????? mapserver_i.lib ??? mapserver_i.exp LINK : warning LNK4098: ???"MSVCRT"????????????? /NODEFAULTLIB :library LINK : warning LNK4098: ???"LIBC"????????????? /NODEFAULTLIB:l ibrary libmap.dll : fatal error LNK1169: ?????????????? NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 8\VC\BIN\ link.EXE"": ????"0x491" Stop. Anyone can tell me how to solve this problem?? From wal3 at mindspring.com Mon Jun 7 05:23:18 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 7 Jun 2010 08:23:18 -0400 Subject: [mapserver-users] Compiling on CentOS 5 In-Reply-To: <1275895393.2862.2.camel@peter-laptop> References: <4BFAEAB2.1090709@tamu.edu> <4BFBC2BB.5010409@gatewaygeomatics.com> <4BFBFEE5.9020600@tamu.edu> <548C54221652410CAE00E9D63DD83864@Worthlaptop> <1275895393.2862.2.camel@peter-laptop> Message-ID: <FF0CA67A9B00422596DB36CC278FDDE1@Worthlaptop> Thanks Peter, This information is helpful. Google got me close but not close enough. Worth -----Original Message----- From: Peter Hopfgartner [mailto:peter.hopfgartner at r3-gis.com] Sent: Monday, June 07, 2010 3:23 AM To: Worth Lutz Cc: 'Gerry Creager'; 'MAPSERVER-USERS' Subject: RE: [mapserver-users] Compiling on CentOS 5 On Sun, 2010-06-06 at 13:30 -0400, Worth Lutz wrote: > > Gerry, > > I would be interested in your findings. I am trying to install > mapserver/mapscript on RHEL 5 but have not found current rpms for MapServer. > > I'm not much on linux but did get the FGS version working. I was wondering > what your experience was and where you found the packages to get your system > up and running. > > Thanks, > Worth > > Hi Worth, there are current RPMs referenced at http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS You can follow the RPM packaging of various Open Source GIS packages at http://lists.osgeo.org/mailman/listinfo/el, the list is very low traffic. Peter > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager > Sent: Tuesday, May 25, 2010 12:46 PM > To: Jeff McKenna > Cc: MAPSERVER-USERS > Subject: Re: [mapserver-users] Compiling on CentOS 5 > > Thanks, Jeff: More in-line, below... > > On 5/25/10 7:29 AM, Jeff McKenna wrote: > > Gerald Creager wrote: > >> I'm having to reinstall Mapserver after some significant hardware > >> issues. I was perusing the documentation and find several explicit > >> entries for installing on Windows. > >> > >> For Linux, there's the suggestion to use FGS (used it before, isn't > >> latest version, but will probably work), or Debian. Sorry, guys, > >> ubuntu is a debian variant, so while it's nice that there's GIS > >> systems for debian, they are, to my mind, the same. > >> > >> My question: Where's the information on dependencies to compile and > >> use Mapserver? If they reside in the pdf documentation, I've tried to > >> snag it, and the pdf appears damaged: unreadable in eVince or Acrobat > >> reader. > >> > >> Looking for suggestions on how I might proceed. > >> > > > > Gerry, > > > > Here are some of my comments: > > > > - FGS version 9.5 contains MapServer 5.6.3 (the latest MapServer > > release), I use it often and recommend it > > The wiki link to FGS needs to be updated. When I followed the link, it > was for 5.4, which I can use, but since we crashed so much, I wanted to > go ahead and get current. > > > - documentation for compiling MapServer on Unix systems is found at: > > http://www.mapserver.org/installation/unix.html > > I just *knew* it had to be around somewhere. However the PDF link > produced a bad download several times for the Mapserver docs... That > might bear looking into. I tried it at home, even using several methods > to download it, and two readers to look at the results, then, last > night, I tried again from home and still failed. Is Mapserver allergic > to Texans, perhaps? > > In the end, I fell back to what I thought I remembered from years past, > and that (surprisingly) worked. It was a bit more work than having the > instructions in front of you, but it's good to know I could still do it. > > > - if you feel like giving back to the community, as you travel down the > > compilation path you could record your steps in the MapServer wiki, so > > others can learn from your steps: http://trac.osgeo.org/mapserver/ > > I'll try to get started on that today. It's been awhile since I've > contributed anything save moral support to the community, so it's time I > did some good. > > gerry -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 From Matthias_Mueller at tu-dresden.de Mon Jun 7 08:22:26 2010 From: Matthias_Mueller at tu-dresden.de (=?ISO-8859-15?Q?Matthias_M=FCller?=) Date: Mon, 07 Jun 2010 17:22:26 +0200 Subject: [mapserver-users] Support for Temporal and Thematic Dimensions in WCS/WMS using NetCDF data Message-ID: <4C0D0EB2.7040701@tu-dresden.de> Hi list! Is there an elegant way to feed the UMN Mapserver with multi-temporal (and maybe multithematic) data using netCDF as a datasource? If have seen some services in the datafed portal (http://www.datafed.net/DataLinks/OGC/DataFed_WMSServer.htm) that look like a mapserver based WCS/WMS implementation. A brief search produced a documentation using tile caches (http://mapserver.org/ogc/wcs_format.html) as a workaround to load multitemporal data. Is there any means to make the Mapserver use NetCDF dimensions instead? Cheers, Matthias From mapserver at meteologica.es Mon Jun 7 10:18:31 2010 From: mapserver at meteologica.es (mapserver at meteologica.es) Date: Mon, 07 Jun 2010 19:18:31 +0200 Subject: [mapserver-users] WMS layers order and copyright Message-ID: <4C0D29E7.3080904@meteologica.es> Hi, How can i force our copyright-logo layer to appear above the other layers when serving WMS? Our logo/copyright layer is the last one in the mapfile, and we're using "STATUS DEFAULT" but it seems mapserver ignores order and draws this layer below the others. We have no problems when caling mapserser cgi directly with its own protocol, only when calling it using wms parameters. Is it a bug? Thanks, Paco -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100607/ceb9ed14/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Mon Jun 7 10:52:35 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 7 Jun 2010 20:52:35 +0300 Subject: [mapserver-users] WMS layers order and copyright In-Reply-To: <4C0D29E7.3080904@meteologica.es> References: <4C0D29E7.3080904@meteologica.es> Message-ID: <CC197224AC75CE4DB23F739B16891B8601879BC5@tikka.haapa.mmm.fi> Hi, This is what I have been using: LAYER NAME "copyright" METADATA "wms_title" "copyright" END STATUS DEFAULT REQUIRES "[aerial_images]" # this text appears always with aerial images in WMS TYPE ANNOTATION TRANSFORM ll #set the image origin to be lower left FEATURE POINTS 85 -8 #set the offset from lower left position in pixels END TEXT " ? 2010 aerial image provider" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "arial" TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 200 100 50 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END UNITS PIXELS #sets the units for the feature object END LAYER NAME "copyright2" METADATA "wms_title" "copyright2" END STATUS DEFAULT REQUIRES "![aerial_images]" #this layer appears with all WMS layers except aerials TYPE ANNOTATION TRANSFORM lr #set the image origin to be lower right FEATURE POINTS -75 -10 #set the offset END TEXT " ? 2010 raster map provider" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "arial" TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 200 100 50 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END UNITS PIXELS #sets the units for the feature object END -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta mapserver at meteologica.es L?hetetty: 7. kes?kuuta 2010 20:19 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS layers order and copyright Hi, How can i force our copyright-logo layer to appear above the other layers when serving WMS? Our logo/copyright layer is the last one in the mapfile, and we're using "STATUS DEFAULT" but it seems mapserver ignores order and draws this layer below the others. We have no problems when caling mapserser cgi directly with its own protocol, only when calling it using wms parameters. Is it a bug? Thanks, Paco -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100607/4c1e0ccd/attachment.htm> From thomas.bonfort at gmail.com Mon Jun 7 11:43:52 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 7 Jun 2010 20:43:52 +0200 Subject: [mapserver-users] WMS layers order and copyright In-Reply-To: <CC197224AC75CE4DB23F739B16891B8601879BC5@tikka.haapa.mmm.fi> References: <4C0D29E7.3080904@meteologica.es> <CC197224AC75CE4DB23F739B16891B8601879BC5@tikka.haapa.mmm.fi> Message-ID: <AANLkTimhQXBSQfgnSkY3FH_vrGYym7Y5pto0fiMl0u7f@mail.gmail.com> POSTLABELCACHE at the layer level is the keyword you are looking for. regards, thomas On Mon, Jun 7, 2010 at 19:52, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote: > Hi, > > > > This is what I have been using: > > > > LAYER > > ? NAME "copyright" > > ? METADATA > > ??? "wms_title"???? "copyright" > > ? END > > ? STATUS DEFAULT > > ? REQUIRES "[aerial_images]" # this text appears always with aerial images > in WMS > > ? TYPE ANNOTATION > > ? TRANSFORM ll #set the image origin to be lower left > > ? FEATURE > > ??? POINTS > > ????? 85 -8 #set the offset from lower left position in pixels > > ??? END > > ??? TEXT " ? 2010 aerial image provider" ?#this is your displaying text > > ? END > > ? CLASS > > ??? LABEL #defines the font, colors etc. of the text > > ????? FONT "arial" > > ????? TYPE TRUETYPE > > ????? SIZE 8 > > ????? BUFFER 1 > > ????? COLOR 200 100 50 > > ????? BACKGROUNDCOLOR 255 255 255 > > ????? FORCE TRUE > > > > ??? END > > ? END > > ? UNITS PIXELS #sets the units for the feature object > > END > > LAYER > > ? NAME "copyright2" > > ? METADATA > > ? ??"wms_title"???? "copyright2" > > ? END > > ? STATUS DEFAULT > > ? REQUIRES "![aerial_images]"??? #this layer appears with all WMS layers > except aerials > > ? TYPE ANNOTATION > > ? TRANSFORM lr #set the image origin to be lower right > > ? FEATURE > > ??? POINTS > > ????? -75 -10 #set the offset > > ??? END > > ? ??TEXT " ? 2010 raster map provider" #this is your displaying text > > ? END > > ? CLASS > > ??? LABEL #defines the font, colors etc. of the text > > ????? FONT "arial" > > ????? TYPE TRUETYPE > > ????? SIZE 8 > > ????? BUFFER 1 > > ????? COLOR 200 100 50 > > ????? BACKGROUNDCOLOR 255 255 255 > > ????? FORCE TRUE > > > > ??? END > > ? END > > ? UNITS PIXELS #sets the units for the feature object > > END > > > > > > -Jukka Rahkonen- > > > > ________________________________ > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > mapserver at meteologica.es > L?hetetty: 7. kes?kuuta 2010 20:19 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WMS layers order and copyright > > > > Hi, > > How can i force our copyright-logo layer to appear above the other layers > when serving WMS? Our logo/copyright layer is the last one in the mapfile, > and we're using "STATUS DEFAULT" but it seems mapserver ignores order and > draws this layer below the others. > > We have no problems when caling mapserser cgi directly with its own > protocol, only when calling it using wms parameters. > > Is it a bug? > > Thanks, > > Paco > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From sumit321 at hotmail.com Tue Jun 8 06:51:28 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Tue, 8 Jun 2010 06:51:28 -0700 (PDT) Subject: [mapserver-users] Re: Need help to complie mapserver-5.6.3 under windows In-Reply-To: <AANLkTinMmLm27qFhIOQsjCDNPBmT_zQ1mfLOqfYqGfyB@mail.gmail.com> References: <AANLkTinMmLm27qFhIOQsjCDNPBmT_zQ1mfLOqfYqGfyB@mail.gmail.com> Message-ID: <1276005088021-5153660.post@n2.nabble.com> you would like to clean your build first, then revisit nmake.opt to make sure that all references are correct and then recompile your mapserver again. I am assuming that you are using 1400 for compiling. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-help-to-complie-mapserver-5-6-3-under-windows-tp5148588p5153660.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fsalas at geocuba.cu Tue Jun 8 10:12:58 2010 From: fsalas at geocuba.cu (salas) Date: Tue, 8 Jun 2010 10:12:58 -0700 Subject: [mapserver-users] about thematics maps Message-ID: <018c01cb0734$46cbdb50$ed0110b6@deltha> Hi, i need obtain various thematic maps , using the same layer. For this work i have to use different map(.map) file? bets regards Salas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100608/d00cfcba/attachment.htm> From boolean10001 at yahoo.com Tue Jun 8 08:06:01 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 8 Jun 2010 08:06:01 -0700 (PDT) Subject: [mapserver-users] about thematics maps In-Reply-To: <018c01cb0734$46cbdb50$ed0110b6@deltha> References: <018c01cb0734$46cbdb50$ed0110b6@deltha> Message-ID: <440741.60189.qm@web38201.mail.mud.yahoo.com> No, puedes hacer uso de un mismo archivo .MAP pero definiendo diferentes secciones LAYER con nombres diferentes para que puedas encender o apagar el tem?tico que desees presentar. Saludos desde M?xico IC Carlos Ruiz ________________________________ From: salas <fsalas at geocuba.cu> To: mapserver-users at lists.osgeo.org Sent: Tue, June 8, 2010 12:12:58 PM Subject: [mapserver-users] about thematics maps Hi, i need obtain various thematic maps , using the same layer. For this work i have to use different map(.map) file? bets regards Salas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100608/d6d92b6a/attachment.htm> From Steve.Lime at state.mn.us Tue Jun 8 09:35:59 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 8 Jun 2010 11:35:59 -0500 Subject: [mapserver-users] about thematics maps In-Reply-To: <018c01cb0734$46cbdb50$ed0110b6@deltha> References: <018c01cb0734$46cbdb50$ed0110b6@deltha> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C029586803D@MNMAIL05.ead.state.mn.us> Not necessarily. By layer I'm guessing you mean data source? If so you can certainly have multiple MapServer layers that reference the same data source but style the data differently. You can also have a single MapServer layer that can be configured dynamically to style the data differently. For example, you might have a constant thematic presentation based on a percentage value (e.g. 0->10: green, 10-20:yellow, etc...) and then you use different attributes (e.g. % income above $50,000, % age > 60, % residents with yellow beagles) against that classification. All sorts of possibilities depending on your data. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of salas Sent: Tuesday, June 08, 2010 12:13 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] about thematics maps Hi, i need obtain various thematic maps , using the same layer. For this work i have to use different map(.map) file? bets regards Salas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100608/1705f321/attachment.htm> From jmckenna at gatewaygeomatics.com Tue Jun 8 10:02:53 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 08 Jun 2010 14:02:53 -0300 Subject: [mapserver-users] about thematics maps In-Reply-To: <018c01cb0734$46cbdb50$ed0110b6@deltha> References: <018c01cb0734$46cbdb50$ed0110b6@deltha> Message-ID: <4C0E77BD.1010605@gatewaygeomatics.com> salas wrote: > Hi, i need obtain various thematic maps , using the same layer. > > For this work i have to use different map(.map) file? > Hello Salas, I think there are 2 options for you: 1) use one .map file but change that one layer's parameters on-the-fly through your application, using mapscript (http://www.mapserver.org/mapscript/), such as PHPMapScript, or 2) have a separate .map file for each of your thematic maps. One trick I have used in the past for thematic maps is to use mapfile includes (see description and example in http://www.mapserver.org/mapfile/Include.html) for each thematic layer. The benefit is that the mapfiles are much easier to read/manage. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From sumariva at gmail.com Tue Jun 8 12:24:35 2010 From: sumariva at gmail.com (Cristiano Sumariva) Date: Tue, 8 Jun 2010 16:24:35 -0300 Subject: [mapserver-users] Escape caracter on Mapfile Message-ID: <AANLkTikoQ3j1rsuYZialFLKO_pJfLt8JdnhCORWkeKvp@mail.gmail.com> People I got on this situation: mixing single quotes with double quotes. Mapserver say at following page : http://mapserver.org/mapfile/expressions.html that for expressions it allow escape. Do it allow escape on other mapfile attributes ? Current mapserver version is 5.4.1 I need the following string layer data attribute to create an query to perform a column concat since address is a compound information and has some null values. I know some will say fix your data. It is stopping at CATEG: Parsing error near (CATEG) data "the_geom from ( select oid, *, \"CATEG\"||( CASE WHEN \"PREP\" is null THEN ' '::text ELSE \"PREP\" END )||\"LOGR\" as full_address from street_main_dissolv_utm ) as street_main_address_with_length_over_ten_kilometer" Postgresql lexer rules are: Identifiers are quoted with double quotes. A column name is an identifier. And column name identifiers not quoted are lower cased. So need the double quotes around those upper case identifiers. Text strings are quoted in single quotes. || is string concat operator -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100608/804e16b5/attachment.htm> From boolean10001 at yahoo.com Tue Jun 8 13:01:28 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 8 Jun 2010 13:01:28 -0700 (PDT) Subject: [mapserver-users] Escape caracter on Mapfile In-Reply-To: <AANLkTikoQ3j1rsuYZialFLKO_pJfLt8JdnhCORWkeKvp@mail.gmail.com> References: <AANLkTikoQ3j1rsuYZialFLKO_pJfLt8JdnhCORWkeKvp@mail.gmail.com> Message-ID: <731056.51893.qm@web38202.mail.mud.yahoo.com> Cristiano, Lo que dice la documentaci?n ad literam es: If this is a PostGIS layer, the parameter should be in the form of ?<columnname> from <tablename>?, where ?columnname? is the name of the column containing the geometry objects and ?tablename? is the name of the table from which the geometry data will be read. Por lo que creo que no es v?lido hacer uso de caracteres de escape. Yo en lo personal, he tenido problemas con el escape de comillas dobles y simples dentro de las expresiones en las etiquetas EXPRESSION, supongo que tal vez esto del escape no funcione de manera est?tica (desde el archivo MAP) sino de manera din?mica (Haciendo uso de Mapscript). Saludos desde M?xico IC Carlos Ruiz ________________________________ From: Cristiano Sumariva <sumariva at gmail.com> To: mapserver-users at lists.osgeo.org Sent: Tue, June 8, 2010 2:24:35 PM Subject: [mapserver-users] Escape caracter on Mapfile People I got on this situation: mixing single quotes with double quotes. Mapserver say at following page : http://mapserver.org/mapfile/expressions.html that for expressions it allow escape. Do it allow escape on other mapfile attributes ? Current mapserver version is 5.4.1 I need the following string layer data attribute to create an query to perform a column concat since address is a compound information and has some null values. I know some will say fix your data. It is stopping at CATEG: Parsing error near (CATEG) data "the_geom from ( select oid, *, \"CATEG\"||( CASE WHEN \"PREP\" is null THEN ' '::text ELSE \"PREP\" END )||\"LOGR\" as full_address from street_main_dissolv_utm ) as street_main_address_with_length_over_ten_kilometer" Postgresql lexer rules are: Identifiers are quoted with double quotes. A column name is an identifier. And column name identifiers not quoted are lower cased. So need the double quotes around those upper case identifiers. Text strings are quoted in single quotes. || is string concat operator -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100608/1d530e58/attachment.htm> From mapserver at meteologica.es Wed Jun 9 04:50:15 2010 From: mapserver at meteologica.es (=?UTF-8?B?UGFjbyBSZWdvZMOzbg==?=) Date: Wed, 09 Jun 2010 13:50:15 +0200 Subject: [mapserver-users] WMS layers order and copyright In-Reply-To: <AANLkTimhQXBSQfgnSkY3FH_vrGYym7Y5pto0fiMl0u7f@mail.gmail.com> References: <4C0D29E7.3080904@meteologica.es> <CC197224AC75CE4DB23F739B16891B8601879BC5@tikka.haapa.mmm.fi> <AANLkTimhQXBSQfgnSkY3FH_vrGYym7Y5pto0fiMl0u7f@mail.gmail.com> Message-ID: <4C0F7FF7.40504@meteologica.es> It worked! Thanks! I thought POSTLABELCACHE was only for scalebar since documentations says "For use with embedded scalebars only." You have saved me a lot of headaches. Regards, Paco On 07/06/10 20:43, thomas bonfort wrote: > POSTLABELCACHE at the layer level is the keyword you are looking for. > > regards, > thomas > > On Mon, Jun 7, 2010 at 19:52, Rahkonen Jukka<Jukka.Rahkonen at mmmtike.fi> wrote: > >> Hi, >> >> >> >> This is what I have been using: >> >> >> >> LAYER >> >> NAME "copyright" >> >> METADATA >> >> "wms_title" "copyright" >> >> END >> >> STATUS DEFAULT >> >> REQUIRES "[aerial_images]" # this text appears always with aerial images >> in WMS >> >> TYPE ANNOTATION >> >> TRANSFORM ll #set the image origin to be lower left >> >> FEATURE >> >> POINTS >> >> 85 -8 #set the offset from lower left position in pixels >> >> END >> >> TEXT " ? 2010 aerial image provider" #this is your displaying text >> >> END >> >> CLASS >> >> LABEL #defines the font, colors etc. of the text >> >> FONT "arial" >> >> TYPE TRUETYPE >> >> SIZE 8 >> >> BUFFER 1 >> >> COLOR 200 100 50 >> >> BACKGROUNDCOLOR 255 255 255 >> >> FORCE TRUE >> >> >> >> END >> >> END >> >> UNITS PIXELS #sets the units for the feature object >> >> END >> >> LAYER >> >> NAME "copyright2" >> >> METADATA >> >> "wms_title" "copyright2" >> >> END >> >> STATUS DEFAULT >> >> REQUIRES "![aerial_images]" #this layer appears with all WMS layers >> except aerials >> >> TYPE ANNOTATION >> >> TRANSFORM lr #set the image origin to be lower right >> >> FEATURE >> >> POINTS >> >> -75 -10 #set the offset >> >> END >> >> TEXT " ? 2010 raster map provider" #this is your displaying text >> >> END >> >> CLASS >> >> LABEL #defines the font, colors etc. of the text >> >> FONT "arial" >> >> TYPE TRUETYPE >> >> SIZE 8 >> >> BUFFER 1 >> >> COLOR 200 100 50 >> >> BACKGROUNDCOLOR 255 255 255 >> >> FORCE TRUE >> >> >> >> END >> >> END >> >> UNITS PIXELS #sets the units for the feature object >> >> END >> >> >> >> >> >> -Jukka Rahkonen- >> >> >> >> ________________________________ >> >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> mapserver at meteologica.es >> L?hetetty: 7. kes?kuuta 2010 20:19 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] WMS layers order and copyright >> >> >> >> Hi, >> >> How can i force our copyright-logo layer to appear above the other layers >> when serving WMS? Our logo/copyright layer is the last one in the mapfile, >> and we're using "STATUS DEFAULT" but it seems mapserver ignores order and >> draws this layer below the others. >> >> We have no problems when caling mapserser cgi directly with its own >> protocol, only when calling it using wms parameters. >> >> Is it a bug? >> >> Thanks, >> >> Paco >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > From schroeter at netgis.de Wed Jun 9 05:27:27 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Wed, 9 Jun 2010 14:27:27 +0200 Subject: [mapserver-users] rasterquery Message-ID: <B699ECD19166457BA91A362EE7D14423@SVEN> Hi, I try to make a raster query using phpmapscript My layer in the mapfile: # DHM ESRI Grid LAYER NAME "mydhm" DATA "dhm_vg/grid/dhm_vg" #grid dir STATUS default TYPE RASTER TEMPLATE "template/query.html" END My php code: //load mapfile $map= ms_newMapObj($mapfilepath.'\map.map'); //create point $qPoint = ms_newPointObj(); $qPoint->setXY(2554032,5521435); //set layer $layer = $map->getLayerByName("mydhm"); //query @$datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1); if ($datQuery == MS_SUCCESS) { echo "OK!"; } this works fine with mapserver 5.02 but there is no result with mapserver 5.6.1 apServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any idea? Sven From warmerdam at pobox.com Wed Jun 9 10:55:43 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 09 Jun 2010 13:55:43 -0400 Subject: [mapserver-users] rasterquery In-Reply-To: <B699ECD19166457BA91A362EE7D14423@SVEN> References: <B699ECD19166457BA91A362EE7D14423@SVEN> Message-ID: <4C0FD59F.90002@pobox.com> Sven Schroeter wrote: > Hi, > I try to make a raster query using phpmapscript > My layer in the mapfile: ... > this works fine with mapserver 5.02 but there is no result with > mapserver 5.6.1 Sven, Looking at one of my raster query tests, the one noteworthy difference I see is that I have "DUMP TRUE" in the layer. If you you still get no results with that in place, file a ticket and assign it to me "warmerdam" with full details to reproduce and I'll take a look. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jhevenor at rogers.com Wed Jun 9 13:23:22 2010 From: jhevenor at rogers.com (Josh Hevenor) Date: Wed, 09 Jun 2010 16:23:22 -0400 Subject: [mapserver-users] Define WKT shape with projection In-Reply-To: <4C0FD59F.90002@pobox.com> References: <B699ECD19166457BA91A362EE7D14423@SVEN> <4C0FD59F.90002@pobox.com> Message-ID: <4C0FF83A.70203@rogers.com> I think I'm missing something obvious here. I'm using PHP mapscript and I have two points (epsg:4326). I want to measure the distance between the two points and get the result in meters. I've come at it a couple ways and I'm definitely getting degrees returned. Well, I think I'm just getting the simple difference between the two points. For example, I'm getting the distance between point (0,0) and (0,1) as 1. I've tried making a shape object (MS_SHAPE_LINE) and using getLength() and I've tried making two point objects and using distanceToPoint. I get the same sort of thing. I guess I'm just looking for how I can define the output unit on a dynamically created shape. Any suggestions are welcome. Thanks! Josh From sparkymeister at gmail.com Wed Jun 9 14:15:42 2010 From: sparkymeister at gmail.com (Mark Wright) Date: Wed, 9 Jun 2010 15:15:42 -0600 Subject: [mapserver-users] Define WKT shape with projection In-Reply-To: <4C0FF83A.70203@rogers.com> References: <B699ECD19166457BA91A362EE7D14423@SVEN> <4C0FD59F.90002@pobox.com> <4C0FF83A.70203@rogers.com> Message-ID: <AANLkTilaBp66bws0UfLP9KfqMXc0TGeKOLOp0xbM1QoF@mail.gmail.com> What I think you need to do is reproject those points to a projection that uses meters rather than degrees. You'll still be getting the same basic result where the distance between 0,0,and 0,1 is one but now the distance between those points is one meter. Mark On Wed, Jun 9, 2010 at 2:23 PM, Josh Hevenor <jhevenor at rogers.com> wrote: > I think I'm missing something obvious here. > > I'm using PHP mapscript and I have two points (epsg:4326). I want to > measure the distance between the two points and get the result in > meters. ?I've come at it a couple ways and I'm definitely getting > degrees returned. Well, I think I'm just getting the simple difference > between the two points. For example, I'm getting the distance between > point (0,0) and (0,1) as 1. > > I've tried making a shape object (MS_SHAPE_LINE) and using getLength() > and I've tried making two point objects and using distanceToPoint. I get > the same sort of thing. > > I guess I'm just looking for how I can define the output unit on a > dynamically created shape. Any suggestions are welcome. > > Thanks! > > Josh > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Have fun or die trying - but try not to actually die. From schroeter at netgis.de Thu Jun 10 00:45:03 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 10 Jun 2010 09:45:03 +0200 Subject: [mapserver-users] rasterquery References: <B699ECD19166457BA91A362EE7D14423@SVEN> <4C0FD59F.90002@pobox.com> Message-ID: <93F26037DF194A8084AB672B57738FA8@SVEN> Frank, thank you for the hint, I have found that it only doesn't work with a ESRI Grid. With a .tif / geotif the rasterquery works without problems. Is this a bug? Greetings Sven From dalda at ikt.es Thu Jun 10 03:07:07 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 10 Jun 2010 12:07:07 +0200 Subject: [mapserver-users] GetFeatureInfo from a JavaScript client Message-ID: <224DBDAF88A6AC47BD22432815351BE00801292B@nekaposta1> Hi folks, My situation: We've developed a GIS web viewer based on OpenLayers, with some particular configurations, and is located in a server, let's called "Server A", and we also have some other web applications that include this viewer to show some information and they're located in "Server B". The thing is that to avoid the cross-domain problem we've created an ASP script located in "Server B" that calls mapserver to receive the getfeatureinfo request, but when I try it in my web browser I get the following message: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 460000 4690000 610000 4820000 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admcarto at ORA10GEX" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What I'm doing wrong?? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From Jukka.Rahkonen at mmmtike.fi Thu Jun 10 03:14:31 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 10 Jun 2010 13:14:31 +0300 Subject: [mapserver-users] GetFeatureInfo from a JavaScript client In-Reply-To: <224DBDAF88A6AC47BD22432815351BE00801292B@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00801292B@nekaposta1> Message-ID: <CC197224AC75CE4DB23F739B16891B8601879BCD@tikka.haapa.mmm.fi> Hi, Mapserver does probably not receive a valid GetFeatureInfo request. Open the Apache access log file and see what is coming in. You can also test the request from browser. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi folks, > My situation: We've developed a GIS web viewer based on OpenLayers, with some particular configurations, and is located in a server, let's called "Server A", and we also have some other web applications that include this viewer to show some information and they're located in "Server B". The thing is that to avoid the cross-domain problem we've created an ASP script located in "Server B" that calls mapserver to receive the getfeatureinfo request, but when I try it in my web browser I get the following message: > mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 460000 4690000 610000 4820000 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admcarto at ORA10GEX" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What I'm doing wrong?? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dalda at ikt.es Thu Jun 10 03:51:40 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 10 Jun 2010 12:51:40 +0200 Subject: [mapserver-users] GetFeatureInfo from a JavaScript client [SOLVED] Message-ID: <224DBDAF88A6AC47BD22432815351BE008012992@nekaposta1> Hi Jukka, Definetaly you're a Master!! That pointed me the right way. The asp web proxy was truncating the url passed as parameter to him, so I made some changes and it worked. Thanks man, what a relief... Regards, Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Enviado el: jueves, 10 de junio de 2010 12:15 Para: David Alda Fernandez de Lezea; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] GetFeatureInfo from a JavaScript client Hi, Mapserver does probably not receive a valid GetFeatureInfo request. Open the Apache access log file and see what is coming in. You can also test the request from browser. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi folks, > My situation: We've developed a GIS web viewer based on OpenLayers, with some particular configurations, and is located in a server, let's called "Server A", and we also have some other web applications that include this viewer to show some information and they're located in "Server B". The thing is that to avoid the cross-domain problem we've created an ASP script located in "Server B" that calls mapserver to receive the getfeatureinfo request, but when I try it in my web browser I get the following message: > mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. MapFile: MAP NAME "WMSSERVER" STATUS ON EXTENT 460000 4690000 610000 4820000 # Euskadi SHAPEPATH "shapes_estaticos/" FONTSET "misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log" DEBUG 5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/MFD/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admcarto at ORA10GEX" NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Recintos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "RecintosSigpac" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" END MAXSCALE 25000 DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac CLASS NAME "Recintos" STYLE OUTLINECOLOR 0 234 0 END TEMPLATE "ms_template.html" END END END I've got "ms_template.html" created with the magic string. What I'm doing wrong?? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pauljame at gmail.com Thu Jun 10 04:49:54 2010 From: pauljame at gmail.com (Paul james) Date: Thu, 10 Jun 2010 08:49:54 -0300 Subject: [mapserver-users] Especific Circle Symbol... Message-ID: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> Hello guys... I?m trying to draw a BLACK CIRCLE, with Red borders, and with a small white circle inside ... Any help? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/0282dcda/attachment.htm> From petersja at gmx.at Thu Jun 10 05:15:48 2010 From: petersja at gmx.at (Jan Peters-Anders) Date: Thu, 10 Jun 2010 14:15:48 +0200 Subject: [mapserver-users] Mapserver 5.6.3 compile error Message-ID: <20100610121548.103730@gmx.net> Dear all, I am just upgrading my Mapserver executable to version 5.6.3 and I am encoutering this compile error: --------------8<------------------- gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/include -lproj -ljpeg -lpng -L/usr/lib -lgdal -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv -lz -L/usr/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img /usr/bin/ld: cannot find -lodbcinst collect2: ld returned 1 exit status make: *** [shp2img] Error 1 --------------8<------------------- I know that this might be just a numb Linux specific problem and I am asking just a beginner's (which I still seem to be when it comes to compiling code on Linux :) ) question, but can anybody point me in the right direction how to link the odbcinst correctly (it is located at /usr/bin/odbcinst) so the compiler can find it? Thanks in advance! Regards Jan -- Think B4U Print 1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere 3 sheets of A4 paper = 1 litre of water . GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl From aboudreault at mapgears.com Thu Jun 10 05:22:24 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 10 Jun 2010 08:22:24 -0400 Subject: [mapserver-users] Mapserver 5.6.3 compile error In-Reply-To: <20100610121548.103730@gmx.net> References: <20100610121548.103730@gmx.net> Message-ID: <201006100822.24253.aboudreault@mapgears.com> Hi Jan, You have to install the unixodbc dev package. On my Ubuntu system, the package name is unixodbc-dev, which contains the libodbcinst.so file needed. Find the appropriate package for you distribution and install it. Alan On June 10, 2010 08:15:48 am Jan Peters-Anders wrote: > Dear all, > I am just upgrading my Mapserver executable to version 5.6.3 and I am > encoutering this compile error: > > --------------8<------------------- > gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL > -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF > -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD > -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -I/usr/lib -I/usr/include/freetype2 -I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall > -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR > -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR > -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL > -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ > -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib > -I/usr/include/freetype2 -I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd -ljpeg > -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng > -lz -lXpm -lX11 -L/usr/include -lproj -ljpeg -lpng -L/usr/lib -lgdal > -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng > -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl > -ldl -l gssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz > -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline > -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd -L/usr/kerberos/lib > -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto > -lz -L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv -lz > -L/usr/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img /usr/bin/ld: cannot > find -lodbcinst > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > --------------8<------------------- > > I know that this might be just a numb Linux specific problem and I am > asking just a beginner's (which I still seem to be when it comes to > compiling code on Linux :) ) question, but can anybody point me in the > right direction how to link the odbcinst correctly (it is located at > /usr/bin/odbcinst) so the compiler can find it? > > Thanks in advance! > > Regards > Jan > -- Alan Boudreault Mapgears http://www.mapgears.com From leonardo.olivieri at imteam.it Thu Jun 10 05:24:18 2010 From: leonardo.olivieri at imteam.it (Leonardo Olivieri) Date: Thu, 10 Jun 2010 14:24:18 +0200 Subject: [mapserver-users] entities one upon the other References: <B79E171B289F6A41A4E530129147344B12F4A900@phoenix.imteam.local> Message-ID: <B79E171B289F6A41A4E530129147344B14B113D0@phoenix.imteam.local> Hello, I have a polygon layer with entities, one located upon the other. The result that I have is: The entity located upon, hides the entity underneath. Is it possible to configure mapfile in such a way that where the entities are located ones upon the others, the colour becomes evidenced and different to the case in which the entities aren't located ones upon the others? I cannot use a special class for the small entities and I don't reorder the shapefile by the size Thank in advance Leonardo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/941a32f1/attachment.htm> From schroeter at netgis.de Thu Jun 10 06:01:49 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 10 Jun 2010 15:01:49 +0200 Subject: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript Message-ID: <FB2685280D564308B4AF4569662A4C3D@SVEN> Hi, I'm still fighting with mapserver >= 5.6 and querys via php-mapscript. My code for e.g. making a queryByRect works fine since I use resultsGetShape instead of getShape for version 5.6: //query @$datQuery = $query_layer->queryByRect($qRect); //number of objects $resnum = $query_layer->getNumResults(); echo "number of objects: ".$resnum."<br>"; //if query success if ($datQuery == MS_SUCCESS) { //check ms version if (ms_GetVersionInt() < 50600){ $query_layer->open(); } //write table echo '<table cellspacing="0" cellpadding="2" border="1" ><tr>'; for ($j=0; $j<$query_layer->getNumResults(); $j++) { $result = $query_layer->getResult($j); //check ms version if (ms_GetVersionInt() < 50600){ $shpobj = $query_layer->getShape($result->tileindex,$result->shapeindex); } else{ $shpobj = $query_layer->resultsGetShape($result->shapeindex,$result->tileindex); } $si = $result->shapeindex; $attr = $shpobj->values; echo '<tr><td>'.$si.'</td>'; foreach($attr as $name=>$wert) { echo '<td>'.$wert.'</td>'; } echo '</tr>'; $shpobj->free(); } //check ms version if (ms_GetVersionInt() < 50600){ $query_layer->close(); } echo '</table>'; } // end success My problem: using ms 5.6 the shapeindex ($result->shapeindex;) is only an temporal arrayindex (0-x) and not the "real" shapeindex I get with mapserverversions < 5.6. How can I get the "real" shapindex of my shapes using ms 5.6? I need this for pointing on single shapes in another program. Thanks Sven From MarkVolz at co.lyon.mn.us Thu Jun 10 07:09:19 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 10 Jun 2010 09:09:19 -0500 Subject: [mapserver-users] setting up raster queries Message-ID: <3D56274B4A7874468F58FADDBFD09801092E4E5B@llmhs02.r8nssis.local> Hello, I have a DEM file on my map so that users can click identify and get the elevation for the location. The query works however I get anywhere between 0 to 2 records returned. Is there a way to return only a single record on a query? Thanks Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/2a0d6478/attachment.htm> From MarkVolz at co.lyon.mn.us Thu Jun 10 07:21:34 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 10 Jun 2010 09:21:34 -0500 Subject: [mapserver-users] Apply a single label to all the classes in a layer Message-ID: <3D56274B4A7874468F58FADDBFD09801092E4E79@llmhs02.r8nssis.local> Hello, I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer? For Example can we make a map file like this: LAYER CLASS EXPRESSION STYLE CLASS EXPRESSION STYLE .... LABEL #for all classes COLOR ... END #Layer As opposed to making a layer file like this: LAYER CLASS EXPRESSION STYLE LABEL CLASS EXPRESSION STYLE LABEL ... END #Layer Thanks Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/907fc888/attachment.htm> From jmckenna at gatewaygeomatics.com Thu Jun 10 07:47:53 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Jun 2010 11:47:53 -0300 Subject: [mapserver-users] Apply a single label to all the classes in a layer In-Reply-To: <3D56274B4A7874468F58FADDBFD09801092E4E79@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801092E4E79@llmhs02.r8nssis.local> Message-ID: <4C10FB19.5040107@gatewaygeomatics.com> Hello Mark, Unfortunately no. You'll be doing a lot of copying and pasting. Alternatively you could just use an include file for each re-used LABEL object (http://www.mapserver.org/mapfile/Include.html), which would shorted your mapfie. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Mark Volz wrote: > Hello, > > I have a layer that contains many different classes. Can we apply a > single label to all the classes in a layer? > > For Example can we make a map file like this: > > LAYER > > CLASS > > EXPRESSION > > STYLE > > CLASS > > EXPRESSION > > STYLE > > ?. > > LABEL #for all classes > > COLOR > > ? > > END #Layer > > As opposed to making a layer file like this: > > LAYER > > CLASS > > EXPRESSION > > STYLE > > LABEL > > CLASS > > EXPRESSION > > STYLE > > LABEL > > ... > > END #Layer > From schroeter at netgis.de Thu Jun 10 07:50:59 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 10 Jun 2010 16:50:59 +0200 Subject: [mapserver-users] setting up raster queries References: <3D56274B4A7874468F58FADDBFD09801092E4E5B@llmhs02.r8nssis.local> Message-ID: <CA6938ADC8C34E97B132928E0C12E8CF@SVEN> setting up raster queriesHi, use MS_MULTIPLE and MS_SINGLE e.g. with php-mapscript: If you want only one result use $datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1); if you want more results: $datQuery = $layer->queryByPoint($qPoint, MS_MULTIPLE, 1); Greetings Sven ----- Original Message ----- From: Mark Volz To: mapserver-users at lists.osgeo.org Sent: Thursday, June 10, 2010 4:09 PM Subject: [mapserver-users] setting up raster queries Hello, I have a DEM file on my map so that users can click identify and get the elevation for the location. The query works however I get anywhere between 0 to 2 records returned. Is there a way to return only a single record on a query? Thanks Mark Volz GIS Specialist Lyon County, MN _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Jun 10 07:53:37 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 10 Jun 2010 11:53:37 -0300 Subject: [mapserver-users] Especific Circle Symbol... In-Reply-To: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> References: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> Message-ID: <4C10FC71.6090302@gatewaygeomatics.com> Paul james wrote: > Hello guys... > > I?m trying to draw a BLACK CIRCLE, with Red borders, and with a small > white circle inside ... > Hello Paul, That should be possible, with the 2 layers of TYPE CIRCLE (see example in http://www.mapserver.org/mapfile/layer.html). You might want to try that, and then if you are still having problems include your sample layers in your next email to this email list. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From MarkVolz at co.lyon.mn.us Thu Jun 10 07:56:19 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 10 Jun 2010 09:56:19 -0500 Subject: [mapserver-users] Apply a single label to all the classes in a layer In-Reply-To: <AANLkTilQUSYeyXCtyzhTMcTZGIFHy-QC4HethI0qucn-@mail.gmail.com> References: <3D56274B4A7874468F58FADDBFD09801092E4E79@llmhs02.r8nssis.local> <AANLkTilQUSYeyXCtyzhTMcTZGIFHy-QC4HethI0qucn-@mail.gmail.com> Message-ID: <3D56274B4A7874468F58FADDBFD09801092E4ED5@llmhs02.r8nssis.local> Thank you for your reply. I should have clarified my needs better. I want the same label to apply to all classes. I could copy and paste the LABEL section to each class, however since I plan to deal with many classes that would make it more difficult If I wanted to modify my label. Mark Volz GIS Specialist Lyon County, MN 507-532-8218 From: TC Haddad [mailto:tchaddad at gmail.com] Sent: Thursday, June 10, 2010 9:43 AM To: Mark Volz Subject: Re: [mapserver-users] Apply a single label to all the classes in a layer Mark I think you can do EXPRESSION /./ in a single CLASS and it will work for all values in that field. Technically it works for all "remaining" values in a field not previously specified, so you could define a few specific classes to be unique, and then use the above to symbolize the rest, if that was something you wanted. hope that helps, Tanya On Thu, Jun 10, 2010 at 7:21 AM, Mark Volz <MarkVolz at co.lyon.mn.us> wrote: Hello, I have a layer that contains many different classes. Can we apply a single label to all the classes in a layer? For Example can we make a map file like this: LAYER CLASS EXPRESSION STYLE CLASS EXPRESSION STYLE .... LABEL #for all classes COLOR ... END #Layer As opposed to making a layer file like this: LAYER CLASS EXPRESSION STYLE LABEL CLASS EXPRESSION STYLE LABEL ... END #Layer Thanks Mark Volz GIS Specialist Lyon County, MN _______________________________________________ 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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/465cacb7/attachment.htm> From dmorissette at mapgears.com Thu Jun 10 08:01:17 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 10 Jun 2010 11:01:17 -0400 Subject: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript In-Reply-To: <FB2685280D564308B4AF4569662A4C3D@SVEN> References: <FB2685280D564308B4AF4569662A4C3D@SVEN> Message-ID: <4C10FE3D.9070203@mapgears.com> Sven Schroeter wrote: > > My problem: using ms 5.6 the shapeindex ($result->shapeindex;) is only > an temporal arrayindex (0-x) and not the "real" shapeindex I get with > mapserverversions < 5.6. > How can I get the "real" shapindex of my shapes using ms 5.6? I need > this for pointing on single shapes in another program. > I don't think there is any way to get the "real" shapeindex unless you have an id field in the data itself. You could file a ticket about this, but for some data sources, such as Postgis, Oracle Spatial, and many OGR ones, there is no concept of absolute record id, so if something was added, it would very likely work only for shapefiles -- Daniel Morissette http://www.mapgears.com/ From schroeter at netgis.de Thu Jun 10 08:27:04 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 10 Jun 2010 17:27:04 +0200 Subject: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript Message-ID: <64D5E6AEC4E6420DB1A6765225E010BB@SVEN> Hi Daniel, > > I don't think there is any way to get the "real" shapeindex unless you > have an id field in the data itself. You could file a ticket about this, > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > ones, there is no concept of absolute record id, so if something was > added, it would very likely work only for shapefiles > in the older ms versions I got with $result->shapeindex an absolute record id for all data sources (postgis, OGR, shapefiles). what ids were used before by default e.g. for postgis data? why this concept has changed in the new version 5.6? Thanx Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/4c6e2e48/attachment.htm> From pauljame at gmail.com Thu Jun 10 10:02:02 2010 From: pauljame at gmail.com (Paul james) Date: Thu, 10 Jun 2010 14:02:02 -0300 Subject: [mapserver-users] Especific Circle Symbol... In-Reply-To: <4C10FC71.6090302@gatewaygeomatics.com> References: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> <4C10FC71.6090302@gatewaygeomatics.com> Message-ID: <AANLkTiloSziC5WQ7sifULyFC3gWwgEHLdtdK3pfzO0SH@mail.gmail.com> Thanks all! It worked fine... Paul On Thu, Jun 10, 2010 at 11:53 AM, Jeff McKenna < jmckenna at gatewaygeomatics.com> wrote: > Paul james wrote: > >> Hello guys... >> >> I?m trying to draw a BLACK CIRCLE, with Red borders, and with a small >> white circle inside ... >> >> > Hello Paul, > > That should be possible, with the 2 layers of TYPE CIRCLE (see example in > http://www.mapserver.org/mapfile/layer.html). You might want to try that, > and then if you are still having problems include your sample layers in your > next email to this email list. > > > -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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/92d37919/attachment.htm> From jeff.dege at korterra.com Thu Jun 10 10:24:56 2010 From: jeff.dege at korterra.com (Jeff Dege) Date: Thu, 10 Jun 2010 12:24:56 -0500 Subject: [mapserver-users] Layer ordering in WMS Message-ID: <AE1AB1AFC27C7D40BC9B568E4E58542A1AE1257F63@SPRINGFIELD.koroffice.net> I'm trying to figure out how to configure layer ordering when using Mapserver using WMS. I'm not at all certain I've figured it out, yet, but one thing is clear - it's very complicated, depending upon the ordering of the layers in the mapfile, which groups the layers are a part of, whether the layers are configured with a status of ON or DEFAULT, and the ordering of the layers in the WMS request. Is there some place in the documentation that explains all of this, or have I just missed it? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/75ff22a3/attachment.htm> From Steve.Lime at state.mn.us Thu Jun 10 10:54:29 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 10 Jun 2010 12:54:29 -0500 Subject: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript In-Reply-To: <64D5E6AEC4E6420DB1A6765225E010BB@SVEN> References: <64D5E6AEC4E6420DB1A6765225E010BB@SVEN> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C02959A0A45@MNMAIL05.ead.state.mn.us> The concept changed in 5.6 to support improved query performance, especially for RDBMS data sources. It's been a bit of a cluster though and interpretation of $result->shapeindex varies by 5.6.x version and driver. We'll get this straightened out and simplified in 6.0. Addressing 5.6.3 only: - shapeindex should hold the global record index for a shape - tileindex should hold the result set record index for a shape (for RDBMS data sources, e.g. Oracle and PostGIS only) There still may be inconsistencies with OGR-fronted RDBMS sources. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sven Schroeter Sent: Thursday, June 10, 2010 10:27 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript Hi Daniel, > > I don't think there is any way to get the "real" shapeindex unless you > have an id field in the data itself. You could file a ticket about this, > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > ones, there is no concept of absolute record id, so if something was > added, it would very likely work only for shapefiles > in the older ms versions I got with $result->shapeindex an absolute record id for all data sources (postgis, OGR, shapefiles). what ids were used before by default e.g. for postgis data? why this concept has changed in the new version 5.6? Thanx Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100610/fa0a8571/attachment.htm> From Steve.Lime at state.mn.us Thu Jun 10 16:26:40 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 10 Jun 2010 18:26:40 -0500 Subject: [mapserver-users] FOSS4G 2010 Early Bird Deadline: June 15 Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C0295303425@MNMAIL05.ead.state.mn.us> If you plan to come to Barcelona, Spain for the Free and Open Source Software for Geospatial conference in Semptember this year, then you best register right now, as early bird registration ends this Tuesday 15 June 2010. http://2010.foss4g.org/registration.php FOSS4G is the international Free and Open Source Software for Geospatial conference, which comes to Barcelona, Spain, 6-9 September 2010. From guitambe at topo.upv.es Fri Jun 11 02:52:37 2010 From: guitambe at topo.upv.es (Guillermo Tamburini Beliveau) Date: Fri, 11 Jun 2010 11:52:37 +0200 Subject: [mapserver-users] Problem with postgis querybypoint in mapserver-php Message-ID: <1276249957.4c12076579c8b@webmail.upv.es> Hi, I'm trying to recover the line of an ancient subject that I wrote to the list! It is about a problem with the querybypoint method in php in mapserver with postgis layers. If you want to see it, please take a look below (previous message). I unsubscribed the list because my main reason was to get a response to my doubt, and nobody response me. But now, browsing the net, I've seen that a user responded! Please if you have more information about my problem, reply me because I haven't resolved it yet. And please, excuse me for using your user name in the subject, I couldn't send you an e-mail. Previous message ----------------------------------------------------------- Hi, I would like to know if some body knows the reason of a strange problem that I'm having with the php-mapscript methods for the query methods in the postgis layers. Indistinctly for querybypoint or querbyrectangle, my code (different versions of it), works perfectly with shapes, but it always fails with the postgis layers. When calling to the shapeindex member of the ResultCacheMemberObj obtained, it always returns 0, as is contrary to what happends with the shapes, where it always returns the correct shapeindex. Then it is impossible to acces to the desidered feature. May I have to add more columns to the select of the .map file for getting the features atributes like in the example (I don't think so)? DATA "geom FROM puntos using unique gid" # DATA "geom FROM (select gid , nombre, tramo, geom from puntos) as foo using unique geom" # DATA "geom FROM (select * from puntos) as foo using unique gid" Or there is some paramter in the configuration files of mapserver or php that I have to change. There is the code of the function: function CercaPunto($point,$map,$radius) { $qlayer = $map->getLayerByName('trazado'); $qlayer->set("tolerance",$radius); @$qlayer->queryByPoint($point, MS_MULTIPLE, $radius); $numResults = $qlayer->getNumResults(); if ($numResults != 0) { for ($i = 0; $i < $numResults; $i++) { $query_result = $qlayer->getResult($i); $Lista_ele[$i] = $query_result->shapeindex; // Here is the error with postgres } } else { $valido =0; $Lista_ele = ""; } return $Lista_ele; } // end CercaPunto Thank you very much. From guitambe at topo.upv.es Fri Jun 11 03:33:47 2010 From: guitambe at topo.upv.es (Guillermo Tamburini Beliveau) Date: Fri, 11 Jun 2010 12:33:47 +0200 Subject: [mapserver-users] Problem with postgis querybypoint in mapserver-php (abusqu***) Message-ID: <1276252427.4c12110b46984@webmail.upv.es> Hi, At last I forgot to put the user name. thank you. Mensaje citado por Guillermo Tamburini Beliveau <guitambe at topo.upv.es>: > Hi, > > I'm trying to recover the line of an ancient subject that I wrote to the > list! > It is about a problem with the querybypoint method in php in mapserver with > postgis layers. If you want to see it, please take a look below (previous > message). > I unsubscribed the list because my main reason was to get a response to my > doubt, and nobody response me. But now, browsing the net, I've seen that a > user > responded! > Please if you have more information about my problem, reply me because I > haven't > resolved it yet. > > And please, excuse me for using your user name in the subject, I couldn't > send > you an e-mail. > > Previous message ----------------------------------------------------------- > > Hi, > > I would like to know if some body knows the reason of a strange problem that > I'm > having with the php-mapscript methods for the query methods in the postgis > layers. > > Indistinctly for querybypoint or querbyrectangle, my code (different versions > of > it), works perfectly with shapes, but it always fails with the postgis > layers. > When calling to the shapeindex member of the ResultCacheMemberObj obtained, > it > always returns 0, as is contrary to what happends with the shapes, where it > always returns the correct shapeindex. > > Then it is impossible to acces to the desidered feature. > > May I have to add more columns to the select of the .map file for getting > the > features atributes like in the example (I don't think so)? > > DATA "geom FROM puntos using unique gid" > # DATA "geom FROM (select gid , nombre, tramo, geom from puntos) as > foo > using > unique geom" > # DATA "geom FROM (select * from puntos) as foo using unique gid" > > Or there is some paramter in the configuration files of mapserver or php > that I > have to change. > > There is the code of the function: > > function CercaPunto($point,$map,$radius) { > > $qlayer = $map->getLayerByName('trazado'); > $qlayer->set("tolerance",$radius); > @$qlayer->queryByPoint($point, MS_MULTIPLE, $radius); > $numResults = $qlayer->getNumResults(); > if ($numResults != 0) { > for ($i = 0; $i < $numResults; $i++) { > $query_result = $qlayer->getResult($i); > $Lista_ele[$i] = $query_result->shapeindex; // Here is the > error > with postgres > } > } else { > $valido =0; > $Lista_ele = ""; > } > return $Lista_ele; > } // end CercaPunto > > > Thank you very much. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ----- Fin del mensaje reenviado ----- From M.Kofahl at gmx.net Fri Jun 11 04:03:32 2010 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Fri, 11 Jun 2010 13:03:32 +0200 Subject: [mapserver-users] identifying segfault Message-ID: <20100611110332.31530@gmx.net> Hi, I'm trying to identify a segfault which I suppose to be mapscript related. Nothing in the logs, the only message I have is httpd[10210]: segfault at 00007fffe46e5fcc rip 00002adac849e6aa rsp 00007fffe46e5fa0 error 6 What can I do with these pointers? I did play around with readelf but could not find anything useful. Martin From abusquets at gmail.com Fri Jun 11 05:57:23 2010 From: abusquets at gmail.com (Alexandre Busquets) Date: Fri, 11 Jun 2010 14:57:23 +0200 Subject: [mapserver-users] Problem with postgis querybypoint in mapserver-php In-Reply-To: <1276249957.4c12076579c8b@webmail.upv.es> References: <1276249957.4c12076579c8b@webmail.upv.es> Message-ID: <AANLkTim9twf2FfX_i3rv8jJIIhxnc_ArkMqRalSnVb8L@mail.gmail.com> Try to implement these code changes in your code $qlayer->set('template', 'none'); $qlayer->set('status', MS_ON); $map->setExtent($minX, $minY, $maxX, $maxY ); $map->setSize($WIDTH, $'HEIGHT'); $map->preparequery(); [...] for ($i = 0; $i < $numResults; $i++) { $resultat = $qlayer->getResult($i); $shape = $qlayer->getShape($resultat->tileindex, $resultat->shapeindex); $dades[]=$shape->values; [...] 2010/6/11 Guillermo Tamburini Beliveau <guitambe at topo.upv.es>: > Hi, > > I'm trying to recover the line of an ancient subject that I wrote to the list! > It is about a problem with the querybypoint method in php in mapserver with > postgis layers. If you want to see it, please take a look below (previous > message). > I unsubscribed the list because my main reason was to get a response to my > doubt, and nobody response me. But now, browsing the net, I've seen that a user > responded! > Please if you have more information about my problem, reply me because I haven't > resolved it yet. > > And please, excuse me for using your user name in the subject, I couldn't send > you an e-mail. > > Previous message ----------------------------------------------------------- > > Hi, > > I would like to know if some body knows the reason of a strange problem that I'm > having with the php-mapscript methods for the query methods in the postgis > layers. > > Indistinctly for querybypoint or querbyrectangle, my code (different versions of > it), works perfectly with shapes, but it always fails with the postgis layers. > When calling to the shapeindex member of the ResultCacheMemberObj obtained, it > always returns 0, as is contrary to what happends with the shapes, where it > always returns the correct shapeindex. > > ? ?Then it is impossible to acces to the desidered feature. > > ? ?May I have to add more columns to the select of the .map file for getting > the > ? ?features atributes like in the example (I don't think so)? > > ? ? ? ?DATA "geom FROM puntos using unique gid" > ? ?# ? ?DATA "geom FROM (select gid , nombre, tramo, geom from puntos) as foo > using > ? ?unique geom" > ? ?# ? ?DATA "geom FROM (select * from puntos) as foo using unique gid" > > ? ?Or there is some paramter in the configuration files of mapserver or php > that I > ? ?have to change. > > ? ?There is the code of the function: > > ? ?function CercaPunto($point,$map,$radius) { > > ? ? ? ? ?$qlayer = $map->getLayerByName('trazado'); > ? ? ? ? $qlayer->set("tolerance",$radius); > ? ? ? ? @$qlayer->queryByPoint($point, MS_MULTIPLE, $radius); > ? ? ? ? $numResults = $qlayer->getNumResults(); > ? ? ? ? if ($numResults != 0) { > ? ? ? ? ? ? ?for ($i = 0; $i < $numResults; $i++) { > ? ? ? ? ? ? ? ? ?$query_result = $qlayer->getResult($i); > ? ? ? ? ? ? ? ? ? $Lista_ele[$i] = $query_result->shapeindex; // Here is the > error > ? ?with postgres > ? ? ? ? ? ? ?} > ? ? ? ? } else { > ? ? ? ? ? ? ?$valido =0; > ? ? ? ? ? ? ?$Lista_ele = ""; > ? ? ? ? } > ? ? ? ? return $Lista_ele; > ? ?} // end CercaPunto > > > ? ?Thank you very much. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mbp at geomtech.com Fri Jun 11 06:46:03 2010 From: mbp at geomtech.com (Mark Phillips) Date: Fri, 11 Jun 2010 09:46:03 -0400 Subject: [mapserver-users] automatically generate a layer's PROJECTION object for a mapfile? Message-ID: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> Hi, Does anyone know if there is a way to automatically generate the proj4 projection keyword values for a layer, needed for the PROJECTION object for that layer in a mapfile. assuming that you have the layer's data in a file that includes projection metadata? I'm interested in using MapServer to create WMS services for a bunch of raster layers, and I want to automatically generate the necessary mapfile(s) with a script that scans a directory containing a bunch of raster files, and creates the mapfile with a layer for each raster. The rasters might be in different projections (probably only a handful of different ones, but I can't predict them in advance), and I'm at a loss as to how to automatically generate the proj4 values for each layer's PROJECTION object. The raster files all have associated projection metadata with them --- I can use gdalinfo to find out the projection's WKT string, but I haven't found a way to convert that to the proj4 keyword values that are needed in the mapfile. I know that I can manually load a raster layer into a desktop program such as QGIS or uDig and use the program's GUI to find the projection's proj4 values. But I need something that can be automated with a script that runs with no GUI and no human interaction. Alternatively, since I can find a layer's WKT projection string using gdalinfo, it'd be really convenient if the mapfile PROJECTION object accepted WKT strings, but the mapfile documentation says that the PROJECTION object expects only proj4 keywords. Is there a way to specify a projection in a mapfile using WKT strings instead? Or a way to use gdalinfo, or some other command-line tool, to extract a file's projection as a proj4 string instead of a WKT string? I've searched the docs and mailing list for info on this but haven't come up with anything; I'd appreciate any tips! Thanks, --Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100611/200f81be/attachment.htm> From jmckenna at gatewaygeomatics.com Fri Jun 11 06:59:32 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 11 Jun 2010 10:59:32 -0300 Subject: [mapserver-users] automatically generate a layer's PROJECTION object for a mapfile? In-Reply-To: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> References: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> Message-ID: <4C124144.50201@gatewaygeomatics.com> Mark Phillips wrote: > Hi, > > Does anyone know if there is a way to automatically generate the proj4 > projection keyword values for a layer, needed for the PROJECTION object > for that layer in a mapfile. assuming that you have the layer's data in > a file that includes projection metadata? > You might want to give a read to the planned changes in MapServer 6.0 for a 'PROJECTION AUTO' parameter: http://www.mapserver.org/development/rfc/ms-rfc-37.html And also follow or join the recent thread on this support on the MapServer-dev email list: http://osgeo-org.1803224.n2.nabble.com/MS-RFC-37-AUTO-Projection-Support-td4607476.html#a4607476 -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From sumit321 at hotmail.com Fri Jun 11 07:09:54 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Fri, 11 Jun 2010 07:09:54 -0700 (PDT) Subject: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile? In-Reply-To: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> References: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> Message-ID: <1276265394106-5168060.post@n2.nabble.com> you would like to use OGR/OSR for this purpose. If you are using .NET you can use swig wrappers. SpatialReference object can be used to create proj4 string from wkt. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/automatically-generate-a-layer-s-PROJECTION-object-for-a-mapfile-tp5167979p5168060.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Fri Jun 11 07:20:36 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 11 Jun 2010 09:20:36 -0500 Subject: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile? In-Reply-To: <1276265394106-5168060.post@n2.nabble.com> References: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> <1276265394106-5168060.post@n2.nabble.com> Message-ID: <D2C2A8AE8E016C42A974F644AF21E13902FFCDB092@MNMAIL05.ead.state.mn.us> You could also use Python or the other languages supported by gdal. In Python, here is a little bit of code to show the function. >>> spatialReference = layer.GetSpatialRef() >>> spatialReference.ExportToProj4() David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sumit Sharma Sent: Friday, June 11, 2010 9:10 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: automatically generate a layer's PROJECTION object for a mapfile? you would like to use OGR/OSR for this purpose. If you are using .NET you can use swig wrappers. SpatialReference object can be used to create proj4 string from wkt. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/automatically-generate-a-layer-s-PROJECTION-object-for-a-mapfile-tp5167979p5168060.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 mphillip at unca.edu Fri Jun 11 07:23:45 2010 From: mphillip at unca.edu (Mark Phillips) Date: Fri, 11 Jun 2010 10:23:45 -0400 Subject: [mapserver-users] automatically generate a layer's PROJECTION object for a mapfile? In-Reply-To: <4C124144.50201@gatewaygeomatics.com> References: <AANLkTikbTaYh3Pftf0uFnqr4Pa3mI00ZF7HLmdWpskPJ@mail.gmail.com> <4C124144.50201@gatewaygeomatics.com> Message-ID: <AANLkTilLzjqnDTrqp8GMtxeQvFeHdBwxWqbBAGyKWhrO@mail.gmail.com> This is way cool! Have the changes related to RFC 37 been incorporated into the trunk yet? If so, I'll try it out! When is a 6.0 release expected? Thanks, --Mark On Fri, Jun 11, 2010 at 9:59 AM, Jeff McKenna <jmckenna at gatewaygeomatics.com > wrote: > Mark Phillips wrote: > >> Hi, >> >> Does anyone know if there is a way to automatically generate the proj4 >> projection keyword values for a layer, needed for the PROJECTION object for >> that layer in a mapfile. assuming that you have the layer's data in a file >> that includes projection metadata? >> >> > You might want to give a read to the planned changes in MapServer 6.0 for a > 'PROJECTION AUTO' parameter: > http://www.mapserver.org/development/rfc/ms-rfc-37.html > > And also follow or join the recent thread on this support on the > MapServer-dev email list: > http://osgeo-org.1803224.n2.nabble.com/MS-RFC-37-AUTO-Projection-Support-td4607476.html#a4607476 > > -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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100611/9148f95b/attachment.htm> From vilella.ricardo at gmail.com Fri Jun 11 07:42:39 2010 From: vilella.ricardo at gmail.com (Ricardo Vilella) Date: Fri, 11 Jun 2010 11:42:39 -0300 Subject: [mapserver-users] Simple question Message-ID: <AANLkTikwoPVFpFvZHsneYUHWBuuLgPNCTZmZkbjzyUzl@mail.gmail.com> Hi all, is the first time I use the list. I detail my work environment: * Debian Lenny * Mapserver version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE * Apache 2.2.9 * OpenLayers 2.9.1 For the moment I have 4 layers that are loaded according to the zoom level: layer 1: polygon - country layer 2: line - country limits layer 3: polygon - Province layer 4: line - Province boundaries The problem is when load the layer 3 and 4, the lines of the layer 1 and 2 that overlap are indistinguishable. The reference of the boundaries of the layer 1 and 2 are lost. Look in the documentation but not found a configuration that solved the problem. I tried with the OPACITY property but don't work out. Sorry for my english, any help is welcome. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100611/df4a38b3/attachment.htm> From sumariva at gmail.com Fri Jun 11 08:06:41 2010 From: sumariva at gmail.com (Cristiano Sumariva) Date: Fri, 11 Jun 2010 12:06:41 -0300 Subject: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript In-Reply-To: <A7F7B3043D3BF0438F1206BAA3C9933C02959A0A45@MNMAIL05.ead.state.mn.us> References: <64D5E6AEC4E6420DB1A6765225E010BB@SVEN> <A7F7B3043D3BF0438F1206BAA3C9933C02959A0A45@MNMAIL05.ead.state.mn.us> Message-ID: <AANLkTile762-LD_NTMg5NVxRmWyD5EOvhvtg3TH-Fgxx@mail.gmail.com> If I remember well the loader script shp2pgsql create the unique attribute called gid. And that gid I supose be the record id or record position from the shape source file. So if you need a map between file position and database record returned read the attribute 'gid' from that shape record. I do not know if still done on recent versions of loader. 2010/6/10 Lime, Steve D (DNR) <Steve.Lime at state.mn.us> > The concept changed in 5.6 to support improved query performance, > especially for RDBMS data sources. It?s been a bit of > > a cluster though and interpretation of $result->shapeindex varies by 5.6.x > version and driver. We?ll get this straightened > > out and simplified in 6.0. Addressing 5.6.3 only: > > > > - shapeindex should hold the global record index for a shape > > - tileindex should hold the result set record index for a shape > (for RDBMS data sources, e.g. Oracle and PostGIS only) > > > > There still may be inconsistencies with OGR-fronted RDBMS sources. > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Sven Schroeter > *Sent:* Thursday, June 10, 2010 10:27 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] mapserver >= 5.6 and querys via > php-mapscript > > > > Hi Daniel, > > > > I don't think there is any way to get the "real" shapeindex unless you > > have an id field in the data itself. You could file a ticket about this, > > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > > ones, there is no concept of absolute record id, so if something was > > added, it would very likely work only for shapefiles > > > > in the older ms versions I got with $result->shapeindex an absolute record > id for all data sources (postgis, OGR, shapefiles). > what ids were used before by default e.g. for postgis data? > why this concept has changed in the new version 5.6? > Thanx > Sven > > _______________________________________________ > 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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100611/c8800476/attachment.htm> From Phil.Anzel at ftc.usda.gov Fri Jun 11 09:07:19 2010 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Jun 2010 11:07:19 -0500 Subject: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled Message-ID: <809503517A1B0347AF9A161507E6B29919CA19C3F4@mokansasc7s304.agent.one.usda.gov> Hi, It appears that a polygon's outline does not appear in a PDF image unless the polygon is also filled. Consider this MAP file: MAP OUTPUTFORMAT NAME pdf DRIVER pdf END # OUTPUTFORMAT # NAME png # DRIVER "GD/PNG" # END EXTENT 643507 5660466 646127 5661655 SIZE 800 400 IMAGECOLOR 255 255 255 PROJECTION "init=epsg:32633" END LAYER NAME test_polygon STATUS ON TYPE POLYGON FEATURE WKT 'POLYGON ((645000 5660900, 645500 5660900, 645500 5661000, 645000 5661000, 645000 5660900))' END CLASS STYLE #COLOR 0 255 0 OUTLINECOLOR 255 0 0 END END END END Case 1: Unfilled polygon, PDF output: As written above, the PDF output is empty. This is the problem case. Case 2: Filled polygon, PDF output: If the "#COLOR" line is uncommented, the green-filled polygon, complete with red outline, is drawn. Case 3: Unfilled polygon, PNG output: If I switch to PNG output (by uncommenting the OUTPUTFORMAT for PNG and commenting-out the PDF one) and revert to "#COLOR" (thereby disabling polygon fill), the unfilled red outline is drawn in the PNG output. Case 4: Filled polygon, PNG output: With PNG output and fill COLOR enabled, the filled green polygon with red outline is drawn to the PNG output. Is this a defect? Could you suggest a work-around for unfilled polygon PDF output? A secondary observation: Using a filled polygon for PDF, use of a "WIDTH" parameter appears to have no effect upon the width of the outline. I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The problem was demonstrated with use of the "drawmap.exe" command-line utility. Thanks in advance, - Phil Anzel From yassefa at dmsolutions.ca Fri Jun 11 11:11:36 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 11 Jun 2010 14:11:36 -0400 Subject: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled In-Reply-To: <809503517A1B0347AF9A161507E6B29919CA19C3F4@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29919CA19C3F4@mokansasc7s304.agent.one.usda.gov> Message-ID: <4C127C58.8070606@dmsolutions.ca> Hi There, The first issue with the color/fill-color seems to be a defect. This second issue with the Width parameter is due to the fact that the parameter is not supported in the PDF driver. The intention is to depreciate the current PDF support and use the Cairo PDF driver for the 6.0 release [1]. At that point we should have support for things like width, color/fill-color, ... be consistent between all output drivers. You could maybe try using MapServer from svn and try the Cairo support and see if that solves your immediate needs. regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > Case 1: Unfilled polygon, PDF output: As written above, the PDF output is empty. This is the problem case. > > Case 2: Filled polygon, PDF output: If the "#COLOR" line is uncommented, the green-filled polygon, complete with red outline, is drawn. > > Case 3: Unfilled polygon, PNG output: If I switch to PNG output (by uncommenting the OUTPUTFORMAT for PNG and commenting-out the PDF one) and revert to "#COLOR" (thereby disabling polygon fill), the unfilled red outline is drawn in the PNG output. > > Case 4: Filled polygon, PNG output: With PNG output and fill COLOR enabled, the filled green polygon with red outline is drawn to the PNG output. > > Is this a defect? Could you suggest a work-around for unfilled polygon PDF output? > This seems to be a defect > A secondary observation: Using a filled polygon for PDF, use of a "WIDTH" parameter appears to have no effect upon the width of the outline. > > > I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The problem was demonstrated with use of the "drawmap.exe" command-line utility. > > Thanks in advance, > > - Phil Anzel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Phil.Anzel at ftc.usda.gov Fri Jun 11 11:47:33 2010 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Jun 2010 13:47:33 -0500 Subject: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled In-Reply-To: <4C127C58.8070606@dmsolutions.ca> References: <809503517A1B0347AF9A161507E6B29919CA19C3F4@mokansasc7s304.agent.one.usda.gov> <4C127C58.8070606@dmsolutions.ca> Message-ID: <809503517A1B0347AF9A161507E6B29919CA19C46C@mokansasc7s304.agent.one.usda.gov> Hi, Assefa, Thanks for getting back to me so quickly. FWIW it appears that the same problem (no outlines shown when using an unfilled polygon) impacts SVG output as well. There is another problem: layer "OPACITY" appears to have no effect. Is that a defect as well? I'll work my way up to the Cairo version; thanks for the suggestion. - Phil -----Original Message----- From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: Friday, June 11, 2010 12:12 PM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled Hi There, The first issue with the color/fill-color seems to be a defect. This second issue with the Width parameter is due to the fact that the parameter is not supported in the PDF driver. The intention is to depreciate the current PDF support and use the Cairo PDF driver for the 6.0 release [1]. At that point we should have support for things like width, color/fill-color, ... be consistent between all output drivers. You could maybe try using MapServer from svn and try the Cairo support and see if that solves your immediate needs. regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > Case 1: Unfilled polygon, PDF output: As written above, the PDF output is empty. This is the problem case. > > Case 2: Filled polygon, PDF output: If the "#COLOR" line is uncommented, the green-filled polygon, complete with red outline, is drawn. > > Case 3: Unfilled polygon, PNG output: If I switch to PNG output (by uncommenting the OUTPUTFORMAT for PNG and commenting-out the PDF one) and revert to "#COLOR" (thereby disabling polygon fill), the unfilled red outline is drawn in the PNG output. > > Case 4: Filled polygon, PNG output: With PNG output and fill COLOR enabled, the filled green polygon with red outline is drawn to the PNG output. > > Is this a defect? Could you suggest a work-around for unfilled polygon PDF output? > This seems to be a defect > A secondary observation: Using a filled polygon for PDF, use of a "WIDTH" parameter appears to have no effect upon the width of the outline. > > > I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The problem was demonstrated with use of the "drawmap.exe" command-line utility. > > Thanks in advance, > > - Phil Anzel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From fedesanchez888 at gmail.com Fri Jun 11 13:49:24 2010 From: fedesanchez888 at gmail.com (fedesan) Date: Fri, 11 Jun 2010 13:49:24 -0700 (PDT) Subject: [mapserver-users] performance problem Message-ID: <1276289364429-5169667.post@n2.nabble.com> I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a 4 cpu's sever with 16 GB RAM I was using a mapfile with 10 layers but in order to find out the problem now i'm using just one layer in a really basic mapfile. gis.states_g table has only 24 records, one for each state in my country, so is not a heavy query and i'm starting to think that is a mapserver problem...is this a 5.0.0 known issue? When i load the map (using openlayers) i notice that the 4 cpu's goes to 100% for a couple of seconds, and the same happens when i pan or when i zoom in (this is even worse) Can anyone give some tips about this? can somebody see an error that i'm missing? I'm not using fast-CGI, should i ?? **This is my mapfile and my html file: MAP NAME WMS_server STATUS ON SIZE 600 400 EXTENT -20000000 -7692209 2000000 -2212564 UNITS meters IMAGECOLOR 216 243 249 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB LOG /var/www/mapas/aen/educacion/mapfish/log_mapa_wms.log METADATA "wms_title" "MEN WMS Server" "wms_srs" "EPSG:900913" END END PROJECTION "init=epsg:900913" END LAYER NAME "states" STATUS OFF CONNECTIONTYPE Postgis CONNECTION "user=fede password=fede dbname=men host=localhost" DATA "geom900913 from (select gid,geom900913 from gis.states_g) as foo using unique gid using SRID=900913" TYPE POLYGON LABELMINSCALE 1500000 TOLERANCE 2 CLASS STYLE OUTLINECOLOR 156 156 156 END END PROJECTION "init=epsg:900913" END END END HTML function init(){ map = new OpenLayers.Map('map',{projection:"EPSG:900913",maxExtent: new OpenLayers.Bounds(-9186607, -8000000, -5948152, -1808791),maxResolution: "auto",units: "m"}); var wms = new OpenLayers.Layer.WMS( "wms", "/cgi-bin/mapserv?map=path/mapa_wms.map&format=image/png&info_format=text/plain", {layers:"states",transparent: true, format: "image/png"}, {isBaseLayer: true}, {singleTile: true, ratio: 3}, {gutter: 15} ); map.addLayers([wms]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.zoomToMaxExtent(); } Thanks!! Fede -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/performance-problem-tp5169667p5169667.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Fri Jun 11 14:36:59 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 11 Jun 2010 16:36:59 -0500 Subject: [mapserver-users] performance problem In-Reply-To: <1276289364429-5169667.post@n2.nabble.com> References: <1276289364429-5169667.post@n2.nabble.com> Message-ID: <4C12AC7B.7020809@squeakycode.net> On 6/11/2010 3:49 PM, fedesan wrote: > > I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a > 4 cpu's sever with 16 GB RAM > > I was using a mapfile with 10 layers but in order to find out the problem > now i'm using just one layer in a really basic mapfile. > gis.states_g table has only 24 records, one for each state in my country, so > is not a heavy query and i'm starting to think that is a mapserver > problem...is this a 5.0.0 known issue? > When i load the map (using openlayers) i notice that the 4 cpu's goes to > 100% for a couple of seconds, and the same happens when i pan or when i zoom > in (this is even worse) > Can anyone give some tips about this? can somebody see an error that i'm > missing? > I'm not using fast-CGI, should i ?? > You say cpu's hit 100%, but what's using the cpu? apache? postmaster? mapserver? -Andy From andy at squeakycode.net Fri Jun 11 14:41:42 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 11 Jun 2010 16:41:42 -0500 Subject: [mapserver-users] performance problem In-Reply-To: <1276289364429-5169667.post@n2.nabble.com> References: <1276289364429-5169667.post@n2.nabble.com> Message-ID: <4C12AD96.3060804@squeakycode.net> On 6/11/2010 3:49 PM, fedesan wrote: > DATA "geom900913 from (select gid,geom900913 from gis.states_g) as foo > using unique gid using SRID=900913" I think you'd be ok with: DATA "geom900913 from gis.states_g using unique gid using SRID=900913" Dont think it should make a speed difference though -Andy From yasirshoa at gmail.com Fri Jun 11 15:02:31 2010 From: yasirshoa at gmail.com (yUser) Date: Fri, 11 Jun 2010 15:02:31 -0700 (PDT) Subject: [mapserver-users] Migration to MapServer Message-ID: <1276293751524-5169931.post@n2.nabble.com> Hello, Am new to MapServer. What I am trying to achieve is the following: I have a Google Maps web application which shows bicycle routes. Users can then search from those bicycle routes (javascript). As I am learning more about MapServer I am also wondering if migrating from using Google Maps to MapServer will work for this particular application. 1. Any ideas about finding City of Toronto Routes and Street data? (I found some data but I am wondering if they will have a similar look and feel like the Google Maps - maybe not too cool but should be good enough to see streets and roads rather than just line segements). 2. Other than that I will have to allow users some capability to draw polylines on the map. Does the MapServer scripting allow drawing of polylines? 3. If there are points on a map and if a bounding box rectangle is drawn on the map, can the MapServer script allow finding which points are within the bounding box (with lat/lng cooordinates)? Hoping to get all of this done within 1 week or so..I hope this is a reasonable time estimate for this migration. If you have ideas about this, please let me know? Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Migration-to-MapServer-tp5169931p5169931.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/20100611/d30fb5e7/attachment.htm> From christopher.schmidt at nokia.com Fri Jun 11 15:12:37 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Sat, 12 Jun 2010 00:12:37 +0200 Subject: [mapserver-users] Migration to MapServer In-Reply-To: <1276293751524-5169931.post@n2.nabble.com> References: <1276293751524-5169931.post@n2.nabble.com> Message-ID: <73F99434-2762-4045-A5BF-C275704458DD@nokia.com> On Jun 11, 2010, at 6:02 PM, ext yUser wrote: > Hello, Am new to MapServer. What I am trying to achieve is the following: I have a Google Maps web application which shows bicycle routes. Users can then search from those bicycle routes (javascript). As I am learning more about MapServer I am also wondering if migrating from using Google Maps to MapServer will work for this particular application. 1. Any ideas about finding City of Toronto Routes and Street data? (I found some data but I am wondering if they will have a similar look and feel like the Google Maps - maybe not too cool but should be good enough to see streets and roads rather than just line segements). 2. Other than that I will have to allow users some capability to draw polylines on the map. Does the MapServer scripting allow drawing of polylines? 3. If there are points on a map and if a bounding box rectangle is drawn on the map, can the MapServer script allow finding which points are within the bounding box (with lat/lng cooordinates)? Hoping to get all of this done within 1 week or so..I hope this is a reasonable time estimate for this migration. If you have ideas about this, please let me know? Thanks. > View this message in context: Migration to MapServer > Sent from the Mapserver - User mailing list archive at Nabble.com. > <ATT00001..txt> You might be more interested in OpenLayers: http://openlayers.org/ OpenLayers is a pretty close replacement for the Google Maps API. If you'd like, you can continue to use Google Maps as a basemap, as you find and set up other data. Your best source of data other than Google Maps might be OpenStreetMap: http://openstreetmap.org/ Or possibly OpenCycleMap: http://www.opencyclemap.org/ http://www.opencyclemap.org/?zoom=11&lat=43.65304&lon=-79.38379&layers=B000 (Toronto) One week is probably a relatively short time to set up anything with MapServer + public geodata if you do not have experience in the field, but is probably a somewhat reasonable timeframe to do something with OpenLayers and OpenStreetMap. Best of luck. Regards, -- Christopher Schmidt Nokia From Phil.Anzel at ftc.usda.gov Fri Jun 11 15:45:52 2010 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 11 Jun 2010 17:45:52 -0500 Subject: [mapserver-users] PDF and SVG only shows last georeferenced raster layer Message-ID: <809503517A1B0347AF9A161507E6B29919CA19C4EC@mokansasc7s304.agent.one.usda.gov> Hi, I think there is a defect when using multiple raster data layers with PDF or SVG image formats: only the last geo-referenced raster layer is drawn. This problem does not exist if the output is PNG. To demonstrate this problem, retrieve two adjacent JPEG tile files from Microsoft's Virtual Earth, using URLs: (west tile) http://ecn.t0.tiles.virtualearth.net/tiles/r021323222.jpg?g=409&mkt=en-US&shading=hill&n=z (east tile) http://ecn.t0.tiles.virtualearth.net/tiles/r021323223.jpg?g=409&mkt=en-US&shading=hill&n=z The tiles should be saved as files r021323222.jpg and r021323223.jpg, respectively. Create world files to accompany these. For the west tile, create r021323223.wld: 305.748113140705 0.0000000000 0.0000000000 -305.748113140705 -11897270.5785311 5087648.60266133 For the east, create r021323223.wld: 305.748113140705 0.0000000000 0.0000000000 -305.748113140705 -11818999.0615671 5087648.60266133 Here is the map file, with the addition of a red outline around the west tile and a green outline around the east one: MAP IMAGETYPE png SIZE 512 256 CONFIG 'PROJ_LIB' 'C:\ms4w\proj\nad\' PROJECTION 'init=epsg:3857' END # Web Mercator EXTENT -11900270.578531099 5006377.08569731 -11737727.5446031 5090648.6026613303 UNITS meters LAYER NAME 'left_tile' # retrieve from http://ecn.t0.tiles.virtualearth.net/tiles/r021323222.jpg?g=409&mkt=en-US&shading=hill&n=z data 'r021323222.jpg' type raster status on END LAYER NAME 'right_tile' # retrieve from http://ecn.t0.tiles.virtualearth.net/tiles/r021323223.jpg?g=409&mkt=en-US&shading=hill&n=z data 'r021323223.jpg' type raster status on END LAYER NAME 'left_outline' STATUS on TYPE line FEATURE #...right edge shifted left 153 meters (about half a tile pixel) WKT 'LINESTRING( -11818999.0615671 5009377.08569731, -11897423.578531099 5009377.08569731, -11897423.578531099 5087648.60266133, -11818999.0615671 5087648.60266133, -11818999.0615671 5009377.08569731)' END CLASS STYLE COLOR 255 0 0 END END END LAYER NAME 'right_outline' STATUS on TYPE line FEATURE #...left edge shifted right 153 meters (about half a tile pixel) WKT 'LINESTRING( -11818846.0615671 5009377.08569731, -11740727.5446031 5009377.08569731, -11740727.5446031 5087648.60266133, -11818846.0615671 5087648.60266133, -11818846.0615671 5009377.08569731)' END CLASS STYLE COLOR 0 255 0 END END END END Note that for PNG output, both tiles are shown. If you change the image type to SVG or PDF, only the last raster layer, the east tile, is shown. Is this a defect? Short of externally aggregating the source bitmaps into a single bitmap outside of MapServer, is there a possible workaround? Is this associated with failure of OPACITY to work with SVG and PDF? I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The problem was demonstrated with use of the "drawmap.exe" command-line utility. Thanks in advance. - Phil Anzel From yasirshoa at gmail.com Fri Jun 11 15:58:12 2010 From: yasirshoa at gmail.com (yUser) Date: Fri, 11 Jun 2010 15:58:12 -0700 (PDT) Subject: [mapserver-users] Re: Migration to MapServer In-Reply-To: <73F99434-2762-4045-A5BF-C275704458DD@nokia.com> References: <1276293751524-5169931.post@n2.nabble.com> <73F99434-2762-4045-A5BF-C275704458DD@nokia.com> Message-ID: <1276297092933-5170093.post@n2.nabble.com> Hello Christopher, Thanks for replying and for the information you provided. Based on your suggestion I am also looking into OpenLayers. Actually, one more reason I wanted to migration to MapServer was to access map data within a LAN without internet. I am still looking into OpenLayers and was just wondering if the map data is available would it require any network connectivity. Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Migration-to-MapServer-tp5169931p5170093.html Sent from the Mapserver - User mailing list archive at Nabble.com. From christopher.schmidt at nokia.com Fri Jun 11 16:21:31 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Sat, 12 Jun 2010 01:21:31 +0200 Subject: [mapserver-users] Re: Migration to MapServer In-Reply-To: <1276297092933-5170093.post@n2.nabble.com> References: <1276293751524-5169931.post@n2.nabble.com> <73F99434-2762-4045-A5BF-C275704458DD@nokia.com> <1276297092933-5170093.post@n2.nabble.com> Message-ID: <67CBC7C7-95E3-44DC-A95A-5C36B03C214A@nokia.com> On Jun 11, 2010, at 6:58 PM, ext yUser wrote: > > Hello Christopher, > > Thanks for replying and for the information you provided. > Based on your suggestion I am also looking into OpenLayers. > > Actually, one more reason I wanted to migration to MapServer was to access > map data within a LAN without internet. > > I am still looking into OpenLayers and was just wondering if the map data is > available would it require any network connectivity. If you were to use Google Maps for data, you would require an internet connection. If you were to use OpenStreetMap for data, you would need to set up a local renderer or tile cache to cache the data; both are time consuming and somewhat difficult for a novice, but would allow you to run with no internet connection. If you were to find data other than OpenStreetMap, you would need to set up a local renderer for the data. This is time consuming and somewhat difficult for a noivce, but would allow you to run with no internet connection. Best Regards, -- Christopher Schmidt Nokia From Steve.Lime at state.mn.us Fri Jun 11 17:37:00 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 11 Jun 2010 19:37:00 -0500 Subject: [mapserver-users] performance problem In-Reply-To: <1276289364429-5169667.post@n2.nabble.com> References: <1276289364429-5169667.post@n2.nabble.com> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C0295303432@MNMAIL05.ead.state.mn.us> What's speed like outside of OL? I mean, running shp2img. In your OL code I wonder if ratio:3 might be causing *huge* image requests... With single tile mode I've have the best luck with ratio:1. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of fedesan [fedesanchez888 at gmail.com] Sent: Friday, June 11, 2010 3:49 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] performance problem I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a 4 cpu's sever with 16 GB RAM I was using a mapfile with 10 layers but in order to find out the problem now i'm using just one layer in a really basic mapfile. gis.states_g table has only 24 records, one for each state in my country, so is not a heavy query and i'm starting to think that is a mapserver problem...is this a 5.0.0 known issue? When i load the map (using openlayers) i notice that the 4 cpu's goes to 100% for a couple of seconds, and the same happens when i pan or when i zoom in (this is even worse) Can anyone give some tips about this? can somebody see an error that i'm missing? I'm not using fast-CGI, should i ?? **This is my mapfile and my html file: MAP NAME WMS_server STATUS ON SIZE 600 400 EXTENT -20000000 -7692209 2000000 -2212564 UNITS meters IMAGECOLOR 216 243 249 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END WEB LOG /var/www/mapas/aen/educacion/mapfish/log_mapa_wms.log METADATA "wms_title" "MEN WMS Server" "wms_srs" "EPSG:900913" END END PROJECTION "init=epsg:900913" END LAYER NAME "states" STATUS OFF CONNECTIONTYPE Postgis CONNECTION "user=fede password=fede dbname=men host=localhost" DATA "geom900913 from (select gid,geom900913 from gis.states_g) as foo using unique gid using SRID=900913" TYPE POLYGON LABELMINSCALE 1500000 TOLERANCE 2 CLASS STYLE OUTLINECOLOR 156 156 156 END END PROJECTION "init=epsg:900913" END END END HTML function init(){ map = new OpenLayers.Map('map',{projection:"EPSG:900913",maxExtent: new OpenLayers.Bounds(-9186607, -8000000, -5948152, -1808791),maxResolution: "auto",units: "m"}); var wms = new OpenLayers.Layer.WMS( "wms", "/cgi-bin/mapserv?map=path/mapa_wms.map&format=image/png&info_format=text/plain", {layers:"states",transparent: true, format: "image/png"}, {isBaseLayer: true}, {singleTile: true, ratio: 3}, {gutter: 15} ); map.addLayers([wms]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.zoomToMaxExtent(); } Thanks!! Fede -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/performance-problem-tp5169667p5169667.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 jmckenna at gatewaygeomatics.com Fri Jun 11 17:58:31 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 11 Jun 2010 21:58:31 -0300 Subject: [mapserver-users] performance problem In-Reply-To: <1276289364429-5169667.post@n2.nabble.com> References: <1276289364429-5169667.post@n2.nabble.com> Message-ID: <4C12DBB7.2040606@gatewaygeomatics.com> fedesan wrote: > I' having performance problems using postgreSQL 8.4 and mapserver 5.0.0 on a > 4 cpu's sever with 16 GB RAM > > I was using a mapfile with 10 layers but in order to find out the problem > now i'm using just one layer in a really basic mapfile. > gis.states_g table has only 24 records, one for each state in my country, so > is not a heavy query and i'm starting to think that is a mapserver > problem...is this a 5.0.0 known issue? > When i load the map (using openlayers) i notice that the 4 cpu's goes to > 100% for a couple of seconds, and the same happens when i pan or when i zoom > in (this is even worse) > Can anyone give some tips about this? can somebody see an error that i'm > missing? > I'm not using fast-CGI, should i ?? Some hints and examples for using shp2img to see layer drawing speeds are described in the MapServer Debugging document: see http://www.mapserver.org/optimization/debugging.html#step-5-test-your-mapfile -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From adams at terrestris.de Sat Jun 12 11:14:33 2010 From: adams at terrestris.de (adams) Date: Sat, 12 Jun 2010 20:14:33 +0200 Subject: [mapserver-users] Migration to MapServer In-Reply-To: <1276293751524-5169931.post@n2.nabble.com> References: <1276293751524-5169931.post@n2.nabble.com> Message-ID: <4C13CE89.5090001@terrestris.de> yUser, I think it's more a client specific issue, what you are looking for. Mapserver is able to serve your street-maps , but it is not a client (=user interface), which googlemaps also delivers. Perhaps you should have a look on OpenLayes, if you look for a good replacement on that side. Some answers: 1. OSM (www.openstreetmap.org) - you'll have to set them up as mapserver-maps and in mapserver you may make them look like the googlemap. 2. see openlayers (wqww.openlayers.org) 3. definitively scriptable but I think there is nothing out-of.the box. One week is not many, specially if you are not familar with the mapping stuff in general and mapserver and/or openlayers or other client-side software... Regards, Till yUser wrote: > Hello, Am new to MapServer. What I am trying to achieve is the > following: I have a Google Maps web application which shows bicycle > routes. Users can then search from those bicycle routes (javascript). > As I am learning more about MapServer I am also wondering if migrating > from using Google Maps to MapServer will work for this particular > application. 1. Any ideas about finding City of Toronto Routes and > Street data? (I found some data but I am wondering if they will have a > similar look and feel like the Google Maps - maybe not too cool but > should be good enough to see streets and roads rather than just line > segements). 2. Other than that I will have to allow users some > capability to draw polylines on the map. Does the MapServer scripting > allow drawing of polylines? 3. If there are points on a map and if a > bounding box rectangle is drawn on the map, can the MapServer script > allow finding which points are within the bounding box (with lat/lng > cooordinates)? Hoping to get all of this done within 1 week or so..I > hope this is a reasonable time estimate for this migration. If you > have ideas about this, please let me know? Thanks. > ------------------------------------------------------------------------ > View this message in context: Migration to MapServer > <http://osgeo-org.1803224.n2.nabble.com/Migration-to-MapServer-tp5169931p5169931.html> > Sent from the Mapserver - User mailing list archive > <http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html> > at Nabble.com. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100612/02c26a43/attachment.htm> From yasirshoa at gmail.com Sat Jun 12 13:49:44 2010 From: yasirshoa at gmail.com (yUser) Date: Sat, 12 Jun 2010 13:49:44 -0700 (PDT) Subject: [mapserver-users] Re: Migration to MapServer In-Reply-To: <4C13CE89.5090001@terrestris.de> References: <1276293751524-5169931.post@n2.nabble.com> <4C13CE89.5090001@terrestris.de> Message-ID: <1276375784277-5172726.post@n2.nabble.com> Hello Till, Thanks for your reply. So based on your answer, this is what I infer: The solution is a combination of MapServer and OpenLayers. 1. First I find the data from www.openstreetmap.org (maybe it is ESRI ...have to check) , and then use that to display using MapServer. 2. Once map is rendered on the client, then OpenLayers will help with javascript part of drawing polylines on the map. Please advise if I am wrong in my understanding. Thanks. Aside: My main focus at is to have all of this within an LAN without any internet connection to begin with. Possibly have all the map data in a Server and then display that and use javascript on the client. I already have a working application using GoogleMaps API and I need to transfer it to the new solution. The other reason to have everything within LAN is to do Load Testing which is bit difficult with Google Maps considering that the load test might cause Google to block IP - assuming it as a DOS attack. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Migration-to-MapServer-tp5169931p5172726.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Sat Jun 12 14:28:14 2010 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sat, 12 Jun 2010 14:28:14 -0700 (PDT) Subject: [mapserver-users] Re: Migration to MapServer In-Reply-To: <1276375784277-5172726.post@n2.nabble.com> Message-ID: <841657.59698.qm@web33208.mail.mud.yahoo.com> Essentially yes. However, note that such an application may be retrieving data &/or code from a server via the LAN or internet, and may provide maps to either or both LAN or net clients. Not just data. eg: your site may have a local copy of the OpenLayers code, or download on the fly from the OL website. Data may be from any local or remote server. You can download data from places like OSM & store/use as local datasets, download on the fly, or download on the fly & cache locally. You can use mapserver or other OGC compliant map serving applications such as Geoserver, Deegree, MapGuideOS, etc. Personally I prefer mapserver :-) You can use OpenLayers natively or with wrappers providing additional functionality, such as MapFish http://mapfish.org/ Geomoose http://geomoose.org/ to build your client, or use a framework which provides some such support built in such as Drupal http://drupal.org/project/openlayers GeoDjango http://code.djangoproject.com/wiki/GeoDjango or one under development for Silverstripe. You will also need tools for managing both raster & vector data to be served as maps, and to provide cacheing services to improve performance, and some CMS or framework to build & manage your application. I suggest your toolset includes, but you should look at some such suite as your solution, not simply the map production components. PostGIS for local vector data management Tilecache for speeding up raster data rendering mapserver as an OGC WMS/WFS providor OpenLayers, either directly or through mapfish or Geomoose HTH, Brent Wood --- On Sun, 6/13/10, yUser <yasirshoa at gmail.com> wrote: > From: yUser <yasirshoa at gmail.com> > Subject: [mapserver-users] Re: Migration to MapServer > To: mapserver-users at lists.osgeo.org > Date: Sunday, June 13, 2010, 8:49 AM > > Hello Till, > > Thanks for your reply. > > So based on your answer, this is what I infer: > The solution is a combination of MapServer and OpenLayers. > 1. First I find the data from www.openstreetmap.org (maybe > it is ESRI > ...have to check) , and then use that to display using > MapServer. > 2. Once map is rendered on the client, then OpenLayers will > help with > javascript part of drawing polylines on the map. > > Please advise if I am wrong in my understanding. > Thanks. > > Aside: My main focus at is to have all of this within an > LAN without any > internet connection to begin with. Possibly have all the > map data in a > Server and then display that and use javascript on the > client. I already > have a working application using GoogleMaps API and I need > to transfer it to > the new solution. The other reason to have everything > within LAN is to do > Load Testing which is bit difficult with Google Maps > considering that the > load test might cause Google to block IP - assuming it as a > DOS attack. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Migration-to-MapServer-tp5169931p5172726.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 dmorissette at mapgears.com Mon Jun 14 04:46:58 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 14 Jun 2010 07:46:58 -0400 Subject: [mapserver-users] =?iso-8859-1?q?Just_a_few_hours_before_Rendez-?= =?iso-8859-1?q?vous_OSGeo_Qu=E9bec?= Message-ID: <4C1616B2.5090502@mapgears.com> Guests have already started arriving during the weekend. The Rendez-vous OSGeo Qu?bec is just a few hours away. You still have a few hours to register today and join us tomorrow. Read more at http://dmorissette.blogspot.com/2010/06/rendez-vous-osgeo-quebec-2010-is-less.html and http://rendez-vous-osgeo-qc.org/2010/ Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at state.mn.us Mon Jun 14 05:44:00 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Jun 2010 07:44:00 -0500 Subject: [mapserver-users] Especific Circle Symbol... In-Reply-To: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> References: <AANLkTinEwLallimyOVxBjO-Tt3wwnVTlDTb6e-HpbqQp@mail.gmail.com> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C029530343B@MNMAIL05.ead.state.mn.us> Hi Paul: I know multiple layers where mentioned but you can probably do this more efficiently with multiple styles: STYLE # first the black/red circle SYMBOL 'circle' # assuming you've defined a symbol of this name SIZE 10 COLOR 0 0 0 OUTLINECOLOR 255 0 0 END STYLE # now the white circle SYMBOL 'circle' SIZE 5 COLOR 255 255 255 END This requires only a single pass through the data. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james [pauljame at gmail.com] Sent: Thursday, June 10, 2010 6:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Especific Circle Symbol... Hello guys... I?m trying to draw a BLACK CIRCLE, with Red borders, and with a small white circle inside ... Any help? Thanks From geek at uniserve.com Mon Jun 14 13:53:39 2010 From: geek at uniserve.com (Dave Stevens) Date: Mon, 14 Jun 2010 13:53:39 -0700 Subject: [mapserver-users] downgrade mapserver on Centos box? Message-ID: <201006141353.39439.geek@uniserve.com> Some recent updates broke functionality on my Centos box, in particular a mapserver update seems to have borked things. yum is supposed to have a downgrade option that will regress a specified package to the highest numbered previous version. When I do this with my system yum churns through the repos then tells me that there is nothing to do. Ideas? debug stuff I can provide? TAI, Dave From woodbri at swoodbridge.com Mon Jun 14 15:42:41 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 Jun 2010 18:42:41 -0400 Subject: [mapserver-users] downgrade mapserver on Centos box? In-Reply-To: <201006141353.39439.geek@uniserve.com> References: <201006141353.39439.geek@uniserve.com> Message-ID: <4C16B061.6060002@swoodbridge.com> Dave Stevens wrote: > Some recent updates broke functionality on my Centos box, in particular a > mapserver update seems to have borked things. yum is supposed to have a > downgrade option that will regress a specified package to the highest numbered > previous version. When I do this with my system yum churns through the repos > then tells me that there is nothing to do. Ideas? debug stuff I can provide? For one, it would probably help to know what mapserver version worked and which is borked for you. One of the recent changes made to mapserver for security reasons included some trivial changes to some of the support files. -Steve W From tschobber at gmx.at Tue Jun 15 02:59:29 2010 From: tschobber at gmx.at (=?iso-8859-1?Q?=22tschobber_tsch=F6bbi=22?=) Date: Tue, 15 Jun 2010 11:59:29 +0200 Subject: [mapserver-users] Function "queryByRect(rectObj rect)" not working correctly Message-ID: <20100615095929.96170@gmx.net> Hi mailing list, I have a problem concerning the Mapserver function "queryByRect(rectObj rect)" or the function "getResult". The method returns the wrong results or rather shapes or something is wrong with the mapfile (see attachment). The strange part is that the amount of shapes selected is correct but the shapes selected aren't correct - important is that if I use the function "whichShapes" the shapes are selected correctly. The first php code snippet shows a part of the method that gets wrong results. The second has the same effect but is using the function "whichShapes" and "nextShape" and the results are correct. CODE1: [PHP] . . . $map->queryByRect($oGeorefRect);//$oGeorefRect is a rectObj $oLayer = $map->GetLayerByName($querylayer_in);//$querylayer_in = see mapfile layer "layer_xxx_100614_694d5fb11c67415" $numResults = $oLayer->getNumResults(); for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oLayer->getFeature($oRes->shapeindex); . . . [/PHP] CODE2: [PHP] . . . $map->queryByRect($oGeorefRect);//$oGeorefRect is a rectObj $oLayer = $map->GetLayerByName($querylayer_in);//$querylayer_in = see mapfile layer "layer_xxx_100614_694d5fb11c67415" $numResults = $oLayer->getNumResults(); $status = $oLayer->open(); $oLayer->whichShapes($oGeorefRect); while($oShape = $oLayer->nextShape()) { . . . [/PHP] What's the difference between those functions? Why is one working and the other not? Thanks for answers. Greetings, Martin -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl -------------- next part -------------- MAP EXTENT 100576.796875 265258 699423.203125 594238 FONTSET "../data/fonts/fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE AGGA SYMBOLSET "../includes/sys.sym" SHAPEPATH "../data" SIZE 700 385 STATUS ON UNITS METERS CONFIG MS_ERRORFILE "/tmp/ms_error.txt" NAME "xxxxyyyy" DEBUG 1 OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE FORMATOPTION "TRANSPARENT=ON" END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE "PC256" TRANSPARENT FALSE END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END OUTPUTFORMAT NAME "png24" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "RGB" TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE FORMATOPTION "QUALITY=100" END OUTPUTFORMAT NAME "imagemap" MIMETYPE "text/html" DRIVER "imagemap" EXTENSION "html" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION "init=epsg:31297" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE HILITE END REFERENCE COLOR -1 -1 -1 EXTENT 105000 265258 695000 594238 IMAGE "../img/keymap_0.png" OUTLINECOLOR 255 0 0 SIZE 153 84 STATUS ON MARKER 0 MARKERSIZE 0 MINBOXSIZE 3 MAXBOXSIZE 0 END SCALEBAR ALIGN CENTER BACKGROUNDCOLOR 255 255 255 COLOR 50 50 50 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE TINY TYPE BITMAP BUFFER 0 COLOR 50 50 50 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END OUTLINECOLOR 50 50 0 POSITION LR POSTLABELCACHE TRUE SIZE 120 2 STATUS OFF STYLE 0 UNITS KILOMETERS END WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" MAXSCALEDENOM 3e+06 MINSCALEDENOM 100000 QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_line_002" NAME "xxx_01" PROJECTION "init=epsg:31297" END STATUS ON TYPE LINE UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 66 66 66 SIZE 1 SYMBOL 1 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_line_001" NAME "xxx01" PROJECTION "init=epsg:31297" END STATUS ON TYPE LINE UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 99 99 99 SIZE 2 SYMBOL 1 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_line_004" NAME "xxy01" PROJECTION "init=epsg:31297" END STATUS ON TYPE LINE UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 99 99 99 SIZE 2 SYMBOL 1 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_line_007_3" NAME "fluss01" PROJECTION "init=epsg:31297" END STATUS ON UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 107 174 214 SIZE 1 SYMBOL 1 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_poly_004" NAME "xyy01" PROJECTION "init=epsg:31297" END STATUS ON TYPE POLYGON UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 189 215 231 OUTLINECOLOR 107 174 214 SYMBOL 0 WIDTH 1 END END END LAYER CLASSITEM "value" CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from (SELECT gd_point_073.the_geom,gd_point_073.id as id, td_dim_geom.name as name,gd_point_073.oid,sum(td_theme_at_uba_ozon.value) as value FROM gd_point_073,td_theme_at_uba_ozon, td_dim_geom WHERE td_dim_geom.id = gd_point_073.id AND gd_point_073.id = td_theme_at_uba_ozon.geom AND (td_theme_at_uba_ozon.year = '2004' ) AND (td_theme_at_uba_ozon.uba_ozon_type = 'jmw' ) GROUP BY gd_point_073.id,gd_point_073.the_geom,td_dim_geom.name,gd_point_073.oid order by value desc) as foo using unique oid USING SRID=31297;" METADATA "LAYER_NAME" "layer_xxx_100614_694d5fb11c67415" "DESCRIPTION" "OZON, Jahresmittelwert" "GEOM_NAME" "gd_point_073" "RESULT_FIELDS" "id" "QUERY_TABLE" "td_theme_at_uba_ozon" END NAME "layer_xxx_100614_694d5fb11c67415" PROJECTION "init=epsg:31297" END STATUS ON TOLERANCE 10 TYPE POINT UNITS METERS CLASS NAME "≤ 40" EXPRESSION ([value] <= 40) STYLE ANGLE 360 COLOR 171 221 164 OUTLINECOLOR 30 30 30 SIZE 10 SYMBOL 1 WIDTH 1 END TEMPLATE "xxx" END CLASS NAME "> 40 - 50" EXPRESSION ([value] > 40 and [value] <= 50) STYLE ANGLE 360 COLOR 171 221 164 OUTLINECOLOR 30 30 30 SIZE 16 SYMBOL 1 WIDTH 1 END TEMPLATE "xxx" END CLASS NAME "> 50 - 60" EXPRESSION ([value] > 50 and [value] <= 60) STYLE ANGLE 360 COLOR 171 221 164 OUTLINECOLOR 30 30 30 SIZE 22 SYMBOL 1 WIDTH 1 END TEMPLATE "xxx" END CLASS NAME "> 60 - 70" EXPRESSION ([value] > 60 and [value] <= 70) STYLE ANGLE 360 COLOR 171 221 164 OUTLINECOLOR 30 30 30 SIZE 28 SYMBOL 1 WIDTH 1 END TEMPLATE "xxx" END CLASS NAME "> 70" EXPRESSION ([value] > 70) STYLE ANGLE 360 COLOR 171 221 164 OUTLINECOLOR 30 30 30 SIZE 34 SYMBOL 1 WIDTH 1 END TEMPLATE "xxx" END END LAYER CLASSITEM "value" CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from (SELECT gd_point_006.the_geom,gd_point_006.id as id, td_dim_geom.name as name,gd_point_006.oid,td_theme_at_topo_orte2.value as value FROM gd_point_006,td_theme_at_topo_orte2, td_dim_geom WHERE td_dim_geom.id = gd_point_006.id AND td_dim_geom.id = td_theme_at_topo_orte2.geom AND td_dim_geom.id = gd_point_006.id AND (td_theme_at_topo_orte2.orte_type = 'class1' ) order by value desc) as foo using unique oid USING SRID=31297;" NAME "yyy01" PROJECTION "init=epsg:31297" END STATUS ON TYPE POINT UNITS METERS CLASS NAME "Bedeutende Stadt im Ausland" EXPRESSION "9" STYLE ANGLE 360 COLOR 200 200 200 OUTLINECOLOR 30 30 30 SIZE 7 SYMBOL 1 WIDTH 1 END END CLASS NAME "Bezirkshauptstadt" EXPRESSION "2" STYLE ANGLE 360 COLOR 255 255 255 OUTLINECOLOR 30 30 30 SIZE 7 SYMBOL 1 WIDTH 1 END END CLASS NAME "Landeshauptstadt" EXPRESSION "1" STYLE ANGLE 360 COLOR 255 255 255 OUTLINECOLOR 30 30 30 SIZE 7 SYMBOL 2 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_line_006" NAME "xyx01" PROJECTION "init=epsg:31297" END STATUS ON OPACITY 75 TYPE LINE UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 99 99 99 SIZE 1 SYMBOL 1 WIDTH 1 END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from (select gd_point_005_label.the_geom,gd_point_005_label.id,gd_point_005_label.oid,td_dim_geom.name from gd_point_005_label,td_dim_geom where gd_point_005_label.id = td_dim_geom.id) as foo using unique oid USING srid=31297" LABELITEM "name" NAME "blub" PROJECTION "init=epsg:31297" END STATUS ON TYPE ANNOTATION UNITS METERS CLASS NAME "class0" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "arial" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 1 COLOR 0 0 0 FORCE FALSE MINDISTANCE 1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION CC END END END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from (select gd_point_006.the_geom,gd_point_006.id,gd_point_006.oid,td_dim_geom.name from gd_point_006,td_dim_geom where gd_point_006.id = td_dim_geom.id) as foo using unique oid USING srid=31297" LABELITEM "name" NAME "blub01" PROJECTION "init=epsg:31297" END STATUS ON TYPE ANNOTATION UNITS METERS CLASS NAME "class0" LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT "arial" MAXSIZE 256 MINSIZE 4 SIZE 8 TYPE TRUETYPE BUFFER 1 COLOR 0 0 0 FORCE FALSE MINDISTANCE 1 MINFEATURESIZE -1 OFFSET 0 -9 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION CC END END END LAYER DATA "gd_raster_001.tif" NAME "test01" PROJECTION "init=epsg:31297" END STATUS ON OPACITY 15 TYPE RASTER UNITS METERS END LAYER CONNECTION "user=xxx password=xxx dbname=xxx host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from (select gd_point_073.the_geom,gd_point_073.id,gd_point_073.oid from gd_point_073,sys_select_data where gd_point_073.id = sys_select_data.geom and sys_select_data.id='any_100614_694d5fbc4fe2e9' ) as foo using unique oid USING srid=31297" NAME "QUERY_xxx" STATUS ON OPACITY 70 TYPE POINT UNITS METERS CLASS NAME "class0" STYLE ANGLE 360 COLOR 222 20 20 OUTLINECOLOR 100 0 0 SIZE 5 SYMBOL 1 WIDTH 1 END END END END From yves.jacolin at camptocamp.com Tue Jun 15 06:14:55 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Tue, 15 Jun 2010 15:14:55 +0200 Subject: [mapserver-users] Small typo in MapServer doc Message-ID: <201006151514.55692.yves.jacolin@camptocamp.com> Hello, There is a small typo error in this page: http://mapserver.org/mapfile/class.html TEXT [string] blabla This overrides values obtained from the LABELTIEM. blabla LABELTIEM -> LABELITEM Thanks, Y. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : +33 (0)4 79 26 57 98 Mob : +33 (0)6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From hobu.inc at gmail.com Tue Jun 15 18:57:33 2010 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 15 Jun 2010 20:57:33 -0500 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <201006151514.55692.yves.jacolin@camptocamp.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> Message-ID: <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: > Hello, > > There is a small typo error in this page: > http://mapserver.org/mapfile/class.html > > TEXT [string] blabla This overrides values obtained from the LABELTIEM. > blabla > > LABELTIEM -> LABELITEM Patched. These types of items are better as bugs, however, as they can easily be lost in the email mix. Howard From richard.greenwood at gmail.com Tue Jun 15 19:14:00 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 15 Jun 2010 20:14:00 -0600 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> Message-ID: <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> I found that http://www.mapserver.org/MapServer.pdf is corrupt. So I went to create a ticket at http://trac.osgeo.org/mapserver/mapserver/newticket and got: "No handler matched request to /mapserver/newticket" Rich On Tue, Jun 15, 2010 at 7:57 PM, Howard Butler <hobu.inc at gmail.com> wrote: > > On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: > >> Hello, >> >> There is a small typo error in this page: >> http://mapserver.org/mapfile/class.html >> >> TEXT [string] blabla This overrides values obtained from the LABELTIEM. >> blabla >> >> LABELTIEM -> LABELITEM > > Patched. ?These types of items are better as bugs, however, as they can easily be lost in the email mix. > > Howard_______________________________________________ > 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 christopher.schmidt at nokia.com Tue Jun 15 19:19:21 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Wed, 16 Jun 2010 04:19:21 +0200 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> Message-ID: <F31A91EF-2574-4B44-993D-A19B29E83684@nokia.com> On Jun 15, 2010, at 10:14 PM, ext Richard Greenwood wrote: > I found that http://www.mapserver.org/MapServer.pdf is corrupt. So I > went to create a ticket at > http://trac.osgeo.org/mapserver/mapserver/newticket and got: "No > handler matched request to /mapserver/newticket" How did you get to that URL? THe correct URL is: http://trac.osgeo.org/mapserver/newticket but this is the second report I've gotten of people getting to the incorrect URL (The other one was GRASS). Do you know how you got there? can you reproduce it? -- Chris > Rich > > On Tue, Jun 15, 2010 at 7:57 PM, Howard Butler <hobu.inc at gmail.com> wrote: >> >> On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: >> >>> Hello, >>> >>> There is a small typo error in this page: >>> http://mapserver.org/mapfile/class.html >>> >>> TEXT [string] blabla This overrides values obtained from the LABELTIEM. >>> blabla >>> >>> LABELTIEM -> LABELITEM >> >> Patched. These types of items are better as bugs, however, as they can easily be lost in the email mix. >> >> Howard_______________________________________________ >> 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Regards, -- Christopher Schmidt Nokia From richard.greenwood at gmail.com Tue Jun 15 19:24:17 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 15 Jun 2010 20:24:17 -0600 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <F31A91EF-2574-4B44-993D-A19B29E83684@nokia.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> <F31A91EF-2574-4B44-993D-A19B29E83684@nokia.com> Message-ID: <AANLkTila34U60PLDUKl5WQYddMXfZ77HCNrAzuEGQIbW@mail.gmail.com> from http://www.mapserver.org/index.html click 'issue tracker' from there click 'Submit a new bug report' Thanks, Rich On Tue, Jun 15, 2010 at 8:19 PM, <christopher.schmidt at nokia.com> wrote: > > On Jun 15, 2010, at 10:14 PM, ext Richard Greenwood wrote: > >> I found that http://www.mapserver.org/MapServer.pdf is corrupt. So I >> went to create a ticket at >> http://trac.osgeo.org/mapserver/mapserver/newticket and got: "No >> handler matched request to /mapserver/newticket" > > How did you get to that URL? > > THe correct URL is: > > ?http://trac.osgeo.org/mapserver/newticket > > but this is the second report I've gotten of people getting to the incorrect > URL (The other one was GRASS). > > Do you know how you got there? can you reproduce it? > > -- Chris > >> Rich >> >> On Tue, Jun 15, 2010 at 7:57 PM, Howard Butler <hobu.inc at gmail.com> wrote: >>> >>> On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: >>> >>>> Hello, >>>> >>>> There is a small typo error in this page: >>>> http://mapserver.org/mapfile/class.html >>>> >>>> TEXT [string] blabla This overrides values obtained from the LABELTIEM. >>>> blabla >>>> >>>> LABELTIEM -> LABELITEM >>> >>> Patched. ?These types of items are better as bugs, however, as they can easily be lost in the email mix. >>> >>> Howard_______________________________________________ >>> 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 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Regards, > -- > Christopher Schmidt > Nokia > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From yves.jacolin at camptocamp.com Tue Jun 15 23:57:36 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 16 Jun 2010 08:57:36 +0200 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> Message-ID: <201006160857.38092.yves.jacolin@camptocamp.com> Le mercredi 16 juin 2010 03:57:33, Howard Butler a ?crit : > On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: > > Hello, > > > > There is a small typo error in this page: > > http://mapserver.org/mapfile/class.html > > > > TEXT [string] blabla This overrides values obtained from the LABELTIEM. > > blabla > > > > LABELTIEM -> LABELITEM > > Patched. These types of items are better as bugs, however, as they can > easily be lost in the email mix. Ok, I didn't know what was the best thing for you trac or email, I choose the wrong one ;) I will do it better next time. Thanks, Y. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : +33 (0)4 79 26 57 98 Mob : +33 (0)6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From christopher.schmidt at nokia.com Wed Jun 16 05:00:19 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Wed, 16 Jun 2010 14:00:19 +0200 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <AANLkTila34U60PLDUKl5WQYddMXfZ77HCNrAzuEGQIbW@mail.gmail.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> <F31A91EF-2574-4B44-993D-A19B29E83684@nokia.com> <AANLkTila34U60PLDUKl5WQYddMXfZ77HCNrAzuEGQIbW@mail.gmail.com> Message-ID: <2F196F05-A367-4256-869F-4E589F53D851@nokia.com> On Jun 15, 2010, at 10:24 PM, ext Richard Greenwood wrote: > from http://www.mapserver.org/index.html > click 'issue tracker' > from there click 'Submit a new bug report' Okay, thanks. There's some kind of trac misconfiguration here, but I don't know exactly what it is. In the meantime, thew "new TIcket" button in the upper right works. -- Chris > Thanks, > Rich > > On Tue, Jun 15, 2010 at 8:19 PM, <christopher.schmidt at nokia.com> wrote: >> >> On Jun 15, 2010, at 10:14 PM, ext Richard Greenwood wrote: >> >>> I found that http://www.mapserver.org/MapServer.pdf is corrupt. So I >>> went to create a ticket at >>> http://trac.osgeo.org/mapserver/mapserver/newticket and got: "No >>> handler matched request to /mapserver/newticket" >> >> How did you get to that URL? >> >> THe correct URL is: >> >> http://trac.osgeo.org/mapserver/newticket >> >> but this is the second report I've gotten of people getting to the incorrect >> URL (The other one was GRASS). >> >> Do you know how you got there? can you reproduce it? >> >> -- Chris >> >>> Rich >>> >>> On Tue, Jun 15, 2010 at 7:57 PM, Howard Butler <hobu.inc at gmail.com> wrote: >>>> >>>> On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: >>>> >>>>> Hello, >>>>> >>>>> There is a small typo error in this page: >>>>> http://mapserver.org/mapfile/class.html >>>>> >>>>> TEXT [string] blabla This overrides values obtained from the LABELTIEM. >>>>> blabla >>>>> >>>>> LABELTIEM -> LABELITEM >>>> >>>> Patched. These types of items are better as bugs, however, as they can easily be lost in the email mix. >>>> >>>> Howard_______________________________________________ >>>> 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 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> Regards, >> -- >> Christopher Schmidt >> Nokia >> >> > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com Regards, -- Christopher Schmidt Nokia From richard.greenwood at gmail.com Wed Jun 16 05:04:07 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 16 Jun 2010 06:04:07 -0600 Subject: [mapserver-users] Small typo in MapServer doc In-Reply-To: <2F196F05-A367-4256-869F-4E589F53D851@nokia.com> References: <201006151514.55692.yves.jacolin@camptocamp.com> <95B60839-EE0D-4383-B220-8CCF2D234914@gmail.com> <AANLkTilPNUCKWyj7OjvpP5asn8ZG1FrXhl3U1tPn1fJg@mail.gmail.com> <F31A91EF-2574-4B44-993D-A19B29E83684@nokia.com> <AANLkTila34U60PLDUKl5WQYddMXfZ77HCNrAzuEGQIbW@mail.gmail.com> <2F196F05-A367-4256-869F-4E589F53D851@nokia.com> Message-ID: <AANLkTimPuAe_98uVtHDbo4V7Gg6vhVrP5pAuknt8vmfU@mail.gmail.com> Search is not working on the MapServer web site either, but thanks to your corrected link to Trac, I was able to submit a ticket for that. Thanks for your work on the issue. Rich On Wed, Jun 16, 2010 at 6:00 AM, <christopher.schmidt at nokia.com> wrote: > > On Jun 15, 2010, at 10:24 PM, ext Richard Greenwood wrote: > >> from http://www.mapserver.org/index.html >> click 'issue tracker' >> from there click 'Submit a new bug report' > > Okay, thanks. There's some kind of trac misconfiguration here, but > I don't know exactly what it is. In the meantime, thew "new TIcket" > button in the upper right works. > > -- Chris > >> Thanks, >> Rich >> >> On Tue, Jun 15, 2010 at 8:19 PM, ?<christopher.schmidt at nokia.com> wrote: >>> >>> On Jun 15, 2010, at 10:14 PM, ext Richard Greenwood wrote: >>> >>>> I found that http://www.mapserver.org/MapServer.pdf is corrupt. So I >>>> went to create a ticket at >>>> http://trac.osgeo.org/mapserver/mapserver/newticket and got: "No >>>> handler matched request to /mapserver/newticket" >>> >>> How did you get to that URL? >>> >>> THe correct URL is: >>> >>> ?http://trac.osgeo.org/mapserver/newticket >>> >>> but this is the second report I've gotten of people getting to the incorrect >>> URL (The other one was GRASS). >>> >>> Do you know how you got there? can you reproduce it? >>> >>> -- Chris >>> >>>> Rich >>>> >>>> On Tue, Jun 15, 2010 at 7:57 PM, Howard Butler <hobu.inc at gmail.com> wrote: >>>>> >>>>> On Jun 15, 2010, at 8:14 AM, Yves Jacolin wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> There is a small typo error in this page: >>>>>> http://mapserver.org/mapfile/class.html >>>>>> >>>>>> TEXT [string] blabla This overrides values obtained from the LABELTIEM. >>>>>> blabla >>>>>> >>>>>> LABELTIEM -> LABELITEM >>>>> >>>>> Patched. ?These types of items are better as bugs, however, as they can easily be lost in the email mix. >>>>> >>>>> Howard_______________________________________________ >>>>> 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 >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> Regards, >>> -- >>> Christopher Schmidt >>> Nokia >>> >>> >> >> >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com > > Regards, > -- > Christopher Schmidt > Nokia > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ibrahimsaricicek at gmail.com Wed Jun 16 07:08:52 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Wed, 16 Jun 2010 07:08:52 -0700 (PDT) Subject: [mapserver-users] Postgis Function in a Wfs Map File Problem Message-ID: <1276697332842-5186640.post@n2.nabble.com> Hi All; I ve a function in Postgis that returns a geometry; findroute_multiplepoints_sp. select findroute_multiplepoints_sp('{{3647479.442976, 4852451.8659522},{3652677.1608985,4848094.9553407},{3647577.5,4850086.5}}'); returns dijkstra (shortest path) results of given points. And my layer definition is as tihs; LAYER NAME 'Company_Routes' METADATA ... .. .. CONNECTIONTYPE postgis CONNECTION 'host=192.168.... user=postgres password=xxxxx dbname=mapserver' DATA "findroute_multiplepoints_sp FROM (select findroute_multiplepoints_sp('{{3647479.442976, 4852451.8659522},{3652677.1608985,4848094.9553407},{3647577.5,4850086.5}}'))" The wfs result is; msWFSGetFeature(): WFS server error. TYPENAME 'Company_Routes' doesn't exist in this server. Please check the capabilities and reformulate your request. Why? Thanks in Advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Problem-tp5186640p5186640.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kobben at itc.nl Wed Jun 16 07:35:20 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 16 Jun 2010 16:35:20 +0200 Subject: [mapserver-users] Postgis Function in a Wfs Map File Problem In-Reply-To: <1276697332842-5186640.post@n2.nabble.com> Message-ID: <C83EADC8.130F5%kobben@itc.nl> You probably should put "ows_name" " Company_Routes" or "wfs_name" " Company_Routes" In the Web block of your LAYER -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 16-06-10 16:08, "Ibrahim Saricicek" <ibrahimsaricicek at gmail.com> wrote: > > > Hi All; > > I ve a function in Postgis that returns a geometry; > findroute_multiplepoints_sp. > > select findroute_multiplepoints_sp('{{3647479.442976, > 4852451.8659522},{3652677.1608985,4848094.9553407},{3647577.5,4850086.5}}'); > returns dijkstra (shortest path) results of given points. > > > And my layer definition is as tihs; > > LAYER > NAME 'Company_Routes' > METADATA > ... > .. > .. > CONNECTIONTYPE postgis > CONNECTION 'host=192.168.... user=postgres password=xxxxx dbname=mapserver' > DATA "findroute_multiplepoints_sp FROM > (select findroute_multiplepoints_sp('{{3647479.442976, > 4852451.8659522},{3652677.1608985,4848094.9553407},{3647577.5,4850086.5}}'))" > > The wfs result is; > > msWFSGetFeature(): WFS server error. TYPENAME 'Company_Routes' doesn't exist > in this server. Please check the capabilities and reformulate your request. > > Why? > > Thanks in Advance... > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Prob > lem-tp5186640p5186640.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 > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From Weisbend at wapa.gov Wed Jun 16 09:13:33 2010 From: Weisbend at wapa.gov (Eric Weisbender) Date: Wed, 16 Jun 2010 10:13:33 -0600 Subject: [mapserver-users] Symbol not transparent in legend Message-ID: <4C18A3CD020000DF0005CAAC@10.1.50.131> Hi, We've just upgraded to MapServer 5.6.3 and the background of my transparent pixmap png's are transparent on the map but not in the legend. In the layer definition I have transparency set to alpha and I tried opacity with the same result. Any help/ideas would be greatly appreciated. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100616/e6382b67/attachment.htm> From daniel.teske at web.de Thu Jun 17 00:41:50 2010 From: daniel.teske at web.de (teeschke) Date: Thu, 17 Jun 2010 00:41:50 -0700 (PDT) Subject: [mapserver-users] Re: Symbol not transparent in legend In-Reply-To: <4C18A3CD020000DF0005CAAC@10.1.50.131> References: <4C18A3CD020000DF0005CAAC@10.1.50.131> Message-ID: <1276760510172-5189802.post@n2.nabble.com> hi Eric, if you are using the ms4w3b11 this could be a side effect of the experimental PNG support that is included. see http://osgeo-org.1803224.n2.nabble.com/strange-behavior-when-size-gif-size-ms4w-3-0-beta-11-td5121239.html regards, Daniel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Symbol-not-transparent-in-legend-tp5187287p5189802.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Thomas.Waberzeck at liag-hannover.de Thu Jun 17 02:27:38 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Thu, 17 Jun 2010 11:27:38 +0200 Subject: [mapserver-users] Mapscript zoom Rectangle Message-ID: <22BBDCE13318954B8E777A2DEF50BC74B23B87BBD2@ZVMBX01.bgr.local> Hi, I've got an application which is using Mapscript. If I use the zoomRectangle Method, I'm missing some parts of the selected area if the ratio of the selection doesn't match the ratio of the map. Kind regards Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de<mailto:Thomas.Waberzeck at liag-hannover.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100617/845874ec/attachment.htm> From ibrahimsaricicek at gmail.com Thu Jun 17 06:27:47 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Thu, 17 Jun 2010 06:27:47 -0700 (PDT) Subject: [mapserver-users] Re: Postgis Function in a Wfs Map File Problem In-Reply-To: <C83EADC8.130F5%kobben@itc.nl> References: <1276697332842-5186640.post@n2.nabble.com> <C83EADC8.130F5%kobben@itc.nl> Message-ID: <1276781267420-5190953.post@n2.nabble.com> Hi all, I've updated my post. Now I have a different error. Regards.. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Problem-tp5186640p5190953.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Thu Jun 17 11:08:54 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Thu, 17 Jun 2010 21:08:54 +0300 Subject: [mapserver-users] changing projection of a "polygon" Message-ID: <AANLkTikqUwkRwe_NxxmC3VvxhnCFZozeO_fz0ZzhWMmE@mail.gmail.com> hello I there any way to change projection of a "polygon" from UTM to geographic . something like from EPSG:32636 to EPSG:4326. regards From jt at mapmedia.de Thu Jun 17 12:04:16 2010 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Thu, 17 Jun 2010 21:04:16 +0200 Subject: [mapserver-users] changing projection of a "polygon" In-Reply-To: <AANLkTikqUwkRwe_NxxmC3VvxhnCFZozeO_fz0ZzhWMmE@mail.gmail.com> References: <AANLkTikqUwkRwe_NxxmC3VvxhnCFZozeO_fz0ZzhWMmE@mail.gmail.com> Message-ID: <4C1A71B0.5090607@mapmedia.de> hello, ahmet temiz wrote: > hello > > I there any way to change projection of a "polygon" from UTM to geographic . > > something like from EPSG:32636 to EPSG:4326. yes. if you want to save the file with the new projection you might use http://www.gdal.org/ogr2ogr.html If you are asking for a reprojection on-the-fly, mapserver can do it: > LAYER > ... > PROJECTION > "init=epsg:32636" # projection of your src-data > END > METADATA > "wms_srs" "EPSG:4326 EPSG:32636" # request am map in any of these proejctions > ... > END > END J?rg > > regards > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From KMorrison at advantrack.com Thu Jun 17 12:13:17 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Thu, 17 Jun 2010 14:13:17 -0500 Subject: [mapserver-users] MySQL data Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> I have data stored in MySQL. When I configure the map file to pull from a small subset of the data, tiles are generated correctly. If I change the map file to point to the larger master table, map server returns "CGI Timeout". I dont't really want to breakdown the master data table into hundreds of smaller tables. I need additional informaiton and/or suggestions on how to get mapserver to work with millions of rows of data in MySQL. Kent W. Morrison Software Development Manager Advanced Tracking Technologies, Inc. 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 <mailto:kmorrison at advantrack.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100617/cdac1b89/attachment.htm> From s0348372 at sms.ed.ac.uk Thu Jun 17 17:52:49 2010 From: s0348372 at sms.ed.ac.uk (Henryk) Date: Thu, 17 Jun 2010 17:52:49 -0700 (PDT) Subject: [mapserver-users] Ka-Map display issues Message-ID: <1276822369349-5193584.post@n2.nabble.com> Hello, I am trying to create a slippy map using ka-map and a few datasets I am holding locally. I have installed mapserver and ka-maps using the ms4w package, but am unable to display any mapfiles I have created. I've tested these by creating pngs from the mapfiles and they work fine. When I point my browser at Ka-map however, the shell appears with all the tools (pan, zoom etc) along with the name of the map, but there is no image. When I change the bg color in the mapfile, the browser display changes accordingly. When I check the Apache error log I see this message: [error] PHP Warning: Division by zero in D:\\ms4w\\apps\\ka-map-1.0\\htdocs\\tile.php on line 231, referer: http://localhost/kamap/ [error] PHP Warning: Division by zero in D:\\ms4w\\apps\\ka-map-1.0\\htdocs\\tile.php on line 232, referer: http://localhost/kamap/ [error] PHP Fatal error: [MapServer Error]: setExtent(): Given map extent is invalid. Check that it is in the form: minx, miny, maxx, maxy, referer: http://localhost/kamap/ [error] PHP Warning: readfile(D:\\ms4w\\apps\\ka-map-1.0\\htdocs): failed to open stream: Permission denied in D:\\ms4w\\apps\\ka-map-1.0\\htdocs\\keymap.php on line 88, referer: http://localhost/kamap/ I'm a newbie at most of this, but any help would be greatly appreciated. H -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Ka-Map-display-issues-tp5193584p5193584.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Thu Jun 17 23:02:46 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Fri, 18 Jun 2010 09:02:46 +0300 Subject: [mapserver-users] changing projection of a "polygon" In-Reply-To: <4C1A71B0.5090607@mapmedia.de> References: <AANLkTikqUwkRwe_NxxmC3VvxhnCFZozeO_fz0ZzhWMmE@mail.gmail.com> <4C1A71B0.5090607@mapmedia.de> Message-ID: <AANLkTikDX_DgpmxQRzf2q6OdQG-sNz1kCAdZsv8gW1eW@mail.gmail.com> thank you How we can do that in mapscript (Java) ? regards 2010/6/17 J?rg Thomsen <jt at mapmedia.de>: > hello, > > ahmet temiz wrote: >> >> hello >> >> I there any way to change projection of a "polygon" from ?UTM to >> geographic . >> >> something like from EPSG:32636 to EPSG:4326. > > yes. > > if you want to save the file with the new projection you might use > http://www.gdal.org/ogr2ogr.html > > If you are asking for a reprojection on-the-fly, mapserver can do it: > >> LAYER >> ?... >> ?PROJECTION >> ? "init=epsg:32636" # projection of your src-data >> ?END >> ?METADATA >> ? ?"wms_srs" ? ? ? ? ? ? "EPSG:4326 EPSG:32636" # request am map in any of >> these proejctions >> ? ?... >> ?END >> END > > > J?rg > > >> >> regards >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Aufwind durch Wissen! > > Qualifizierte Open Source Schulungen bei der > http://www.foss-akademie.de/ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _________________________________________________ > > MapMedia > Kartographie und raumbezogene Informationssysteme > > Gillweg 3, 14193 Berlin > fon: +49 30 89 06 82-70 > fax: +49 30 89 09 53-21 > mail: jt at mapmedia.de > net: ?www.mapmedia.de > _________________________________________________ > > > > Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm > Registergericht, Berlin - Amtsgericht Charlottenburg, > HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcorti at gmail.com Fri Jun 18 02:03:22 2010 From: pcorti at gmail.com (Paolo Corti) Date: Fri, 18 Jun 2010 11:03:22 +0200 Subject: [mapserver-users] MapServer.pdf Message-ID: <AANLkTinvlmp5arW5_i7qOJ92p0TVEbAnNqNJUKuTXqUS@mail.gmail.com> Hi since some time (2 weeks?) the MapServer.pdf file at this link: http://mapserver.org/MapServer.pdf seems to be invalid. Can you fix this? thanks a lot Paolo -- Paolo Corti GIS Architect and Developer web: http://www.paolocorti.net twitter: @paolo_corti From kobben at itc.nl Fri Jun 18 02:59:39 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 18 Jun 2010 11:59:39 +0200 Subject: [mapserver-users] Re: Postgis Function in a Wfs Map File Problem In-Reply-To: <1276781267420-5190953.post@n2.nabble.com> Message-ID: <C841102B.13196%kobben@itc.nl> ....and that error is...?? Please be more clear in what you are asking! -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 17-06-10 15:27, "Ibrahim Saricicek" <ibrahimsaricicek at gmail.com> wrote: > > > Hi all, > > I've updated my post. Now I have a different error. > > Regards.. > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Prob > lem-tp5186640p5190953.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 Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From kobben at itc.nl Fri Jun 18 04:02:09 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 18 Jun 2010 13:02:09 +0200 Subject: [mapserver-users] Re: Postgis Function in a Wfs Map File Problem In-Reply-To: <AANLkTilSO-3i1ZK5BiCT3BejwycekycASYMjx3ofoXC7@mail.gmail.com> Message-ID: <C8411ED1.1319F%kobben@itc.nl> Hi, I'm not using mail group, using nabble.com <http://nabble.com> instead. So my edits on posts aren't posted to mail group, just changes on forum. You may see the changes on the link; http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Pr oblem-td5186640.html#a5186640 Best regards... 2010/6/18 Barend K?bben <kobben at itc.nl> > ....and that error is...?? > > Please be more clear in what you are asking! > > -- > Barend K?bben > Senior Lecturer > ITC ? University of Twente, Faculty of Geo-Information Science and > Earth Observation > PO Box 6, 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 17-06-10 15:27, "Ibrahim Saricicek" <ibrahimsaricicek at gmail.com> wrote: > >> > >> > >> > Hi all, >> > >> > I've updated my post. Now I have a different error. >> > >> > Regards.. >> > -- >> > View this message in context: >> > >> http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Prob >> > lem-tp5186640p5190953.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 > > Faculty of Geo-Information Science and Earth Observation (ITC) > University of Twente > > E-mail disclaimer > The information in this e-mail, including any attachments, is intended for the > addressee only. If you are not the intended recipient, you are hereby notified > that any disclosure, copying, distribution or action in relation to the > content of this information is strictly prohibited. If you have received this > e-mail by mistake, please delete the message and any attachment and inform the > sender by return e-mail. ITC accepts no liability for any error or omission in > the message content or for damage of any kind that may arise as a result of > e-mail transmission. ------ End of Forwarded Message Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From kobben at itc.nl Fri Jun 18 04:24:01 2010 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 18 Jun 2010 13:24:01 +0200 Subject: [mapserver-users] Re: Postgis Function in a Wfs Map File Problem In-Reply-To: <C8411ED1.1319F%kobben@itc.nl> Message-ID: <C84123F1.131A2%kobben@itc.nl> Point taken, but this is bad form if you participate in email conversations that are in a public list such as the mapserver-users one. People like me who read this in their email programme get utterly confused. Also Nabble users by the way, because you are breaking the chain of reasoning: by going back and altering earlier parts of a conversation the thread becomes non-sensical... Re. Your problem: My guess is that the subselect doen not result in a valid WKT/WKB geometry in the_geom. If you test the SQL stand-alone in PostGIS, what is the outcome...? yours -- Barend K?bben Senior Lecturer ITC ? University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 18-06-10 13:02, ""Ibrahim Saricicek" <ibrahimsaricicek at gmail.com> wrote: > Hi, > > I'm not using mail group, using nabble.com <http://nabble.com> instead. So > my edits on posts aren't posted to mail group, just changes on forum. > > You may see the changes on the link; > http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Pr > oblem-td5186640.html#a5186640 > > Best regards... > > 2010/6/18 Barend K?bben <kobben at itc.nl> >> ....and that error is...?? >> >> Please be more clear in what you are asking! >> >> -- >> Barend K?bben >> Senior Lecturer >> ITC ? University of Twente, Faculty of Geo-Information Science and >> Earth Observation >> PO Box 6, 7500AA Enschede, The Netherlands >> +31 (0)53 4874253 >> >> >> >> On 17-06-10 15:27, "Ibrahim Saricicek" <ibrahimsaricicek at gmail.com> wrote: >> >>>> >>>> >>>> Hi all, >>>> >>>> I've updated my post. Now I have a different error. >>>> >>>> Regards.. >>>> -- >>>> View this message in context: >>>> >>> > http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Prob >>>> lem-tp5186640p5190953.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 >> >> Faculty of Geo-Information Science and Earth Observation (ITC) >> University of Twente >> >> E-mail disclaimer >> The information in this e-mail, including any attachments, is intended for >> the >> addressee only. If you are not the intended recipient, you are hereby >> notified >> that any disclosure, copying, distribution or action in relation to the >> content of this information is strictly prohibited. If you have received this >> e-mail by mistake, please delete the message and any attachment and inform >> the >> sender by return e-mail. ITC accepts no liability for any error or omission >> in >> the message content or for damage of any kind that may arise as a result of >> e-mail transmission. > > > ------ End of Forwarded Message > > Faculty of Geo-Information Science and Earth Observation (ITC) > University of Twente > > E-mail disclaimer > The information in this e-mail, including any attachments, is intended for the > addressee only. If you are not the intended recipient, you are hereby notified > that any disclosure, copying, distribution or action in relation to the > content of this information is strictly prohibited. If you have received this > e-mail by mistake, please delete the message and any attachment and inform the > sender by return e-mail. ITC accepts no liability for any error or omission in > the message content or for damage of any kind that may arise as a result of > e-mail transmission. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From ibrahimsaricicek at gmail.com Fri Jun 18 04:27:15 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Fri, 18 Jun 2010 04:27:15 -0700 (PDT) Subject: [mapserver-users] Re: Postgis Function in a Wfs Map File Problem In-Reply-To: <C84123F1.131A2%kobben@itc.nl> References: <1276697332842-5186640.post@n2.nabble.com> <C8411ED1.1319F%kobben@itc.nl> <C84123F1.131A2%kobben@itc.nl> Message-ID: <1276860435845-5194922.post@n2.nabble.com> Hi, The outcome of the function is "geometry" (a multilinestring). Regards.. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Postgis-Function-in-a-Wfs-Map-File-Problem-tp5186640p5194922.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sofia.bryntse at et.slu.se Fri Jun 18 05:45:57 2010 From: sofia.bryntse at et.slu.se (Fia) Date: Fri, 18 Jun 2010 05:45:57 -0700 (PDT) Subject: [mapserver-users] Technology to combine with MapServer? Message-ID: <1276865157838-5195104.post@n2.nabble.com> Hi! I run a MapServer application that reads data from a PostgreSQL database (with PostGIS) and plots them on a map. Now I want to make objects clickable, so I can for example click on a flag to get a popup with short info, together with a link. (Or the same popup by hovering over a flag with the cursor, either works.) What technology should I use? I have started using OpenLayers and I've managed to put up a WFS service through MapServer, but I don't know how to connect the two. Or should I even use some other, better technology? I've heard people talking about GeoExt, ExtJs, Mapfish, Geoserver and more, but I'm a a novice here and don't know what to choose. Programming PHP workarounds is also an option. But I need some guidance in this, I have no idea which solution is best (fast to accomplish/robust for large databases/performance wise etc)to choose an object from a map and present more information about it. Best regards, Sofia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Technology-to-combine-with-MapServer-tp5195104p5195104.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Jun 18 06:36:02 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 18 Jun 2010 08:36:02 -0500 Subject: [mapserver-users] Technology to combine with MapServer? In-Reply-To: <1276865157838-5195104.post@n2.nabble.com> References: <1276865157838-5195104.post@n2.nabble.com> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C029530344E@MNMAIL05.ead.state.mn.us> I'd start with OpenLayers and some of it's demos. That way you can get a feeling for what's necessary to do any implementation. They cover a huge number of use cases. If what you're doing is relatively straight forward then OL may be all you need. If things look more complex and you feel the need for more sophisticated UI widgets then one of the geo-centric frameworks will be worth a look. GeoExt and MapFish are probably the most polished at this point. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fia [sofia.bryntse at et.slu.se] Sent: Friday, June 18, 2010 7:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Technology to combine with MapServer? Hi! I run a MapServer application that reads data from a PostgreSQL database (with PostGIS) and plots them on a map. Now I want to make objects clickable, so I can for example click on a flag to get a popup with short info, together with a link. (Or the same popup by hovering over a flag with the cursor, either works.) What technology should I use? I have started using OpenLayers and I've managed to put up a WFS service through MapServer, but I don't know how to connect the two. Or should I even use some other, better technology? I've heard people talking about GeoExt, ExtJs, Mapfish, Geoserver and more, but I'm a a novice here and don't know what to choose. Programming PHP workarounds is also an option. But I need some guidance in this, I have no idea which solution is best (fast to accomplish/robust for large databases/performance wise etc)to choose an object from a map and present more information about it. Best regards, Sofia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Technology-to-combine-with-MapServer-tp5195104p5195104.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 Steve.Lime at state.mn.us Fri Jun 18 06:38:40 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 18 Jun 2010 08:38:40 -0500 Subject: [mapserver-users] RE: MySQL data In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> Message-ID: <A7F7B3043D3BF0438F1206BAA3C9933C0295303450@MNMAIL05.ead.state.mn.us> Hi Kent: Probably need more information regarding: - versions - access method (are you using GDAL?) - what type of spatial data (MySQL geometries vs points in x/y columns) - etc... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison [KMorrison at advantrack.com] Sent: Thursday, June 17, 2010 2:13 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] MySQL data I have data stored in MySQL. When I configure the map file to pull from a small subset of the data, tiles are generated correctly. If I change the map file to point to the larger master table, map server returns "CGI Timeout". I dont't really want to breakdown the master data table into hundreds of smaller tables. I need additional informaiton and/or suggestions on how to get mapserver to work with millions of rows of data in MySQL. Kent W. Morrison Software Development Manager Advanced Tracking Technologies, Inc. 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 <mailto:kmorrison at advantrack.com> From andy at squeakycode.net Fri Jun 18 06:48:44 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 18 Jun 2010 08:48:44 -0500 Subject: [mapserver-users] Technology to combine with MapServer? In-Reply-To: <1276865157838-5195104.post@n2.nabble.com> References: <1276865157838-5195104.post@n2.nabble.com> Message-ID: <4C1B793C.4060401@squeakycode.net> On 6/18/2010 7:45 AM, Fia wrote: > > Hi! > > I run a MapServer application that reads data from a PostgreSQL database > (with PostGIS) and plots them on a map. Now I want to make objects > clickable, so I can for example click on a flag to get a popup with short > info, together with a link. (Or the same popup by hovering over a flag with > the cursor, either works.) > > What technology should I use? I have started using OpenLayers and I've > managed to put up a WFS service through MapServer, but I don't know how to > connect the two. Or should I even use some other, better technology? I've > heard people talking about GeoExt, ExtJs, Mapfish, Geoserver and more, but > I'm a a novice here and don't know what to choose. Programming PHP > workarounds is also an option. But I need some guidance in this, I have no > idea which solution is best (fast to accomplish/robust for large > databases/performance wise etc)to choose an object from a map and present > more information about it. > > Best regards, > Sofia I'm using PostGIS, OpenLayers and a little perl to do this. Here is a sample of the site: http://maps.camavision.com/?map=kossuthia&pin=2202456012 It looks for "interesting" things withing a buffer of the click point (so if you are close enough to a street, stream, railroad, etc it'll tell you what they are). I dont use the Mapserver Query* stuff, I kinda wrote my own. If this is the sort of thing you are looking for, and dont mind writing PG stored procedures and a little code, I'll describe how I did it. This might be a little more low level... but it gives you lots of control. Note that you cannot "select" an object. You just get information about objects near where you click. -Andy From bfraser at geoanalytic.com Fri Jun 18 08:06:05 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 18 Jun 2010 09:06:05 -0600 Subject: [mapserver-users] Technology to combine with MapServer? In-Reply-To: <1276865157838-5195104.post@n2.nabble.com> References: <1276865157838-5195104.post@n2.nabble.com> Message-ID: <4C1B8B5D.9070707@geoanalytic.com> Have a look at GeoMOOSE (http://www.geomoose.org/). It's a user-ready web application built on OpenLayers and can use Mapserver as a data source. It has popups, and there's an enhancement available for hovering. Best Regards, Brent Fraser Fia wrote: > Hi! > > I run a MapServer application that reads data from a PostgreSQL database > (with PostGIS) and plots them on a map. Now I want to make objects > clickable, so I can for example click on a flag to get a popup with short > info, together with a link. (Or the same popup by hovering over a flag with > the cursor, either works.) > > What technology should I use? I have started using OpenLayers and I've > managed to put up a WFS service through MapServer, but I don't know how to > connect the two. Or should I even use some other, better technology? I've > heard people talking about GeoExt, ExtJs, Mapfish, Geoserver and more, but > I'm a a novice here and don't know what to choose. Programming PHP > workarounds is also an option. But I need some guidance in this, I have no > idea which solution is best (fast to accomplish/robust for large > databases/performance wise etc)to choose an object from a map and present > more information about it. > > Best regards, > Sofia From Johan.Forsman at LA.GOV Fri Jun 18 12:24:47 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 18 Jun 2010 14:24:47 -0500 Subject: [mapserver-users] Mapserver debug with PostGIS verbosity Message-ID: <D697C50705266B4B826C7322C809F00D66D01C5F@MAILMBX09.MAIL.LA.GOV> All: I am running MapServer 5.4.2 in the FGS environment on Ubuntu Server 9.10, using PostGIS for all point data. I frequently use the MS_ERROR output for debugging purposes as I change formats and outputs frequently (this is an "experimental" server). I am noticing that for all the data stored in the PostGIS, MapServer wants to tell me ALL about it, regardless of the debug level I specify. This behavior is not true for my shapefile sources. I really don't need MapServer to tell me about everything it finds, just those things that do not work. DEBUG off or DEBUG 0 appear to have no effect on this. What am I missing? Thanks! ---------------------- Johan Forsman Geologist Safe Drinking Water Program Louisiana Department of Health and Hospitals Office of Public Health Telephone: 225.342.7309 Telefax: 225.342.7303 From beyhan at deprem.gov.tr Sat Jun 19 07:45:55 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Sat, 19 Jun 2010 17:45:55 +0300 Subject: [mapserver-users] get point informationand write it on the web-page In-Reply-To: <D697C50705266B4B826C7322C809F00D66D01C5F@MAILMBX09.MAIL.LA.GOV> References: <D697C50705266B4B826C7322C809F00D66D01C5F@MAILMBX09.MAIL.LA.GOV> Message-ID: <1276958755.31573.8.camel@sakura.deprem.gov.tr> Dear Friend, I use mapserver and mysql to draw seismicity map which is showing epicenter points on the map. I would like to get information about the earthquake which are stored in MySQL database when you click on point on the map and display it or write it automatically somewhere on the web-page. Are there any way to do this and how can I do it. Thanks. Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From christian.fritze at porath.de Sun Jun 20 07:44:33 2010 From: christian.fritze at porath.de (Christian Fritze) Date: Sun, 20 Jun 2010 16:44:33 +0200 Subject: [mapserver-users] mapserver 5.6.3: msGetLabelSize() won't see TrueType fonts? Message-ID: <4C1E2951.8030504@porath.de> Hello everybody! When trying to use TrueType fonts for a label with perl/mapscript, I get the error message > msGetLabelSize(): TrueType Font error. Requested font (Vera) not found. But this code in the same script... > my $fontsetobj = $map2->{fontset}; > my $fonts = $fontsetobj->{fonts}; > my $vermerk=$map2->getLayerByName('Vermerk'); > > my $class=$vermerk->getClass(0); > my $label=$class->{label}; > print STDERR "Font of label $label is " . $label->{font} . "\n"; > print STDERR "Font alias " . $label->{font} . " points to " . $fonts->get($label->{font}) . ".\n"; ...indicates that alias 'Vera' points to file /usr/X11R6/lib/X11/fonts/truetype/Vera.ttf which /usr/bin/file tells me to be world readable 'TrueType font data'. When changing the LABEL part of the mapfile to use bitmap fonts instead, the label gets drawn without problems. Can anyone think of a reason why msGetLabelSize() won't see what is apparently there? (GD *is* compiled against FreeType2...) Thanks in advance... From paulborodaev at gmail.com Sun Jun 20 22:37:35 2010 From: paulborodaev at gmail.com (BrainDrain) Date: Sun, 20 Jun 2010 22:37:35 -0700 (PDT) Subject: [mapserver-users] Re: performance problem In-Reply-To: <1276289364429-5169667.post@n2.nabble.com> References: <1276289364429-5169667.post@n2.nabble.com> Message-ID: <1277098655366-5202981.post@n2.nabble.com> PROCESSING "CLOSE_CONNECTION=DEFER" -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/performance-problem-tp5169667p5202981.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefano.ferri at stesurf.com Mon Jun 21 03:20:40 2010 From: stefano.ferri at stesurf.com (stefanoferri) Date: Mon, 21 Jun 2010 03:20:40 -0700 (PDT) Subject: [mapserver-users] Changing map file parameters via a form or a URL EXPRESSION Message-ID: <1277115640496-5203714.post@n2.nabble.com> Hello everybody, I tryed to use "Changing map file parameters via a form or a URL" and i had success in modify for example the color of a layer in this way: map.layer[cities].class[0].style[0]=COLOR+0+255+0, but if i try to modify the EXPRESSION with this: map.layer[cities].class[0]=EXPRESSION+([gid]<100) i get this error: "loadClass(): General error message. URL-based EXPRESSION configuration failed pattern validation. msValidateParameter(): Regular expression error. Parameter pattern validation failed. " where do i wrong??? thanks for the help -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameters-via-a-form-or-a-URL-EXPRESSION-tp5203714p5203714.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dalda at ikt.es Mon Jun 21 04:58:33 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Mon, 21 Jun 2010 13:58:33 +0200 Subject: [mapserver-users] RV: [OpenLayers-Users] Strange behaviour with OpenLayers.Request.POST and MapServer Message-ID: <224DBDAF88A6AC47BD22432815351BE00807443A@nekaposta1> Hi list, I posted this question in OpenLayers mailing list but without response, maybe here someone knwos what could be happening. I'm trying to load some data from a remote WFS Server (MapServer). At the beginning I used OpenLayers.Request.POST({url: this.onlineResource, callback: callbackFunction, method: 'POST', data: filter}); to load the features and it worked perfectly, but now, due to some architecture issues, I have to make the request over a proxy script made in php, but I don't get the features. I don't get any OpenLayers error but I get an error from MapServer: Error: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. Request: OpenLayers.Request.POST({url: networkSettings.proxyURL + "?method=POST&url=" + escape(this.onlineResource) + "&data=" + filtro, callback: callbackFunction, method: 'POST', headers: {"Content-Type": "text/xml; charset=utf-8"}}); Web Proxy: <? $strURL = @$_REQUEST["url"]; $strMethod = @$_REQUEST["method"]; $strData = @$_REQUEST["data"]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $strURL); if ($strMethod == "POST"){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $strData); } $data = curl_exec($ch); curl_close($ch); ?> In Firebug I can see all the parameters: data <?xml version="1.0" ?><wfs:GetFeature service="WFS" version="1.1.0" outputFormat="text/xml; subtype=gml/3.1.1" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd"><wfs:Query typeName="RecintosSigpac"><PropertyName>msGeometry</PropertyName> <Filter><Or><And><PropertyIsEqualTo><PropertyName>PROVINCIA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>MUNICIPIO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>POLIGONO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>PARCELA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>RECINTO</PropertyName><Literal>1</Literal></PropertyIsEqualTo></And><And><PropertyIsEqualTo><PropertyName>PROVINCIA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>MUNICIPIO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>POLIGONO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>PARCELA</PropertyName><Literal>86</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>RECINTO</PropertyName><Literal>1</Literal></PropertyIsEqualTo></And></Or></Filter> </wfs:Query></wfs:GetFeature> method POST url http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map& And in Apache access.log I get : 192.168.1.65 - - [21/Jun/2010:13:44:56 +0200] "POST /webproxy.php?&url=http%3A%2F%2F192.168.1.65%2Fcgi-bin%2Fmapserv.exe%3Fmap%3D..%2Fhtdocs%2FMFD%2Fejemplo_wfs.map%26&method=POST&data=%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Cwfs%3AGetFeature%20service%3D%22WFS%22%20version%3D%221.1.0%22%20outputFormat%3D%22text%2Fxml%3B%20subtype%3Dgml%2F3.1.1%22%20xmlns%3Awfs%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%20..%2Fwfs%2F1.1.0%2FWFS.xsd%22%3E%3Cwfs%3AQuery%20typeName%3D%22RecintosSigpac%22%3E%3CPropertyName%3EmsGeometry%3C%2FPropertyName%3E%0A%09%09%09%09%20%3CFilter%3E%0A%09%09%09%09%09%3COr%3E%0A%09%09%09%09%09%09%3CAnd%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPROVINCIA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EMUNICIPIO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPOLIGONO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPARCELA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3ERECINTO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%3C%2FAnd%3E%0A%09%09%09%09%09%09%3CAnd%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPROVINCIA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EMUNICIPIO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPOLIGONO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPARCELA%3C%2FPropertyName%3E%3CLiteral%3E86%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3ERECINTO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%3C%2FAnd%3E%0A%09%09%09%09%09%3C%2FOr%3E%0A%09%09%09%09%3C%2FFilter%3E%20%0A%09%09%09%3C%2Fwfs%3AQuery%3E%3C%2Fwfs%3AGetFeature%3E HTTP/1.1" 200 2508 This seems to be OK, isn't it? Am I doing something wrong with the new request?? Thanks in advance. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ Users mailing list Users at openlayers.org http://openlayers.org/mailman/listinfo/users From forest21000 at yahoo.cn Mon Jun 21 04:33:34 2010 From: forest21000 at yahoo.cn (Forest) Date: Mon, 21 Jun 2010 19:33:34 +0800 (CST) Subject: [mapserver-users] Questions about shp2img.exe Message-ID: <423768.75856.qm@web92103.mail.cnh.yahoo.com> Hello Everyone, I am using shp2img.exe which is MapServer's utility to translate my shpfiles to png image file.And I translate my shpfile into lots of tiles by center delta lon and center delta wd.I've translated the shpfiles into png files in tiles.But when I previewed the results,I found that the contents of images were longer than the center minx,miny,maxx,maxy. Hope someboy will answer my question? Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100621/4399258a/attachment.htm> From forest21000 at yahoo.cn Mon Jun 21 04:33:34 2010 From: forest21000 at yahoo.cn (Forest) Date: Mon, 21 Jun 2010 19:33:34 +0800 (CST) Subject: [mapserver-users] Questions about shp2img.exe Message-ID: <423768.75856.qm@web92103.mail.cnh.yahoo.com> Hello Everyone, I am using shp2img.exe which is MapServer's utility to translate my shpfiles to png image file.And I translate my shpfile into lots of tiles by center delta lon and center delta wd.I've translated the shpfiles into png files in tiles.But when I previewed the results,I found that the contents of images were longer than the center minx,miny,maxx,maxy. Hope someboy will answer my question? Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100621/4399258a/attachment-0001.htm> From Jukka.Rahkonen at mmmtike.fi Mon Jun 21 05:19:49 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 Jun 2010 15:19:49 +0300 Subject: [mapserver-users] Questions about shp2img.exe References: <423768.75856.qm@web92103.mail.cnh.yahoo.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86E34835@tikka.haapa.mmm.fi> Hi, Could you send the shp2img command you were using? And if the problem is non-square tiles, the SIZE line from your mapfile as well. -Jukka Rahkonen- Forest wrote: > Hello Everyone, I am using shp2img.exe which is MapServer's utility to translate my shpfiles to png image file.And I translate my shpfile into lots of tiles by center delta lon and center delta wd.I've translated the shpfiles into png files in tiles.But when I previewed the results,I found that the contents of images were longer than the center minx,miny,maxx,maxy. Hope someboy will answer my question? Thank you very much! From Johan.Forsman at LA.GOV Mon Jun 21 05:55:48 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Mon, 21 Jun 2010 07:55:48 -0500 Subject: [mapserver-users] RE: Mapserver debug with PostGIS verbosity In-Reply-To: <D697C50705266B4B826C7322C809F00D66D01C5F@MAILMBX09.MAIL.LA.GOV> References: <D697C50705266B4B826C7322C809F00D66D01C5F@MAILMBX09.MAIL.LA.GOV> Message-ID: <D697C50705266B4B826C7322C809F00D66D01DAE@MAILMBX09.MAIL.LA.GOV> Sorry to degrade the signal to noise ratio; solved my own problem. I had at some point set the MS_DEBUGLEVEL to 3 in an obscure httpd-include file and after that it apparently did not matter what I specified in the MAP files. I removed that directive, restarted Apache, and the ms_error file is now clean. /Johan. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Friday, June 18, 2010 2:25 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver debug with PostGIS verbosity > > All: > > I am running MapServer 5.4.2 in the FGS environment on Ubuntu Server 9.10, > using PostGIS for all point data. > > I frequently use the MS_ERROR output for debugging purposes as I change > formats and outputs frequently (this is an "experimental" server). I am > noticing that for all the data stored in the PostGIS, MapServer wants to > tell me ALL about it, regardless of the debug level I specify. > > This behavior is not true for my shapefile sources. > > I really don't need MapServer to tell me about everything it finds, just > those things that do not work. > > DEBUG off or DEBUG 0 appear to have no effect on this. > > What am I missing? > > Thanks! > > ---------------------- > Johan Forsman > Geologist > Safe Drinking Water Program > Louisiana Department of Health and Hospitals > Office of Public Health > Telephone: 225.342.7309 > Telefax: 225.342.7303 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at meteologica.es Mon Jun 21 06:38:39 2010 From: mapserver at meteologica.es (Paco Regodon) Date: Mon, 21 Jun 2010 15:38:39 +0200 Subject: [mapserver-users] Changing map file parameters via a form or a URL EXPRESSION In-Reply-To: <1277115640496-5203714.post@n2.nabble.com> References: <1277115640496-5203714.post@n2.nabble.com> Message-ID: <4C1F6B5F.8080801@meteologica.es> Maybe you should use runtime variable substitutions or maybe you need to define validation patterns. Look at: http://mapserver.org/cgi/runsub.html You can call mapserver cgi passing a filter parameter. Something like &myfilter=[gid]<100 and at layer's EXPRESSION use %myfilter% Hope it helps. Regards Paco On 21/06/10 12:20, stefanoferri wrote: > Hello everybody, > I tryed to use "Changing map file parameters via a form or a URL" and i had > success in modify for example the color of a layer in this way: > > map.layer[cities].class[0].style[0]=COLOR+0+255+0, > > but if i try to modify the EXPRESSION with this: > > map.layer[cities].class[0]=EXPRESSION+([gid]<100) > > i get this error: > > "loadClass(): General error message. URL-based EXPRESSION configuration > failed pattern validation. msValidateParameter(): Regular expression error. > Parameter pattern validation failed. " > > where do i wrong??? > thanks for the help > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100621/95300cfb/attachment.htm> From David.Fawcett at state.mn.us Mon Jun 21 07:46:14 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 21 Jun 2010 09:46:14 -0500 Subject: [mapserver-users] RE: [OpenLayers-Users] Strange behaviour with OpenLayers.Request.POST and MapServer In-Reply-To: <224DBDAF88A6AC47BD22432815351BE00807443A@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00807443A@nekaposta1> Message-ID: <D2C2A8AE8E016C42A974F644AF21E1390300E0E5F6@MNMAIL05.ead.state.mn.us> David, I just skimmed the text of post XML, but if your OpenLayers app is sending a query to MapServer, your layer will need a template. In the case of WFS, I don't think that you need a real template file. But, you still might need an entry in your LAYER that is something like TEMPLATE "dummy.html". David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Alda Fernandez de Lezea Sent: Monday, June 21, 2010 6:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RV: [OpenLayers-Users] Strange behaviour with OpenLayers.Request.POST and MapServer Hi list, I posted this question in OpenLayers mailing list but without response, maybe here someone knwos what could be happening. I'm trying to load some data from a remote WFS Server (MapServer). At the beginning I used OpenLayers.Request.POST({url: this.onlineResource, callback: callbackFunction, method: 'POST', data: filter}); to load the features and it worked perfectly, but now, due to some architecture issues, I have to make the request over a proxy script made in php, but I don't get the features. I don't get any OpenLayers error but I get an error from MapServer: Error: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. Request: OpenLayers.Request.POST({url: networkSettings.proxyURL + "?method=POST&url=" + escape(this.onlineResource) + "&data=" + filtro, callback: callbackFunction, method: 'POST', headers: {"Content-Type": "text/xml; charset=utf-8"}}); Web Proxy: <? $strURL = @$_REQUEST["url"]; $strMethod = @$_REQUEST["method"]; $strData = @$_REQUEST["data"]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $strURL); if ($strMethod == "POST"){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $strData); } $data = curl_exec($ch); curl_close($ch); ?> In Firebug I can see all the parameters: data <?xml version="1.0" ?><wfs:GetFeature service="WFS" version="1.1.0" outputFormat="text/xml; subtype=gml/3.1.1" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd"><wfs:Query typeName="RecintosSigpac"><PropertyName>msGeometry</PropertyName> <Filter><Or><And><PropertyIsEqualTo><PropertyName>PROVINCIA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>MUNICIPIO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>POLIGONO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>PARCELA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>RECINTO</PropertyName><Literal>1</Literal></PropertyIsEqualTo></And><And><PropertyIsEqualTo><PropertyName>PROVINCIA</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>MUNICIPIO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>POLIGONO</PropertyName><Literal>1</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>PARCELA</PropertyName><Literal>86</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>RECINTO</PropertyName><Literal>1</Literal></PropertyIsEqualTo></And></Or></Filter> </wfs:Query></wfs:GetFeature> method POST url http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map& And in Apache access.log I get : 192.168.1.65 - - [21/Jun/2010:13:44:56 +0200] "POST /webproxy.php?&url=http%3A%2F%2F192.168.1.65%2Fcgi-bin%2Fmapserv.exe%3Fmap%3D..%2Fhtdocs%2FMFD%2Fejemplo_wfs.map%26&method=POST&data=%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Cwfs%3AGetFeature%20service%3D%22WFS%22%20version%3D%221.1.0%22%20outputFormat%3D%22text%2Fxml%3B%20subtype%3Dgml%2F3.1.1%22%20xmlns%3Awfs%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%20..%2Fwfs%2F1.1.0%2FWFS.xsd%22%3E%3Cwfs%3AQuery%20typeName%3D%22RecintosSigpac%22%3E%3CPropertyName%3EmsGeometry%3C%2FPropertyName%3E%0A%09%09%09%09%20%3CFilter%3E%0A%09%09%09%09%09%3COr%3E%0A%09%09%09%09%09%09%3CAnd%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPROVINCIA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EMUNICIPIO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPOLIGONO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPARCELA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3ERECINTO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%3C%2FAnd%3E%0A%09%09%09%09%09%09%3CAnd%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPROVINCIA%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EMUNICIPIO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPOLIGONO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3EPARCELA%3C%2FPropertyName%3E%3CLiteral%3E86%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%3CPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%09%09%3CPropertyName%3ERECINTO%3C%2FPropertyName%3E%3CLiteral%3E1%3C%2FLiteral%3E%0A%09%09%09%09%09%09%09%3C%2FPropertyIsEqualTo%3E%0A%09%09%09%09%09%09%3C%2FAnd%3E%0A%09%09%09%09%09%3C%2FOr%3E%0A%09%09%09%09%3C%2FFilter%3E%20%0A%09%09%09%3C%2Fwfs%3AQuery%3E%3C%2Fwfs%3AGetFeature%3E HTTP/1.1" 200 2508 This seems to be OK, isn't it? Am I doing something wrong with the new request?? Thanks in advance. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ Users mailing list Users at openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dalda at ikt.es Tue Jun 22 03:12:10 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Tue, 22 Jun 2010 12:12:10 +0200 Subject: [mapserver-users] How to achieve GetFeature request over a web proxy script PHP Message-ID: <224DBDAF88A6AC47BD22432815351BE008074673@nekaposta1> Hi list, I'm trying to get data from a GetFeature request sent to MapServer, but when I do it through a php script, I get the error: <!-- MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --> <BODY BGCOLOR="#FFFFFF"> mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. But if I do it directly from JavaScript, without using the script, I get the data back without any problems?? Here is my proxy-php-script: <?php $strURL = $_REQUEST["url"]; $strMethod = $_REQUEST["method"]; $strData = $_REQUEST["data"]; /*echo "Data --> ".$strData; echo "URL --> ".$strURL; echo "Method --> ".$strMethod;*/ $ch = curl_init($strURL); curl_setopt($ch, CURLOPT_URL, $strURL); if ($strMethod == "POST"){ curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $strData); } $data = curl_exec($ch); curl_close($ch); ?> It seems that if I use the script, MapServer thinks that I'm requesting the data through a web browser, but if I do it directly from JavaScript, no. I'm confused. Does anybody know how to achieve this task?? Thanks one more time. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From Morten.Sickel at nrpa.no Tue Jun 22 04:02:30 2010 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Tue, 22 Jun 2010 13:02:30 +0200 Subject: [mapserver-users] Re: Reg:About Native Microsoft SQL Server 2008 Driver for MapServer In-Reply-To: <1267022904964-4626221.post@n2.nabble.com> References: <79ad14900807150356r727a6a3fpcb9ca838f5cf54c6@mail.gmail.com> <1267022904964-4626221.post@n2.nabble.com> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D406C36F0274@MAILHUB.NRPA.LOCAL> Anybody knows if this plugin exists in osgeo4w? Or if I can download ms4w and "steal" the plugin from there? At least I have not managed to find it within my recently updated osgeo4w installation Morten Sickel Norwegian Radiation Protection Authority -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks Sent: Wednesday, February 24, 2010 3:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Reg:About Native Microsoft SQL Server 2008 Driver for MapServer A read-only, native MapServer driver that connects to Microsoft SQL Server 2008's spatial capabilities is available in MS4W as of version 2.3.0. Steps to Enable SQL Server 2008 Support in MS4W's MapServer The plugin exists in /ms4w/Apache/specialplugins/msplugin_mssql2008.dll Modify your SQL Server 2008 layer in your mapfile to use the CONNECTIONTYPE PLUGIN parameter and point to the appropriate plugin using the PLUGIN parameter. Use the CONNECTION parameter to specify the required connection parameters to access SQL Server, and use the DATA parameter to specify the table that holds the spatial information: LAYER ... CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=mysqlserver2008.com;uid=dbusername; pwd=dbpassword;database=Roads Database; Integrated Security=false" DATA "the_geom from roads" TYPE LINE STATUS ON CLASS ... END END Test your layer, possibly by using the shp2img commandline utility with the '-all_debug 5' switch The associated RFC document with the original notes on this support is RFC 38 -- View this message in context: http://n2.nabble.com/Reg-About-Native-Microsoft-SQL-Server-2008-Driver-for-MapServer-tp1971580p4626221.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 matt.mendick at pictometry.com Tue Jun 22 07:57:34 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Tue, 22 Jun 2010 07:57:34 -0700 (PDT) Subject: [mapserver-users] Limiting the execution time of mapserver Message-ID: <1277218654936-5209173.post@n2.nabble.com> I have a WFS service running with a large layer in it (nationwide) on mapserver. The interface that consumes it exposes a text search option where users can search on the layer, using the PropertyIsLike filter. If someone searches for something very broad, like "smith" postgres and mapserver go a bit insane. First postgres does the large query, and returns the response after a few minutes to mapserver, which proceeds to balloon to 85% of the memory (the machine has 7 gigs). Is there any way to stop mapserver from completing any queries that last more than X seconds? Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limiting-the-execution-time-of-mapserver-tp5209173p5209173.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andy at squeakycode.net Tue Jun 22 08:00:50 2010 From: andy at squeakycode.net (Andy Colson) Date: Tue, 22 Jun 2010 10:00:50 -0500 Subject: [mapserver-users] Limiting the execution time of mapserver In-Reply-To: <1277218654936-5209173.post@n2.nabble.com> References: <1277218654936-5209173.post@n2.nabble.com> Message-ID: <4C20D022.2010504@squeakycode.net> On 6/22/2010 9:57 AM, mattmendick wrote: > > I have a WFS service running with a large layer in it (nationwide) on > mapserver. The interface that consumes it exposes a text search option where > users can search on the layer, using the PropertyIsLike filter. If someone > searches for something very broad, like "smith" postgres and mapserver go a > bit insane. First postgres does the large query, and returns the response > after a few minutes to mapserver, which proceeds to balloon to 85% of the > memory (the machine has 7 gigs). Is there any way to stop mapserver from > completing any queries that last more than X seconds? > > Thanks a lot! Do you want all the smiths? You could add a 'limit 100' to the sql so mapserver wouldnt have as much data to chew on... -Andy From jt at mapmedia.de Tue Jun 22 07:57:08 2010 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Tue, 22 Jun 2010 16:57:08 +0200 Subject: [mapserver-users] How to achieve GetFeature request over a web proxy script PHP In-Reply-To: <224DBDAF88A6AC47BD22432815351BE008074673@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE008074673@nekaposta1> Message-ID: <4C20CF44.3000303@mapmedia.de> Hello David, David Alda Fernandez de Lezea wrote: > Hi list, > > I'm trying to get data from a GetFeature request sent to MapServer, > but when I do it through a php script, I get the error: > > <!-- MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG > INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE --> <BODY BGCOLOR="#FFFFFF"> mapserv(): Web > application error. Traditional BROWSE mode requires a TEMPLATE in the > WEB section, but none was provided. > > But if I do it directly from JavaScript, without using the script, I > get the data back without any problems?? > > Here is my proxy-php-script: > > <?php $strURL = $_REQUEST["url"]; $strMethod = $_REQUEST["method"]; > $strData = $_REQUEST["data"]; /*echo "Data --> ".$strData; echo "URL > --> ".$strURL; echo "Method --> ".$strMethod;*/ > > $ch = curl_init($strURL); curl_setopt($ch, CURLOPT_URL, $strURL); if > ($strMethod == "POST"){ curl_setopt($ch, CURLOPT_POST, true); > curl_setopt($ch, CURLOPT_POSTFIELDS, $strData); } $data = > curl_exec($ch); curl_close($ch); ?> > > It seems that if I use the script, MapServer thinks that I'm > requesting the data through a web browser, but if I do it directly > from JavaScript, no. I'm confused. no, browse means an old non-ogc-method of requesting maps from mapserver, nothing to do with internet browser (http://www.mapserver.org/mapfile/template.html). Usually you get this message if any WMS-request-parameter is missing, so mapsverver cannot identify your request as a wms-request. Might be the 'SERVICE=WMS'. > Does anybody know how to achieve this task?? let php echo the whole request, you will see what is missing. J?rg > > Thanks one more time. > > > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / > Dpto. de Territorio y Biodiversidad > > IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????????????? > > _______________________________________________ > mapserver-users mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From stefano.ferri at stesurf.com Tue Jun 22 10:29:41 2010 From: stefano.ferri at stesurf.com (stefanoferri) Date: Tue, 22 Jun 2010 10:29:41 -0700 (PDT) Subject: [mapserver-users] GAP Problem Message-ID: <1277227781014-5209955.post@n2.nabble.com> Hello, I am using MapServer version 5.6.1 I am symbolizing a POINT layer.. I created a new font because i symbolize the layer with a truetype symbol: SYMBOL NAME "T" TYPE TRUETYPE FONT "myFont.ttf" CHARACTER "[simbol]" ANTIALIAS TRUE GAP -100 END I get the value of the CHARACTER from the database column: "[simbol]" A field in the simbol column can be a letter like "a" or a string like "adf" in this way a can do a lot of combination..... by the way, My problem is the space between the characters.. also if I set GAP positive or negative values in the SYMBOL or in the STYLE nothing change..... and i don t get any errors...why?????? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GAP-Problem-tp5209955p5209955.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefano.ferri at stesurf.com Tue Jun 22 10:31:35 2010 From: stefano.ferri at stesurf.com (stefanoferri) Date: Tue, 22 Jun 2010 10:31:35 -0700 (PDT) Subject: [mapserver-users] Re: Changing map file parameters via a form or a URL EXPRESSION In-Reply-To: <4C1F6B5F.8080801@meteologica.es> References: <1277115640496-5203714.post@n2.nabble.com> <4C1F6B5F.8080801@meteologica.es> Message-ID: <1277227895077-5209963.post@n2.nabble.com> Thanks, solved with Validation ..... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameters-via-a-form-or-a-URL-EXPRESSION-tp5203714p5209963.html Sent from the Mapserver - User mailing list archive at Nabble.com. From daniel.smith1 at maine.edu Tue Jun 22 11:01:13 2010 From: daniel.smith1 at maine.edu (daniel.smith1) Date: Tue, 22 Jun 2010 11:01:13 -0700 (PDT) Subject: [mapserver-users] Obtaining the color of a layer Message-ID: <1277229673378-5210063.post@n2.nabble.com> This is probably very basic. I have done some research but can't find a clear cut solution. I'm currently using Mapserver and an OpenLayers-based map viewer. I am adding a color code to each entry in a list of layers. I need to obtain the color of the layer. I know I can change the color of the layer using OpenLayers styling but I don't know how to get the original color. Any suggestions? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Obtaining-the-color-of-a-layer-tp5210063p5210063.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Jun 22 11:33:29 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 22 Jun 2010 21:33:29 +0300 Subject: [mapserver-users] Obtaining the color of a layer References: <1277229673378-5210063.post@n2.nabble.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86E3483D@tikka.haapa.mmm.fi> Hi, Could WMS GetStyles suit you? Usage example: http://localhost/cgi-bin/mapserv.exe?map=c:\ms4w\osm-mapserver.map&service=wms&version=1.1.0&request=getstyles&layers=roadsfar_01 -Jukka Rahkonen- daniel.smith1 wrote: > This is probably very basic. I have done some research but can't find a clear cut solution. I'm currently using Mapserver and an OpenLayers-based map viewer. I am adding a color code to each entry in a list of layers. I need to obtain the color of the layer. I know I can change the color of the layer using OpenLayers styling but I don't know how to get the original color. Any suggestions? From daniel.smith1 at maine.edu Tue Jun 22 11:57:26 2010 From: daniel.smith1 at maine.edu (daniel.smith1) Date: Tue, 22 Jun 2010 11:57:26 -0700 (PDT) Subject: [mapserver-users] Re: Obtaining the color of a layer In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E3483D@tikka.haapa.mmm.fi> References: <1277229673378-5210063.post@n2.nabble.com> <CC197224AC75CE4DB23F739B16891B86E3483D@tikka.haapa.mmm.fi> Message-ID: <1277233046782-5210264.post@n2.nabble.com> Yes, that is exactly what I need. Thank you. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Obtaining-the-color-of-a-layer-tp5210063p5210264.html Sent from the Mapserver - User mailing list archive at Nabble.com. From matt.mendick at pictometry.com Tue Jun 22 12:13:04 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Tue, 22 Jun 2010 12:13:04 -0700 (PDT) Subject: [mapserver-users] Re: Limiting the execution time of mapserver In-Reply-To: <4C20D022.2010504@squeakycode.net> References: <1277218654936-5209173.post@n2.nabble.com> <4C20D022.2010504@squeakycode.net> Message-ID: <1277233984801-5210330.post@n2.nabble.com> Thanks for the reply - where would you put this limit statement? I've tried putting it in the DATA section, like so: DATA "wkb_geometry from (select * from parcels LIMIT 100) as subquery using unique ogc_fid using srid=4326" or DATA "wkb_geometry from (select * from parcels) as subquery using unique ogc_fid using srid=4326 LIMIT 100" or FILTER "LIMIT 100" And none of these seem to work - am I putting the limit statement in the right spot? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limiting-the-execution-time-of-mapserver-tp5209173p5210330.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Jun 22 12:13:43 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 22 Jun 2010 22:13:43 +0300 Subject: [mapserver-users] Re: Limiting the execution time of mapserver References: <1277218654936-5209173.post@n2.nabble.com><4C20D022.2010504@squeakycode.net> <1277233984801-5210330.post@n2.nabble.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86E3483E@tikka.haapa.mmm.fi> Hi, If you can control the client application make it to send &maxFeatures=100 with each WFS getFeature request. -Jukka Rahkonen- mattmendick wrote: > Thanks for the reply - where would you put this limit statement? I've tried putting it in the DATA section, like so: > DATA "wkb_geometry from (select * from parcels LIMIT 100) as subquery using unique ogc_fid using srid=4326" > or > DATA "wkb_geometry from (select * from parcels) as subquery using unique ogc_fid using srid=4326 LIMIT 100" > or > FILTER "LIMIT 100" > And none of these seem to work - am I putting the limit statement in the right spot? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limiting-the-execution-time-of-mapserver-tp5209173p5210330.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 andy at squeakycode.net Tue Jun 22 12:18:56 2010 From: andy at squeakycode.net (Andy Colson) Date: Tue, 22 Jun 2010 14:18:56 -0500 Subject: [mapserver-users] Re: Limiting the execution time of mapserver In-Reply-To: <1277233984801-5210330.post@n2.nabble.com> References: <1277218654936-5209173.post@n2.nabble.com> <4C20D022.2010504@squeakycode.net> <1277233984801-5210330.post@n2.nabble.com> Message-ID: <4C210CA0.2050208@squeakycode.net> On 6/22/2010 2:13 PM, mattmendick wrote: > > Thanks for the reply - where would you put this limit statement? I've tried > putting it in the DATA section, like so: > > DATA "wkb_geometry from (select * from parcels LIMIT 100) as subquery using > unique ogc_fid using srid=4326" > I was thinking this one... > > And none of these seem to work - am I putting the limit statement in the > right spot? Bummer... I was only guessing, I have never tried it before, maybe the query get's re-written (appending where clauses and what not) and the limit gets lost. Sorry 'bout that. -Andy From Tom.Kralidis at ec.gc.ca Tue Jun 22 12:32:16 2010 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 22 Jun 2010 15:32:16 -0400 Subject: [mapserver-users] Re: Limiting the execution time of mapserver In-Reply-To: <4C210CA0.2050208@squeakycode.net> References: <1277218654936-5209173.post@n2.nabble.com> <4C20D022.2010504@squeakycode.net><1277233984801-5210330.post@n2.nabble.com> <4C210CA0.2050208@squeakycode.net> Message-ID: <DB58B7551932BF47AE1BF406D287C44401045465@OntExch3.ontario.int.ec.gc.ca> Another option is using WEB.METADATA.wfs_maxfeatures, which MapServer will truncate to when doing WFS GetFeature responses. This is then advertised in the WFS Capabilities XML (ows:Constraint name="DefaultMaxFeatures"). This also gets automagically passed to the underlying SQL statement, shapefile data fetch, etc., on WFS GetFeature. Thus you can use this to control output, so that the client never gets more than x features back. The client, in their WFS GetFeature requests, can then use the parameter startindex=n (where n is an integer of the start position of the result set) to page through the results accordingly. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Andy Colson > Sent: Tuesday, 22 June 2010 15:19 > To: mattmendick > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Re: Limiting the execution > time of mapserver > > On 6/22/2010 2:13 PM, mattmendick wrote: > > > > Thanks for the reply - where would you put this limit > statement? I've > > tried putting it in the DATA section, like so: > > > > DATA "wkb_geometry from (select * from parcels LIMIT 100) > as subquery > > using unique ogc_fid using srid=4326" > > > > I was thinking this one... > > > > > > And none of these seem to work - am I putting the limit > statement in > > the right spot? > > Bummer... I was only guessing, I have never tried it before, > maybe the query get's re-written (appending where clauses and > what not) and the limit gets lost. Sorry 'bout that. > > -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Weisbend at wapa.gov Tue Jun 22 15:46:04 2010 From: Weisbend at wapa.gov (Eric Weisbender) Date: Tue, 22 Jun 2010 16:46:04 -0600 Subject: [mapserver-users] Query data in tileindex problem Message-ID: <4C20E8CC020000DF0005D4CC@10.1.50.131> I'm drawing county parcel data using a tileindex layer definition that points to the parcel polys. When I Query a parcel I get the following error. Failed to draw layer named 'parcel' msDBFReadAttribute(): DBASE file error. Invalid field index 0. We just upgraded to Mapserver 5.6.3 from 4.10 where it was working fine. Any help or ideas would be greatly appreciated. Thanks, EW -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100622/0ba569bd/attachment.htm> From pramsey at cleverelephant.ca Tue Jun 22 15:53:03 2010 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 22 Jun 2010 15:53:03 -0700 Subject: [mapserver-users] Query data in tileindex problem In-Reply-To: <4C20E8CC020000DF0005D4CC@10.1.50.131> References: <4C20E8CC020000DF0005D4CC@10.1.50.131> Message-ID: <AANLkTilA0d4BTZtwiAxAui_zZo2dWO8ZNpgw8KPZpaLU@mail.gmail.com> Perhaps there's an actual fix someone else knows about, I have only a comment: * If you were using tileindexes as a performance boost, you can move to a single unified shapefile, since the performance issues that used to require tileindexes as a workaround were removed in 5.4. Best, P On Tue, Jun 22, 2010 at 3:46 PM, Eric Weisbender <Weisbend at wapa.gov> wrote: > I'm drawing county parcel data using a tileindex layer definition that > points to the parcel polys.? When I Query a parcel I get the following > error.? Failed to draw layer named 'parcel' msDBFReadAttribute(): DBASE file > error. Invalid field index 0.? We just upgraded to Mapserver 5.6.3 from 4.10 > where it was working fine.? Any help or ideas would be greatly appreciated. > > Thanks, > EW > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From javier.abadia at ti.eptisa.com Wed Jun 23 04:02:35 2010 From: javier.abadia at ti.eptisa.com (javier.abadia at ti.eptisa.com) Date: Wed, 23 Jun 2010 13:02:35 +0200 Subject: [mapserver-users] Decimal places truncation OracleSpatial -> Mapserver -> WFS Message-ID: <OFB78BA1E2.1088A0CB-ONC125774B.003BBB08-C125774B.003CA584@ti.eptisa.com> Hi, We have a Mapserver configured to serve features coming from OracleSpatial through WFS. The problem is that the coordinates in the GML contain only 6 decimal digits whereas the orignal data has 14 digit of precision. Where are we losing these digits? Is there a configuration parameter that allows me to specify how many digits we want to retrive from Oracle or output to WFS? Best Regards, AVISO DE CAMBIO DE NOMBRE DE DOMINIO. Sitesa es ahora Eptisa Tecnolog?as de la Informaci?n. Debido a que nuestras direcciones de correo electr?nico y p?gina Web han cambiado, ruego sustituya mi anterior direcci?n de correo electr?nico de Sitesa, con la del presente mensaje. Muchas gracias. P Antes de imprimir este e-mail piense bien si es necesario hacerlo. Advertencia importante Este mensaje contiene informaci?n confidencial y/o privilegiada. Si usted no es el destinatario o una persona expresamente autorizada por el destinatario para recibir este mensaje no debe utilizar, copiar, reenviar, distribuir o, en general, disponer en ninguna forma de la informaci?n incluida en el mismo. Si hubiera recibido este mensaje por error, rogamos informe al emisor en tal sentido mediante una respuesta inmediata y b?rrelo, por favor. Muchas gracias. Important notice This message contains confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, forward, disclose or take any action based on this message or any information herein. If you receive this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From nikos at maich.gr Wed Jun 23 06:21:30 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 23 Jun 2010 16:21:30 +0300 (EEST) Subject: [mapserver-users] Joins and classification In-Reply-To: <20100623110334.9C27EE01C08@lists.osgeo.org> References: <20100623110334.9C27EE01C08@lists.osgeo.org> Message-ID: <3999.193.218.36.79.1277299290.squirrel@193.218.36.79> Hello all, I was wondering if I could get some advice on how to go about the following. I have a running MS application displaying some maps, w/ data in postgis. Via a form a user can set some data and run an econometric model, which ultimately spits out a csv with objectid (polygons), an analysis value and whatever else I may need (session id, user etc.). I would then like to redisplay the map, re-classified on these new analysis values. In the past I was doing updating the shapefile dbf, adding a whole column at a time. While this was ok for a proof of concept, it would not scale well (at all), and I am looking to move to multiple users, sessions etc. I can do an sql or an ogr join on the postgres attribute table, and the csv on objectid with the users id, session, value etc. I am not sure as how to go about the rest. 1. Reading up on joins the docs say they are not for affecting the look of the map, but more for the results of a query... 2. Does MS and postgis support views in the layer definition. I believe not 3. Should I be looking at filters??? Using MS 5.7-dev would appreciate any feedback, regards, nikos From Matthias_Mueller at tu-dresden.de Wed Jun 23 06:42:47 2010 From: Matthias_Mueller at tu-dresden.de (=?ISO-8859-1?Q?Matthias_M=FCller?=) Date: Wed, 23 Jun 2010 15:42:47 +0200 Subject: [mapserver-users] Joins and classification In-Reply-To: <3999.193.218.36.79.1277299290.squirrel@193.218.36.79> References: <20100623110334.9C27EE01C08@lists.osgeo.org> <3999.193.218.36.79.1277299290.squirrel@193.218.36.79> Message-ID: <4C220F57.8090904@tu-dresden.de> Quick answer for question #2: DATA "geom FROM (SELECT geom AS geom, id AS id, traffic_mb AS traffic_mb FROM traffic) AS new_table USING srid=4326 USING unique id" You have to put the results from your SELECT statement (issued on the view) into a new table. Cheers, Matthias Am 23.06.2010 15:21, schrieb nikos at maich.gr: > Hello all, > > I was wondering if I could get some advice on how to go about the following. > > I have a running MS application displaying some maps, w/ data in postgis. > Via a form a user can set some data and run an econometric model, which > ultimately spits out a csv with objectid (polygons), an analysis value > and whatever else I may need (session id, user etc.). > > I would then like to redisplay the map, re-classified on these new > analysis values. > > In the past I was doing updating the shapefile dbf, adding a whole column > at a time. > > While this was ok for a proof of concept, it would not scale well (at > all), and I am looking to move to multiple users, sessions etc. > > I can do an sql or an ogr join on the postgres attribute table, and the csv > on objectid with the users id, session, value etc. > > I am not sure as how to go about the rest. > > 1. Reading up on joins the docs say they are not for affecting the look of > the map, but more > for the results of a query... > > 2. Does MS and postgis support views in the layer definition. I believe not > > 3. Should I be looking at filters??? > > Using MS 5.7-dev > > would appreciate any feedback, > > regards, > nikos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alewin at spatialconserve.com Wed Jun 23 08:34:54 2010 From: alewin at spatialconserve.com (Andrew Lewin) Date: Wed, 23 Jun 2010 11:34:54 -0400 Subject: [mapserver-users] Adding an online map to wordpress Message-ID: <BLU0-SMTP189673958841DC3C787DE8EDC50@phx.gbl> Dear Listers, I am completely new to Mapserver. I would like to create an online, interactive map on a wordpress site. How would I go about doing this? Do I require apache server? I am hosting the wordpress site through godaddy.com, does this matter? Your help is much appreciated. Best, Andrew Andrew Lewin, M.Sc., Adv. Dipl. GIS President Spatial-Conserve Inc. www.spatialconserve.com Email: alewin at spatialconserve.com Tel: (905) 639-4646 Mobile: (905) 630-8441 Skype: andrew.lewin99 Follow me on Twitter: www.twitter.com/arlewin From psorey at comcast.net Wed Jun 23 10:55:18 2010 From: psorey at comcast.net (Paul Sorey) Date: Wed, 23 Jun 2010 10:55:18 -0700 Subject: [mapserver-users] Adding an online map to wordpress In-Reply-To: <BLU0-SMTP189673958841DC3C787DE8EDC50@phx.gbl> References: <BLU0-SMTP189673958841DC3C787DE8EDC50@phx.gbl> Message-ID: <4C224A86.1080104@comcast.net> Andrew, I did something similar and had to set up a VPS, virtual private server, on Slicehost.com. Shared hosting like GoDaddy will not allow you to put mapserver software on their server. I can point you to the resources I used if that will help. Paul Sorey On 6/23/2010 8:34 AM, Andrew Lewin wrote: > Dear Listers, > > I am completely new to Mapserver. I would like to create an online, interactive map on a wordpress site. How would I go about doing this? Do I require apache server? I am hosting the wordpress site through godaddy.com, does this matter? > > Your help is much appreciated. > > Best, > > Andrew > > Andrew Lewin, M.Sc., Adv. Dipl. GIS > President > Spatial-Conserve Inc. > www.spatialconserve.com > Email: alewin at spatialconserve.com > Tel: (905) 639-4646 > Mobile: (905) 630-8441 > Skype: andrew.lewin99 > Follow me on Twitter: www.twitter.com/arlewin > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From KMorrison at advantrack.com Wed Jun 23 11:29:37 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 23 Jun 2010 13:29:37 -0500 Subject: [mapserver-users] RE: MySQL data In-Reply-To: <A7F7B3043D3BF0438F1206BAA3C9933C0295303450@MNMAIL05.ead.state.mn.us> References: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> <A7F7B3043D3BF0438F1206BAA3C9933C0295303450@MNMAIL05.ead.state.mn.us> Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7B4@mail1.advantrack.local> Thanks for the reply. Below is the information used to generate tiles from TigerLine data for 1 county.. The tiles are generated but the perfomance is excutiatinly slow. This is a test set of data. I guess what I need is some guidance on using mapserver with MySQL and how to optimize the performance. Ultimately my tables will contain millions of rows of data pulled from difference sources. Versions: Mysql: 5.1.41 Mapserver: using MS4W is version 3.0 beta 11 install Access method: ? (see map file text below) Spacial data: MySQL geometries Map File: MAP IMAGETYPE AGG SIZE 256 256 SHAPEPATH "/mapdata/shapefiles" IMAGECOLOR 255 255 255 TRANSPARENT ON FONTSET "../fonts/fonts.list" EXTENT -95.909985 29.523624 -95.014496 30.110732 CONFIG PROJ_LIB "c:\ms4w\proj\nad\" CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors.txt" DEBUG 2 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END #Outputformat LAYER DEBUG ON NAME roads STATUS ON CONNECTIONTYPE OGR CONNECTION "MYSQL:revgeotest,host=tws1r-tj,user=*****,password=*****,port=3306,tables=tl_2009_48201_edges" DATA "SELECT SHAPE as the_geom, fullname FROM tl_2009_48201_edges" TYPE LINE CLASS STYLE COLOR 0 0 0 WIDTH 8 END #Style END #End Class END #layer END #Map -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, June 18, 2010 8:39 AM To: Kent Morrison; 'mapserver-users at lists.osgeo.org' Subject: RE: MySQL data Hi Kent: Probably need more information regarding: - versions - access method (are you using GDAL?) - what type of spatial data (MySQL geometries vs points in x/y columns) - etc... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison [KMorrison at advantrack.com] Sent: Thursday, June 17, 2010 2:13 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] MySQL data I have data stored in MySQL. When I configure the map file to pull from a small subset of the data, tiles are generated correctly. If I change the map file to point to the larger master table, map server returns "CGI Timeout". I dont't really want to breakdown the master data table into hundreds of smaller tables. I need additional informaiton and/or suggestions on how to get mapserver to work with millions of rows of data in MySQL. Kent W. Morrison Software Development Manager Advanced Tracking Technologies, Inc. 6001 Savoy, Suite 600, Houston Texas 77036 (W) 713-353-6065 (C) 832-434-8175 <mailto:kmorrison at advantrack.com> From pramsey at opengeo.org Wed Jun 23 11:43:42 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Wed, 23 Jun 2010 11:43:42 -0700 Subject: [mapserver-users] RE: MySQL data In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7B4@mail1.advantrack.local> References: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> <A7F7B3043D3BF0438F1206BAA3C9933C0295303450@MNMAIL05.ead.state.mn.us> <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7B4@mail1.advantrack.local> Message-ID: <AANLkTino9o1Js1qU9Kjt56gU6UGWEGtxVM_L1bbIcXH2@mail.gmail.com> Did you create spatial indexes on your MySQL tables? On Wed, Jun 23, 2010 at 11:29 AM, Kent Morrison <KMorrison at advantrack.com> wrote: > Thanks for the reply. > > Below is the information used to generate tiles from TigerLine data for 1 county.. The tiles are generated but the perfomance is excutiatinly slow. This is a test set of data. > > I guess what I need is some guidance on using mapserver with MySQL and how to optimize the performance. Ultimately my tables will contain millions of rows of data pulled from difference sources. > > > > Versions: > Mysql: 5.1.41 > Mapserver: using ?MS4W is version 3.0 beta 11 ?install > > Access method: ? (see map file text below) > > Spacial data: MySQL geometries > > Map File: > MAP > > ?IMAGETYPE ? ? ?AGG > ?SIZE ? ? ? ? ? 256 256 > ?SHAPEPATH ? ? ?"/mapdata/shapefiles" > ?IMAGECOLOR ? ? 255 255 255 > ?TRANSPARENT ? ?ON > ?FONTSET ? ? ? ?"../fonts/fonts.list" > > ?EXTENT -95.909985 29.523624 -95.014496 30.110732 > > ?CONFIG PROJ_LIB "c:\ms4w\proj\nad\" > > > CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors.txt" > DEBUG 2 > > ?PROJECTION > ? ? "init=epsg:4326" > ?END > > ?OUTPUTFORMAT > ? ?NAME 'AGG' > ? ?DRIVER AGG/PNG > ? ?IMAGEMODE RGB > ?END #Outputformat > > ?LAYER > ? ?DEBUG ON > > ? ?NAME ? ? ? ?roads > ? ?STATUS ? ? ?ON > ? ?CONNECTIONTYPE OGR > > ? ?CONNECTION ?"MYSQL:revgeotest,host=tws1r-tj,user=*****,password=*****,port=3306,tables=tl_2009_48201_edges" > ? ?DATA ? ? ? ?"SELECT SHAPE as the_geom, fullname FROM tl_2009_48201_edges" > > ? ?TYPE ? ? ? ?LINE > > ? CLASS > ? ? ? ?STYLE > ? ? ? ? ? ? ? ?COLOR ? 0 0 0 > ? ? ? ? ? ? ? ?WIDTH ? 8 > ? ? ? ?END #Style > ? ?END #End Class > > ?END #layer > > > > END #Map > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, June 18, 2010 8:39 AM > To: Kent Morrison; 'mapserver-users at lists.osgeo.org' > Subject: RE: MySQL data > > Hi Kent: Probably need more information regarding: > > ?- versions > ?- access method (are you using GDAL?) > ?- what type of spatial data (MySQL geometries vs points in x/y columns) > ?- etc... > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison [KMorrison at advantrack.com] > Sent: Thursday, June 17, 2010 2:13 PM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] MySQL data > > I have data stored in MySQL. When I configure the map file to pull from a small subset of the data, tiles are generated correctly. If I change the map file to point to the larger master table, map server returns "CGI Timeout". I dont't really want to breakdown the master data table into hundreds of smaller tables. I need additional informaiton and/or suggestions on how to get mapserver to work with millions of rows of data in MySQL. > > Kent W. Morrison > Software Development Manager > Advanced Tracking Technologies, Inc. > 6001 Savoy, Suite 600, Houston Texas 77036 > (W) 713-353-6065 (C) 832-434-8175 > <mailto:kmorrison at advantrack.com> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alewin at spatialconserve.com Wed Jun 23 11:44:37 2010 From: alewin at spatialconserve.com (Andrew Lewin) Date: Wed, 23 Jun 2010 14:44:37 -0400 Subject: [mapserver-users] HTML Templates Message-ID: <BLU0-SMTP35573D07B2873E4560BF1EEDC50@phx.gbl> Hi Listers, I am trying to learn MapServe as a beginner and I am having lots of trouble with the fundamentals of setting up the program. I am running Mac OSX Snow Leopard with Apache. According to my httpd-conf file, my document root is /usr/local/apache2/htdocs/ ; however, when I use the tutorial data the files need to be in my root directory i.e. /ws4w/etc... I thought that all the data had to be in the document root. Can someone explain this to me please? Another problem I am having...I bought the book "Beginning Mapserver: Open Source GIS Development". The first simple example is a "Hello World" example. The program starts off with a "Click Me" botton and a broken image. When you click on the button, it is supposed to show the "Hello World" text. When I click, I get an error like this: "msLoadMap(): Premature End-of-File." Below are the two files that I used for the program" Hello.html <html> <head><title>MapServer Hello World
Hello.map # This is our "Hello World" maple NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "http://192.168.2.12/~andrewlewin/hello.html" IMAGEPATH "/usr/local/apache2/htdocs/" IMAGEURL "/tmp/" END The book suggests that I should Configure MapServer and Apache like this: shapes: mkdir /home/mapdata chown nobody:nobody /home/mapdata chmod u+rx /home/mapdata images: mkdir /var/www/htdocs/tmp chown nobody:nobody /var/www/htdocs/tmp chmod u+rx /var/www/htdocs/tmp The problem is that when I try to run these commands, I get a "Permission denied" error. How can I get permission to do this. I remember when I was installing the various components from binaries that there was a command to ask me for my password before I did anything to the directory, but I forgot. Can anyone tell me? Sorry for posting all this at once. I believe once I figure out these problems I will be able to move on. Thanks, Andrew Andrew Lewin, M.Sc., Adv. Dipl. GIS President Spatial-Conserve Inc. www.spatialconserve.com Email: alewin at spatialconserve.com Tel: (905) 639-4646 Mobile: (905) 630-8441 Skype: andrew.lewin99 Follow me on Twitter: www.twitter.com/arlewin From KMorrison at advantrack.com Wed Jun 23 11:50:50 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Wed, 23 Jun 2010 13:50:50 -0500 Subject: [mapserver-users] RE: MySQL data In-Reply-To: References: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7AF@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7B4@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7B5@mail1.advantrack.local> Yes. The SHAPE field is indexed. I looked at the FILTER statement but not sure how I can implement that. All the examples I've seen for FILTER have static values. -----Original Message----- From: pramsey at cleverelephant.ca [mailto:pramsey at cleverelephant.ca] On Behalf Of Paul Ramsey Sent: Wednesday, June 23, 2010 1:44 PM To: Kent Morrison Cc: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: MySQL data Did you create spatial indexes on your MySQL tables? On Wed, Jun 23, 2010 at 11:29 AM, Kent Morrison wrote: > Thanks for the reply. > > Below is the information used to generate tiles from TigerLine data for 1 county.. The tiles are generated but the perfomance is excutiatinly slow. This is a test set of data. > > I guess what I need is some guidance on using mapserver with MySQL and how to optimize the performance. Ultimately my tables will contain millions of rows of data pulled from difference sources. > > > > Versions: > Mysql: 5.1.41 > Mapserver: using ?MS4W is version 3.0 beta 11 ?install > > Access method: ? (see map file text below) > > Spacial data: MySQL geometries > > Map File: > MAP > > ?IMAGETYPE ? ? ?AGG > ?SIZE ? ? ? ? ? 256 256 > ?SHAPEPATH ? ? ?"/mapdata/shapefiles" > ?IMAGECOLOR ? ? 255 255 255 > ?TRANSPARENT ? ?ON > ?FONTSET ? ? ? ?"../fonts/fonts.list" > > ?EXTENT -95.909985 29.523624 -95.014496 30.110732 > > ?CONFIG PROJ_LIB "c:\ms4w\proj\nad\" > > > CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors.txt" > DEBUG 2 > > ?PROJECTION > ? ? "init=epsg:4326" > ?END > > ?OUTPUTFORMAT > ? ?NAME 'AGG' > ? ?DRIVER AGG/PNG > ? ?IMAGEMODE RGB > ?END #Outputformat > > ?LAYER > ? ?DEBUG ON > > ? ?NAME ? ? ? ?roads > ? ?STATUS ? ? ?ON > ? ?CONNECTIONTYPE OGR > > ? ?CONNECTION ?"MYSQL:revgeotest,host=tws1r-tj,user=*****,password=*****,port=3306,tables=tl_2009_48201_edges" > ? ?DATA ? ? ? ?"SELECT SHAPE as the_geom, fullname FROM tl_2009_48201_edges" > > ? ?TYPE ? ? ? ?LINE > > ? CLASS > ? ? ? ?STYLE > ? ? ? ? ? ? ? ?COLOR ? 0 0 0 > ? ? ? ? ? ? ? ?WIDTH ? 8 > ? ? ? ?END #Style > ? ?END #End Class > > ?END #layer > > > > END #Map > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, June 18, 2010 8:39 AM > To: Kent Morrison; 'mapserver-users at lists.osgeo.org' > Subject: RE: MySQL data > > Hi Kent: Probably need more information regarding: > > ?- versions > ?- access method (are you using GDAL?) > ?- what type of spatial data (MySQL geometries vs points in x/y > columns) > ?- etc... > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kent Morrison > [KMorrison at advantrack.com] > Sent: Thursday, June 17, 2010 2:13 PM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] MySQL data > > I have data stored in MySQL. When I configure the map file to pull from a small subset of the data, tiles are generated correctly. If I change the map file to point to the larger master table, map server returns "CGI Timeout". I dont't really want to breakdown the master data table into hundreds of smaller tables. I need additional informaiton and/or suggestions on how to get mapserver to work with millions of rows of data in MySQL. > > Kent W. Morrison > Software Development Manager > Advanced Tracking Technologies, Inc. > 6001 Savoy, Suite 600, Houston Texas 77036 > (W) 713-353-6065 (C) 832-434-8175 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ml at lingner.eu Wed Jun 23 12:38:37 2010 From: ml at lingner.eu (Lars Lingner) Date: Wed, 23 Jun 2010 21:38:37 +0200 Subject: [mapserver-users] HTML Templates In-Reply-To: References: Message-ID: <4C2262BD.20708@lingner.eu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 23.06.2010 20:44, schrieb Andrew Lewin: > Hi Listers, > > I am trying to learn MapServe as a beginner and I am having lots of trouble with the fundamentals of setting up the program. I am running Mac OSX Snow Leopard with Apache. > I'm not familiar with OSX but I hope to be at least of some help. > According to my httpd-conf file, my document root is /usr/local/apache2/htdocs/ ; however, when I use the tutorial data the files need to be in my root directory i.e. /ws4w/etc... I thought that all the data had to be in the document root. Can someone explain this to me please? > In your htdocs folder you have to place everything which should be delivered by your webserver, in this case apache. So here you place any html or php files you need for your application as well as icons or images you need. When you put files in here make sure apache can read them. Its usually a good idea to make apache own the files. Then you have your mapserver application staying in a directory configured for cgi applications, like mapserver is. In the end mapserver can be called by an URL like this: http://server.tld/cgi-bin/mapserv Configuration files for almost all applications stay in /etc, so for apache its /etc/apache2. There is also the configuration where the cgi directory and your document root is configured. To build an mapserver application you need a mapfile and some data you want to show. You don't want to put this in your document root, because then these files would be accessible by anyone. If you are using an mapserver version > 5.0 then you need obey some rules which are described in [1]. Basically your mapfile has to start with the keyword MAP > Another problem I am having...I bought the book "Beginning Mapserver: Open Source GIS Development". The first simple example is a "Hello World" example. The program starts off with a "Click Me" botton and a broken image. When you click on the button, it is supposed to show the "Hello World" text. When I click, I get an error like this: "msLoadMap(): Premature End-of-File." Below are the two files that I used for the program" > premature end of file means that something with your mapfile is wrong. Could be a missing quote, a missing keyword... Maybe the examples in the book are a little old (I don't know this tutorial). You can take a look at the tutorials on the mapserver website [2] > Hello.html > > MapServer Hello World > > > > > value="/usr/local/apache2/htdocs/"> > > > > > Put this html file in your document root. OR It looks like you can also use an public_html folder in your home directory. Maybe I'm wrong here, but this would work on debian and ubuntu, if apache is configured with mod_userdir. Try this: > Hello.map > # This is our "Hello World" maple MAP NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "http://192.168.2.12/~andrewlewin/hello.html" IMAGEPATH "/home/andrewlewin/public_html/" IMAGEURL "/~andrewlewin/tmp/" END END (Thats the shortest mapfile I've ever seen, but it that doesn't mean its wrong) > > The book suggests that I should Configure MapServer and Apache like this: > shapes: > mkdir /home/mapdata > chown nobody:nobody /home/mapdata > chmod u+rx /home/mapdata > Maybe its better to stay in you home directory: mkdir /home/andrewlewin/mapdata chown nobody:nobody /home/andrewlewin/mapdata chmod u+rx /home/andrewlewin/mapdata If apache is not configured with user and group nobody you need to change nobody:nobody to the right : > images: > mkdir /var/www/htdocs/tmp > chown nobody:nobody /var/www/htdocs/tmp > chmod u+rx /var/www/htdocs/tmp You can probably use also an directory underneath you home. mkdir /home/andrewlewin/public_html/tmp chown nobody:nobody /home/andrewlewin/public_html/tmp chmod u+rx /home/andrewlewin/public_html/tmp > > The problem is that when I try to run these commands, I get a "Permission denied" error. How can I get permission to do this. The error means your user account don't have permissions to create the directory. Use a user which has the permission or place the directory in you home. I remember when I was installing the various components from binaries that there was a command to ask me for my password before I did anything to the directory, but I forgot. Can anyone tell me? > > Sorry for posting all this at once. I believe once I figure out these problems I will be able to move on. > Good luck. To setup such an environment the very first time looks always complicated. But when you have it running you will see that everything fits well together ;) If there are any further questions, let this list know. Lars [1] http://mapserver.org/development/rfc/ms-rfc-56.html [2] http://mapserver.org/tutorial/index.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwiYr0ACgkQ0GRF77ebR/k30ACdGN/C8ceTX1JtOJUe7kw89qfW CHYAn17eUvOhBSt/QKVk4JLXbs9KnrfW =snkp -----END PGP SIGNATURE----- From bryanhempen at gmx.de Thu Jun 24 07:36:48 2010 From: bryanhempen at gmx.de (Bryan Hempen) Date: Thu, 24 Jun 2010 16:36:48 +0200 Subject: [mapserver-users] Mapserver + KML-File Problem Message-ID: <4C236D80.4020709@gmx.de> hi there! i have trouble displaying point of interests from a KML file. i followed the description on http://mapserver.org/input/vector/kml.html http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i want to display the data, the template is located at http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html this is the content of the mapfile: MAP NAME 'Gastronomapkarte' STATUS ON #EXTENT 3427065.200000 5788323.530000 3443999.370000 5800691.660000 #EXTENT 7.9189 52.2102 8.1716 52.3467 EXTENT 880000 6840000 915000 6860000 IMAGECOLOR 255 255 255 SIZE 700 700 SYMBOLSET 'symbols/symbols.sym' FONTSET 'fonts/fonts.list' WEB TEMPLATE 'template.html' IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/' IMAGEURL '/~bhempen/routingtest/tmp/' METADATA 'WMS_TITLE' 'Firmen' 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' 'WMS_ONLINERESOURCE' 'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 'WMS_SRS' "EPSG:900913" END END PROJECTION 'init=epsg:900913' END LAYER NAME Firmen TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "Firmen.kml" DATA "Firmen" LABELITEM "NAME" CLASS NAME "My Places" STYLE COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 10 END LABEL SIZE TINY COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION AUTO END END END END idea anyone? From bryanhempen at gmx.de Thu Jun 24 07:37:04 2010 From: bryanhempen at gmx.de (Bryan Hempen) Date: Thu, 24 Jun 2010 16:37:04 +0200 Subject: [mapserver-users] Mapserver + KML-File Problem Message-ID: <4C236D90.3000304@gmx.de> hi there! i have trouble displaying point of interests from a KML file. i followed the description on http://mapserver.org/input/vector/kml.html http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i want to display the data, the template is located at http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html this is the content of the mapfile: MAP NAME 'Gastronomapkarte' STATUS ON #EXTENT 3427065.200000 5788323.530000 3443999.370000 5800691.660000 #EXTENT 7.9189 52.2102 8.1716 52.3467 EXTENT 880000 6840000 915000 6860000 IMAGECOLOR 255 255 255 SIZE 700 700 SYMBOLSET 'symbols/symbols.sym' FONTSET 'fonts/fonts.list' WEB TEMPLATE 'template.html' IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/' IMAGEURL '/~bhempen/routingtest/tmp/' METADATA 'WMS_TITLE' 'Firmen' 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' 'WMS_ONLINERESOURCE' 'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 'WMS_SRS' "EPSG:900913" END END PROJECTION 'init=epsg:900913' END LAYER NAME Firmen TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "Firmen.kml" DATA "Firmen" LABELITEM "NAME" CLASS NAME "My Places" STYLE COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 10 END LABEL SIZE TINY COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION AUTO END END END END idea anyone? thanks for the help. greets Bryan Hempen From HWIRTH at co.benton.mn.us Thu Jun 24 09:01:27 2010 From: HWIRTH at co.benton.mn.us (Heather Wirth) Date: Thu, 24 Jun 2010 11:01:27 -0500 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 29, Issue 40 (Out of Office) Message-ID: I will be out of the office until June 28, 2010. >>> mapserver-users 06/24/10 11:00 >>> 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. Mapserver + KML-File Problem (Bryan Hempen) 2. Mapserver + KML-File Problem (Bryan Hempen) ---------------------------------------------------------------------- Message: 1 Date: Thu, 24 Jun 2010 16:36:48 +0200 From: Bryan Hempen Subject: [mapserver-users] Mapserver + KML-File Problem To: mapserver-users at lists.osgeo.org Message-ID: <4C236D80.4020709 at gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed hi there! i have trouble displaying point of interests from a KML file. i followed the description on http://mapserver.org/input/vector/kml.html http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i want to display the data, the template is located at http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html this is the content of the mapfile: MAP NAME 'Gastronomapkarte' STATUS ON #EXTENT 3427065.200000 5788323.530000 3443999.370000 5800691.660000 #EXTENT 7.9189 52.2102 8.1716 52.3467 EXTENT 880000 6840000 915000 6860000 IMAGECOLOR 255 255 255 SIZE 700 700 SYMBOLSET 'symbols/symbols.sym' FONTSET 'fonts/fonts.list' WEB TEMPLATE 'template.html' IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/' IMAGEURL '/~bhempen/routingtest/tmp/' METADATA 'WMS_TITLE' 'Firmen' 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' 'WMS_ONLINERESOURCE' 'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 'WMS_SRS' "EPSG:900913" END END PROJECTION 'init=epsg:900913' END LAYER NAME Firmen TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "Firmen.kml" DATA "Firmen" LABELITEM "NAME" CLASS NAME "My Places" STYLE COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 10 END LABEL SIZE TINY COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION AUTO END END END END idea anyone? ------------------------------ Message: 2 Date: Thu, 24 Jun 2010 16:37:04 +0200 From: Bryan Hempen Subject: [mapserver-users] Mapserver + KML-File Problem To: mapserver-users at lists.osgeo.org Message-ID: <4C236D90.3000304 at gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed hi there! i have trouble displaying point of interests from a KML file. i followed the description on http://mapserver.org/input/vector/kml.html http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i want to display the data, the template is located at http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html this is the content of the mapfile: MAP NAME 'Gastronomapkarte' STATUS ON #EXTENT 3427065.200000 5788323.530000 3443999.370000 5800691.660000 #EXTENT 7.9189 52.2102 8.1716 52.3467 EXTENT 880000 6840000 915000 6860000 IMAGECOLOR 255 255 255 SIZE 700 700 SYMBOLSET 'symbols/symbols.sym' FONTSET 'fonts/fonts.list' WEB TEMPLATE 'template.html' IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/' IMAGEURL '/~bhempen/routingtest/tmp/' METADATA 'WMS_TITLE' 'Firmen' 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' 'WMS_ONLINERESOURCE' 'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 'WMS_SRS' "EPSG:900913" END END PROJECTION 'init=epsg:900913' END LAYER NAME Firmen TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "Firmen.kml" DATA "Firmen" LABELITEM "NAME" CLASS NAME "My Places" STYLE COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 10 END LABEL SIZE TINY COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION AUTO END END END END idea anyone? thanks for the help. greets Bryan Hempen ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 29, Issue 40 *********************************************** From MarkVolz at co.lyon.mn.us Thu Jun 24 12:22:29 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 24 Jun 2010 14:22:29 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 29, Issue 39 In-Reply-To: <20100623193859.0F4D5E01D91@lists.osgeo.org> References: <20100623193859.0F4D5E01D91@lists.osgeo.org> Message-ID: <3D56274B4A7874468F58FADDBFD0980109424D67@llmhs02.r8nssis.local> Paul, We had discussed using a Virtual Host for hosting mapserver for a client. What are the resources that you are referring to in your message? Thanks Mark Volz GIS Specialist Lyon County, MN 507-532-8218 ---------------------------------------------------------------------- Message: 1 Date: Wed, 23 Jun 2010 10:55:18 -0700 From: Paul Sorey Subject: Re: [mapserver-users] Adding an online map to wordpress To: mapserver-users at lists.osgeo.org Message-ID: <4C224A86.1080104 at comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Andrew, I did something similar and had to set up a VPS, virtual private server, on Slicehost.com. Shared hosting like GoDaddy will not allow you to put mapserver software on their server. I can point you to the resources I used if that will help. Paul Sorey On 6/23/2010 8:34 AM, Andrew Lewin wrote: > Dear Listers, > > I am completely new to Mapserver. I would like to create an online, interactive map on a wordpress site. How would I go about doing this? Do I require apache server? I am hosting the wordpress site through godaddy.com, does this matter? > > Your help is much appreciated. > > Best, > > Andrew > > Andrew Lewin, M.Sc., Adv. Dipl. GIS > President > Spatial-Conserve Inc. > www.spatialconserve.com > Email: alewin at spatialconserve.com > Tel: (905) 639-4646 > Mobile: (905) 630-8441 > Skype: andrew.lewin99 > Follow me on Twitter: www.twitter.com/arlewin > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From psorey at comcast.net Thu Jun 24 14:16:54 2010 From: psorey at comcast.net (Paul Sorey) Date: Thu, 24 Jun 2010 14:16:54 -0700 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 29, Issue 39 In-Reply-To: <3D56274B4A7874468F58FADDBFD0980109424D67@llmhs02.r8nssis.local> References: <20100623193859.0F4D5E01D91@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD0980109424D67@llmhs02.r8nssis.local> Message-ID: <4C23CB46.60703@comcast.net> Mark, I signed up for a VPS at slicehost -- the smallest slice has been fine so far. I set up Debian Lenny Linux with Apache webserver with the aid of slicehost articles found here: http://wiki.slicehost.com/doku.php http://articles.slicehost.com/sitemap Ubuntu would also be a good choice for OS, I think. I used the debian distro of mapserver described here: http://packages.debian.org/source/lenny/mapserver. It's not the latest version (5.0.3) but works for me. One day I'll get around to compiling the latest distro for Debian. I'm using QuantumGIS on my PC to piece together the maps from GIS files, and exporting them via the mapfile exporter in QGIS. I wrote a ruby script to tweak the exported mapfile from QGIS to something usable for my mapserver implementation. The steepest learning curves were understanding the mapfile, template files, and mapscript. You will have to read through a lot of the documentation at: http://mapserver.org/documentation.html. You may not need to use mapscript, but I have found it useful. I'm using the Ruby implementation of mapscript SWIG. There's adequate documentation at the mapserver.org website and on the web in general for all but the Ruby implementation details, for which I had to dig into the source code. There's more documentation on the PHP implementation, but I'm using Ruby on Rails to manage everything on my site, so therefore chose the Ruby implementation. I also don't have much experience with CGI so I had to spend some time on that too. I'm using OpenLayers javascript as the user interface for mapserver. It took me a few days to get it working right. You have to set up your mapfiles to enable WMS, and set up the OpenLayers code just right to display them. The whole process took me several weeks of trial-and-error and study; now, of course, it seems easy! Paul Sorey Web Applications Consultant Landscape Architect Public Artist http://paulsorey.com 206 948 7285 On 6/24/2010 12:22 PM, Mark Volz wrote: > Paul, > > We had discussed using a Virtual Host for hosting mapserver for a client. > What are the resources that you are referring to in your message? > > > Thanks > > Mark Volz > GIS Specialist > Lyon County, MN > 507-532-8218 > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 23 Jun 2010 10:55:18 -0700 > From: Paul Sorey > Subject: Re: [mapserver-users] Adding an online map to wordpress > To: mapserver-users at lists.osgeo.org > Message-ID:<4C224A86.1080104 at comcast.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Andrew, > > I did something similar and had to set up a VPS, virtual private server, > on Slicehost.com. Shared hosting like GoDaddy will not allow you to put > mapserver software on their server. > > I can point you to the resources I used if that will help. > > Paul Sorey > > From jeff.dege at korterra.com Thu Jun 24 15:58:50 2010 From: jeff.dege at korterra.com (Jeff Dege) Date: Thu, 24 Jun 2010 17:58:50 -0500 Subject: [mapserver-users] Is there a problem with layers when serving WMS? Message-ID: I'm putting together a map via Mapserver and WMS (MapServer version 5.6.1 on Ubuntu 10.04), serving a set of shapefiles. The basic approach is to have a pair of layers for each class of highways - interstate, US highways, state highways, local roads, etc. One layer in each pair draws the geometry, the other draws the labels. In this way, the user can turn the labels on and off, as needed. I'm having a problem with highway labels showing up nowhere near where the highways are. At my outermost zoom, all I'm displaying is the major highway geometry and the interstate names. That works OK. When I zoom in a bit, to where I start displaying the US highway names, I see names all over the place, drawn where there are no geometries. I zoom in a bit more, and they go away. (I'm viewing this with Quantum GIS, loading the maps as WMS layers). To help track down what is going on, I took one of the names, did an "ogrinfo -where" to identify that there was, in fact, a featured with that name in the US highways shapefile. I then extracted just those features into a new shapefile, using ogr2ogr, and then loaded that as a vector layer in Quantum GIS. The aim was to find out where the feature that matched that name actually was. It was nowhere near the label. I set the new vector layer to draw in red, and it was easy to see. With a label from the WMS properly drawn alongside. But 75+ miles away, 600+ pixels across the map, was another label for that feature, nowhere near the feature it was supposed to be describing. I've never seen anything quite like this. But then, I'm just figuring out how to use mapserver to serve WMS. Are there any known "gotchas", when drawing label layers in WMS? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jun 25 04:08:01 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 25 Jun 2010 08:08:01 -0300 Subject: [mapserver-users] Is there a problem with layers when serving WMS? In-Reply-To: References: Message-ID: <4C248E11.2060306@gatewaygeomatics.com> Jeff, If I were you I would be degugging my mapfile with the shp2img commandline utility. You can read the usual debugging steps at: http://www.mapserver.org/optimization/debugging.html#step-5-test-your-mapfile Also, if you are having problems with scales, you might want to create a small mapfile with only that one problem scale (in other words remove all scale parameters from mapfile) and then test with shp2img to make sure your labels and features are drawn correctly. Then once you have shp2img working good (you can also pass different extents to the shp2img utility so that you can test your mapfile at different extents/scales) you should then start testing your WMS service. For testing a WMS service, the best way is to manually generate a GetCapabilities URL in a browser, verify its response is valid, then manually generate a GetMap URL in a browser for one layer. (this avoids any issues with WMS clients like QGIS). Once your manual URLs are working, then you can test in a WMS client, such as QGIS. (those debugging steps may be slow, but I do that for every WMS instance I set up) Have a great weekend. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Jeff Dege wrote: > I'm putting together a map via Mapserver and WMS (MapServer version > 5.6.1 on Ubuntu 10.04), serving a set of shapefiles. > > > > The basic approach is to have a pair of layers for each class of > highways - interstate, US highways, state highways, local roads, etc. > One layer in each pair draws the geometry, the other draws the labels. > In this way, the user can turn the labels on and off, as needed. > > > > I'm having a problem with highway labels showing up nowhere near where > the highways are. At my outermost zoom, all I'm displaying is the major > highway geometry and the interstate names. That works OK. > > > > When I zoom in a bit, to where I start displaying the US highway names, > I see names all over the place, drawn where there are no geometries. I > zoom in a bit more, and they go away. (I'm viewing this with Quantum > GIS, loading the maps as WMS layers). > > > > To help track down what is going on, I took one of the names, did an > "ogrinfo -where" to identify that there was, in fact, a featured with > that name in the US highways shapefile. I then extracted just those > features into a new shapefile, using ogr2ogr, and then loaded that as a > vector layer in Quantum GIS. The aim was to find out where the feature > that matched that name actually was. > > > > It was nowhere near the label. I set the new vector layer to draw in > red, and it was easy to see. With a label from the WMS properly drawn > alongside. But 75+ miles away, 600+ pixels across the map, was another > label for that feature, nowhere near the feature it was supposed to be > describing. > > > > I've never seen anything quite like this. But then, I'm just figuring > out how to use mapserver to serve WMS. > > > > Are there any known "gotchas", when drawing label layers in WMS? From Steve.Lime at state.mn.us Fri Jun 25 05:38:32 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 25 Jun 2010 07:38:32 -0500 Subject: [mapserver-users] HTML Templates In-Reply-To: References: Message-ID: Hi Andrew: In general the only things that need to be in your document root are graphics, scripts and pure HTML that will be directly accessible via a users browser. Assets like mapfiles, data, symbols and templates should be elsewhere. Those files will need to be accessible (readable) by the user the web server is running under but should not be owned by that user. The temp space for the images MapServer creates is also in document root but I consider that part of the overall setup and not a project component. That directory needs to be owned and writable by the user the web server runs as. I often setup a project like so: /project /data /mapfiles /templates /htdocs /javascript /images /html and then symlink the htdocs directory into document root. Could just copy it too. Your document root might look like: /htdocs/ /tmp (this is the MapServer temporary directory, owned by the user your httpd is running as) /project (this is a symlink to the main project's /htdocs directory) As for your example files. 1) In Hello.html, remove the hidden variable 'map-web-imagepath', it just confuses things. 2) In Hello.map, you're missing a closing END (which is why you see the error message you do). I believe if you add it you'll get the colored image you're expecting. Typically I indent all objects in mapfile to make it easier to debug: MAP ... map level attributes ... WEB ... web level attributes ... END LAYER ... layer level attributes ... END END As for the book. It's just a bit dated and can't adequately cover all platforms (and MacOS isn't one of them). At a minimum you'll need to use sudo most likely to run administrative commands. Hope this helps... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andrew Lewin [alewin at spatialconserve.com] Sent: Wednesday, June 23, 2010 1:44 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] HTML Templates Hi Listers, I am trying to learn MapServe as a beginner and I am having lots of trouble with the fundamentals of setting up the program. I am running Mac OSX Snow Leopard with Apache. According to my httpd-conf file, my document root is /usr/local/apache2/htdocs/ ; however, when I use the tutorial data the files need to be in my root directory i.e. /ws4w/etc... I thought that all the data had to be in the document root. Can someone explain this to me please? Another problem I am having...I bought the book "Beginning Mapserver: Open Source GIS Development". The first simple example is a "Hello World" example. The program starts off with a "Click Me" botton and a broken image. When you click on the button, it is supposed to show the "Hello World" text. When I click, I get an error like this: "msLoadMap(): Premature End-of-File." Below are the two files that I used for the program" Hello.html MapServer Hello World Hello.map # This is our "Hello World" maple NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "http://192.168.2.12/~andrewlewin/hello.html" IMAGEPATH "/usr/local/apache2/htdocs/" IMAGEURL "/tmp/" END The book suggests that I should Configure MapServer and Apache like this: shapes: mkdir /home/mapdata chown nobody:nobody /home/mapdata chmod u+rx /home/mapdata images: mkdir /var/www/htdocs/tmp chown nobody:nobody /var/www/htdocs/tmp chmod u+rx /var/www/htdocs/tmp The problem is that when I try to run these commands, I get a "Permission denied" error. How can I get permission to do this. I remember when I was installing the various components from binaries that there was a command to ask me for my password before I did anything to the directory, but I forgot. Can anyone tell me? Sorry for posting all this at once. I believe once I figure out these problems I will be able to move on. Thanks, Andrew Andrew Lewin, M.Sc., Adv. Dipl. GIS President Spatial-Conserve Inc. www.spatialconserve.com Email: alewin at spatialconserve.com Tel: (905) 639-4646 Mobile: (905) 630-8441 Skype: andrew.lewin99 Follow me on Twitter: www.twitter.com/arlewin _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mschulz at webgis.de Fri Jun 25 07:14:19 2010 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 25 Jun 2010 16:14:19 +0200 Subject: [mapserver-users] Can similar, nearly simultaenous requests disturb mapserver? Message-ID: Hi all, I have a slightly strange problem and would like some thoughts of the experts. I have a mapfile, that serves one layer that is connected to a wfs datasource (aka wfs client layer) as a wms layer. I have the problem that when doing two similar requests at nearly the same time, very often one request throws an error. Interestingly not always the same. In descending number of appearances: - "msDrawMap(): Image handling error. Failed to draw layer named ... msWFSLayerWhichShapes(): WFS connection error. WFS request produced no oputput for layer". - "msOGRLayerInitItemInfo(): OGR error. Invalid Field name: TYPE" - "msOGRFileNextShape(): OGR error. XML Parsing Error: The input ended before all started tags were ended. Last tag started was 'gml:coordinates'" The other request is always drawn correctly. To me it seems as if the downloaded gml-File is somehow shared between both requests, only allowing the "first" request to parse it correctly and to draw a map. I have reproduced this error with several mapserver versions, ranging from 5.2 up to 5.6. Thanks for any thoughts, Michael -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From christopher.schmidt at nokia.com Fri Jun 25 07:42:47 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Fri, 25 Jun 2010 16:42:47 +0200 Subject: [mapserver-users] Can similar, nearly simultaenous requests disturb mapserver? In-Reply-To: References: Message-ID: <4445A65A-88AA-4135-99DE-B465231D5984@nokia.com> On Jun 25, 2010, at 10:14 AM, ext Michael Schulz wrote: > Hi all, > > I have a slightly strange problem and would like some thoughts of the experts. > > I have a mapfile, that serves one layer that is connected to a wfs > datasource (aka wfs client layer) as a wms layer. I have the problem > that when doing two similar requests at nearly the same time, very > often one request throws an error. Interestingly not always the same. > In descending number of appearances: > > - "msDrawMap(): Image handling error. Failed to draw layer named ... > msWFSLayerWhichShapes(): WFS connection error. WFS request produced no > oputput for layer". > - "msOGRLayerInitItemInfo(): OGR error. Invalid Field name: TYPE" > - "msOGRFileNextShape(): OGR error. XML Parsing Error: The input ended > before all started tags were ended. Last tag started was > 'gml:coordinates'" > > The other request is always drawn correctly. To me it seems as if the > downloaded gml-File is somehow shared between both requests, only > allowing the "first" request to parse it correctly and to draw a map. > > I have reproduced this error with several mapserver versions, ranging > from 5.2 up to 5.6. You didn't mention how you have MapServer configured; is it as a CGI, via FastCGI, something else? In general, running mapserver + GDAL in a threaded environment may have some side effects, depending on how you're using them, so if you're using FastCGI + threads somehow, that could be bad. If you're not doing this, then I would argue this really sounds like a problem on the server you're connecting to; you might want to get a packet dump of the outgoing HTTP requests during this time, and see if you can determine what the server is returning. If you've been using the same backend server, the problem may well not be MapServer. Regards, -- Christopher Schmidt Nokia From mschulz at webgis.de Fri Jun 25 08:09:32 2010 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 25 Jun 2010 17:09:32 +0200 Subject: [mapserver-users] Can similar, nearly simultaenous requests disturb mapserver? In-Reply-To: <4445A65A-88AA-4135-99DE-B465231D5984@nokia.com> References: <4445A65A-88AA-4135-99DE-B465231D5984@nokia.com> Message-ID: Hi, thanks for the response, see inline ... 2010/6/25 : > > On Jun 25, 2010, at 10:14 AM, ext Michael Schulz wrote: > >> Hi all, >> >> I have a slightly strange problem and would like some thoughts of the experts. >> >> I have a mapfile, that serves one layer that is connected to a wfs >> datasource (aka wfs client layer) as a wms layer. I have the problem >> that when doing two similar requests at nearly the same time, very >> often one request throws an error. Interestingly not always the same. >> In descending number of appearances: >> >> - "msDrawMap(): Image handling error. Failed to draw layer named ?... >> msWFSLayerWhichShapes(): WFS connection error. WFS request produced no >> oputput for layer". >> - "msOGRLayerInitItemInfo(): OGR error. Invalid Field name: TYPE" >> - "msOGRFileNextShape(): OGR error. XML Parsing Error: The input ended >> before all started tags were ended. Last tag started was >> 'gml:coordinates'" >> >> The other request is always drawn correctly. To me it seems as if the >> downloaded gml-File is somehow shared between both requests, only >> allowing the "first" request to parse it correctly and to draw a map. >> >> I have reproduced this error with several mapserver versions, ranging >> from 5.2 up to 5.6. > > You didn't mention how you have MapServer configured; is it as a CGI, > via FastCGI, something else? In general, running mapserver + GDAL in a > threaded environment may have some side effects, depending on how you're > using them, so if you're using FastCGI + threads somehow, that could be > bad. sorry, I forgot that. I'm using plain mapserver cgi on a linux/debian system. > If you're not doing this, then I would argue this really sounds like a > problem on the server you're connecting to; you might want to get a > packet dump of the outgoing HTTP requests during this time, and see > if you can determine what the server is returning. If you've been > using the same backend server, the problem may well not be > MapServer. That is an interesting thought. I'll try to examine the returned packets from the remote wfs server. However, I have several installations on various servers, with exactly the same setup (well, running in vm's on different hosts, but the guest system is identical) and I think the problem is only occurring on "slower" machines. But thanks, for this pointer. I'll check that. Cheers, Michael -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From jeff.dege at korterra.com Fri Jun 25 08:19:57 2010 From: jeff.dege at korterra.com (Jeff Dege) Date: Fri, 25 Jun 2010 10:19:57 -0500 Subject: [mapserver-users] Is there a problem with layers when serving WMS? In-Reply-To: <4C248E11.2060306@gatewaygeomatics.com> References: <4C248E11.2060306@gatewaygeomatics.com> Message-ID: I loaded the map into an openlayers mapping website, zoomed until I saw the spurious labels. I then saved one of the 200x200 pixel tiles. I examined the saved tile, to confirm that the extra labels were present. Then I used the openlayers lat/lon tool to identify the corners of the saved tile. I ran shp2img to create an image with a matching size and extent, using version MapServer Version 4.8.4 on Windows, and then again using MapServer version 5.6.1 on Ubuntu. In both cases, the road geometry matched that of the tile I had saved. The labels, though, were very different. Using shp2img 4.8.4, the labels were closely aligned with the roads. Using shp2img 5.6.1, one of the labels was placed well away from the road feature that was associated with it, and one label appeared for a featured that didn't appear in the image at all. The label specification I'm using: LABEL COLOR 175 140 29 OUTLINECOLOR 239 233 242 TYPE TRUETYPE FONT vera-bold SIZE 6 ANTIALIAS TRUE ANGLE AUTO POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Friday, June 25, 2010 6:08 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Is there a problem with layers when serving WMS? Jeff, If I were you I would be degugging my mapfile with the shp2img commandline utility. You can read the usual debugging steps at: http://www.mapserver.org/optimization/debugging.html#step-5-test-your-mapfile Also, if you are having problems with scales, you might want to create a small mapfile with only that one problem scale (in other words remove all scale parameters from mapfile) and then test with shp2img to make sure your labels and features are drawn correctly. Then once you have shp2img working good (you can also pass different extents to the shp2img utility so that you can test your mapfile at different extents/scales) you should then start testing your WMS service. For testing a WMS service, the best way is to manually generate a GetCapabilities URL in a browser, verify its response is valid, then manually generate a GetMap URL in a browser for one layer. (this avoids any issues with WMS clients like QGIS). Once your manual URLs are working, then you can test in a WMS client, such as QGIS. (those debugging steps may be slow, but I do that for every WMS instance I set up) Have a great weekend. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Jeff Dege wrote: > I'm putting together a map via Mapserver and WMS (MapServer version > 5.6.1 on Ubuntu 10.04), serving a set of shapefiles. > > > > The basic approach is to have a pair of layers for each class of > highways - interstate, US highways, state highways, local roads, etc. > One layer in each pair draws the geometry, the other draws the labels. > In this way, the user can turn the labels on and off, as needed. > > > > I'm having a problem with highway labels showing up nowhere near where > the highways are. At my outermost zoom, all I'm displaying is the major > highway geometry and the interstate names. That works OK. > > > > When I zoom in a bit, to where I start displaying the US highway names, > I see names all over the place, drawn where there are no geometries. I > zoom in a bit more, and they go away. (I'm viewing this with Quantum > GIS, loading the maps as WMS layers). > > > > To help track down what is going on, I took one of the names, did an > "ogrinfo -where" to identify that there was, in fact, a featured with > that name in the US highways shapefile. I then extracted just those > features into a new shapefile, using ogr2ogr, and then loaded that as a > vector layer in Quantum GIS. The aim was to find out where the feature > that matched that name actually was. > > > > It was nowhere near the label. I set the new vector layer to draw in > red, and it was easy to see. With a label from the WMS properly drawn > alongside. But 75+ miles away, 600+ pixels across the map, was another > label for that feature, nowhere near the feature it was supposed to be > describing. > > > > I've never seen anything quite like this. But then, I'm just figuring > out how to use mapserver to serve WMS. > > > > Are there any known "gotchas", when drawing label layers in WMS? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jun 25 10:17:52 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 25 Jun 2010 14:17:52 -0300 Subject: [mapserver-users] MapServer.pdf In-Reply-To: References: Message-ID: <4C24E4C0.2020401@gatewaygeomatics.com> Paolo Corti wrote: > Hi > since some time (2 weeks?) the MapServer.pdf file at this link: > http://mapserver.org/MapServer.pdf seems to be invalid. > Can you fix this? > thanks a lot > Paolo > Sorry for this, it should now be fixed. (details/discussion at http://trac.osgeo.org/mapserver/ticket/3474) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfischer at houstoneng.com Fri Jun 25 10:52:51 2010 From: bfischer at houstoneng.com (Brian Fischer) Date: Fri, 25 Jun 2010 17:52:51 +0000 Subject: [mapserver-users] OSM renderer with MapServer Message-ID: Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? I'm interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. Ultimately turning this into a TMS using tilecache. Or would people recommend sticking with Mapnik's stylesheets to render the data into images? I did a few searches and only came across this. http://code.google.com/p/mapserver-utils/source/browse/trunk I'm new to OSM data so just starting to explore options. Any insight would be appreciated. Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.schmidt at nokia.com Fri Jun 25 11:25:19 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Fri, 25 Jun 2010 20:25:19 +0200 Subject: [mapserver-users] OSM renderer with MapServer In-Reply-To: References: Message-ID: <058B56D2-801E-4CDF-AF06-506432DFDD66@nokia.com> On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote: > Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? I?m interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. Ultimately turning this into a TMS using tilecache. Or would people recommend sticking with Mapnik?s stylesheets to render the data into images? I did a few searches and only came across this. http://code.google.com/p/mapserver-utils/source/browse/trunk I?m new to OSM data so just starting to explore options. > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as well; This is the mapfile that is used for the map on the homepage: http://mapserver.org/ So it's probably a safe starting point. Regards, -- Christopher Schmidt Nokia From jaisuvyas at gmail.com Sun Jun 27 06:59:13 2010 From: jaisuvyas at gmail.com (Jaisen) Date: Sun, 27 Jun 2010 19:29:13 +0530 Subject: [mapserver-users] ka-Map - Mapserver - Map display problem. Message-ID: Hi, I have ka-Map implementations in my Debian (Lenny) system, and were working pretty well. But after a system upgrade including mapserver, nothing is displayed in map window. The Coords are shown as: x: NaN y: NaN And inside the folders (for example): var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t0/l0/meta a blank text file is seen, named: lock_-40_-40 and inside the folder: /var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t-1640448/l9770496/meta another blank file is seen named: lock_-1640488_9770456 What exactly is this problem? Can anybody help me to resolve it? When I encountered this issue previously, I reinstalled the entire system to resolve. Now I want to know some other way to resolve this problem. Thanks in advance. -- ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ - ???????? - ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ (`'?.?(`'?.?^?.?'?)?.?'?) ???`?* . Jaisen . *..??`? (?.?'?(`'?.? ?.?'?)`'?.?) ?.??^.`'?.? ?.?'? ( `?.?`?.? `?.? )`?.? ?.?(? `?.? ?.?(.??)`?.? ( `v? ) `v? From woodbri at swoodbridge.com Sun Jun 27 10:03:54 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 27 Jun 2010 13:03:54 -0400 Subject: [mapserver-users] ka-Map - Mapserver - Map display problem. In-Reply-To: References: Message-ID: <4C27847A.9080102@swoodbridge.com> Jaisen, It would help to know what version of mapserver you are now running and what you were running before? You should also try something like: shp2img -m /path/to/your/mapfile.map -o junk.png and see if it reports any errors. Recent versions of mapserver have had a change for security purposes which now require most mapserver support files to have well know tags as the first line(s) of the support file. http://mapserver.org/development/rfc/ms-rfc-56.html -Steve W Jaisen wrote: > Hi, > > I have ka-Map implementations in my Debian (Lenny) system, and were > working pretty well. But after a system upgrade including mapserver, > nothing is displayed in map window. The Coords are shown as: x: NaN y: > NaN > > And inside the folders (for example): > > var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t0/l0/meta > > a blank text file is seen, named: > > lock_-40_-40 > > and inside the folder: > > /var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t-1640448/l9770496/meta > > another blank file is seen named: > > lock_-1640488_9770456 > > What exactly is this problem? Can anybody help me to resolve it? > > When I encountered this issue previously, I reinstalled the entire > system to resolve. Now I want to know some other way to resolve > this problem. > > Thanks in advance. > From jaisuvyas at gmail.com Sun Jun 27 19:33:56 2010 From: jaisuvyas at gmail.com (Jaisen) Date: Mon, 28 Jun 2010 08:03:56 +0530 Subject: [mapserver-users] ka-Map - Mapserver - Map display problem. In-Reply-To: References: <4C27847A.9080102@swoodbridge.com> Message-ID: On 27 June 2010 22:33, Stephen Woodbridge wrote: > Jaisen, > > It would help to know what version of mapserver you are now running and what > you were running before? > Now Version 5.6.3-1. The same available in the gfoss.itc.it repository. Previously, No idea :-( > You should also try something like: > > shp2img -m /path/to/your/mapfile.map -o junk.png > > and see if it reports any errors. > This doesn't report any error. I get a map in png file format. > Recent versions of mapserver have had a change for security purposes which > now require most mapserver support files to have well know tags as the first > line(s) of the support file. > > http://mapserver.org/development/rfc/ms-rfc-56.html > > -Steve W > > Jaisen wrote: >> >> Hi, >> >> I have ka-Map implementations in my Debian (Lenny) system, and were >> working pretty well. But after a system upgrade including mapserver, >> nothing is displayed in map window. The Coords are shown as: x: NaN y: >> NaN >> >> And inside the folders (for example): >> >> var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t0/l0/meta >> >> a blank text file is seen, named: >> >> lock_-40_-40 >> It is not a blank file, as I stated before, Two dots (periods) are there in the file. Am attaching the report from one of my init.php file. Any help? >> Thanks in advance. >> > > -- ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ - ???????? - ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ (`'?.?(`'?.?^?.?'?)?.?'?) ???`?* . Jaisen . *..??`? (?.?'?(`'?.? ?.?'?)`'?.?) ?.??^.`'?.? ?.?'? ( `?.?`?.? `?.? )`?.? ?.?(? `?.? ?.?(.??)`?.? ( `v? ) `v? -------------- next part -------------- A non-text attachment was scrubbed... Name: ka-map_init_php_return Type: application/octet-stream Size: 4182 bytes Desc: not available URL: From woodbri at swoodbridge.com Sun Jun 27 20:51:09 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 27 Jun 2010 23:51:09 -0400 Subject: [mapserver-users] ka-Map - Mapserver - Map display problem. In-Reply-To: References: <4C27847A.9080102@swoodbridge.com> Message-ID: <4C281C2D.4060501@swoodbridge.com> Ok, this is good, then it is likely something has changed in the PHP mapscript. There is also a bug with the order of units which might be tripping you up. Maybe one of the PHP/mapscript gurus has an idea on what might be breaking ka-map on 5.6.3-1. You might also check the ka-map list archives, I seem to remember someone else running into this problem recently. -Steve Jaisen wrote: > On 27 June 2010 22:33, Stephen Woodbridge wrote: >> Jaisen, >> >> It would help to know what version of mapserver you are now running and what >> you were running before? >> > Now Version 5.6.3-1. The same available in the gfoss.itc.it repository. > > Previously, No idea :-( > >> You should also try something like: >> >> shp2img -m /path/to/your/mapfile.map -o junk.png >> >> and see if it reports any errors. >> > This doesn't report any error. I get a map in png file format. > >> Recent versions of mapserver have had a change for security purposes which >> now require most mapserver support files to have well know tags as the first >> line(s) of the support file. >> >> http://mapserver.org/development/rfc/ms-rfc-56.html >> >> -Steve W >> > > Am attaching the report from one of my init.php file. > Any help? > >> Jaisen wrote: >>> Hi, >>> >>> I have ka-Map implementations in my Debian (Lenny) system, and were >>> working pretty well. But after a system upgrade including mapserver, >>> nothing is displayed in map window. The Coords are shown as: x: NaN y: >>> NaN >>> >>> And inside the folders (for example): >>> >>> var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t0/l0/meta >>> >>> a blank text file is seen, named: >>> >>> lock_-40_-40 >>> >>> and inside the folder: >>> >>> >>> /var/www/mykamap/htdocs/kacache/gmap/2500/Roads/def/t-1640448/l9770496/meta >>> >>> another blank file is seen named: >>> >>> lock_-1640488_9770456 >>> >>> What exactly is this problem? Can anybody help me to resolve it? >>> >>> When I encountered this issue previously, I reinstalled the entire >>> system to resolve. Now I want to know some other way to resolve >>> this problem. >>> >>> Thanks in advance. >>> >> > > > From sumit321 at hotmail.com Mon Jun 28 04:55:26 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 28 Jun 2010 04:55:26 -0700 (PDT) Subject: [mapserver-users] Re: Reg:About Native Microsoft SQL Server 2008 Driver for MapServer In-Reply-To: <79ad14900807150356r727a6a3fpcb9ca838f5cf54c6@mail.gmail.com> References: <79ad14900807150356r727a6a3fpcb9ca838f5cf54c6@mail.gmail.com> Message-ID: <1277726126581-5230471.post@n2.nabble.com> Alternatively if you have code for 5.6.3, you would like to compile ms sql plugin on windows by using following command nmake /f makefile.vc -plugins Please make sure that you have configured you nmake.opt properly. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reg-About-Native-Microsoft-SQL-Server-2008-Driver-for-MapServer-tp1971580p5230471.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Mon Jun 28 05:00:32 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 28 Jun 2010 05:00:32 -0700 (PDT) Subject: [mapserver-users] Re: Mapscript zoom Rectangle In-Reply-To: <22BBDCE13318954B8E777A2DEF50BC74B23B87BBD2@ZVMBX01.bgr.local> References: <22BBDCE13318954B8E777A2DEF50BC74B23B87BBD2@ZVMBX01.bgr.local> Message-ID: <1277726432973-5230488.post@n2.nabble.com> That is correct. If you need to see complete area, you can write a hook, which can modify rectangle drawn on screen, bring it to minimum ratio with map and then send it to mapserver API. That way you will ensure that you are able to visualize complete data. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapscript-zoom-Rectangle-tp5190148p5230488.html Sent from the Mapserver - User mailing list archive at Nabble.com. From KMorrison at advantrack.com Mon Jun 28 06:18:46 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Mon, 28 Jun 2010 08:18:46 -0500 Subject: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt@nokia.com) In-Reply-To: <20100626160007.BEA91E00DCB@lists.osgeo.org> References: <20100626160007.BEA91E00DCB@lists.osgeo.org> Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> I tried to get OSM running on MapServer using the instructions linked below and was only partially successful. It would render the coastlines but nothing else and there was no error messages in the debug file. Kent Message: 3 Date: Fri, 25 Jun 2010 20:25:19 +0200 From: "christopher.schmidt at nokia.com" Subject: Re: [mapserver-users] OSM renderer with MapServer To: Cc: mapserver-users at lists.osgeo.org Message-ID: <058B56D2-801E-4CDF-AF06-506432DFDD66 at nokia.com> Content-Type: text/plain; charset="Windows-1252" On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote: > Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? I?m interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. Ultimately turning this into a TMS using tilecache. Or would people recommend sticking with Mapnik?s stylesheets to render the data into images? I did a few searches and only came across this. http://code.google.com/p/mapserver-utils/source/browse/trunk I?m new to OSM data so just starting to explore options. > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as well; This is the mapfile that is used for the map on the homepage: http://mapserver.org/ So it's probably a safe starting point. Regards, -- Christopher Schmidt Nokia ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 29, Issue 43 *********************************************** From thomas.bonfort at gmail.com Mon Jun 28 06:24:01 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 28 Jun 2010 15:24:01 +0200 Subject: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt@nokia.com) In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> References: <20100626160007.BEA91E00DCB@lists.osgeo.org> <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> Message-ID: The document needs to be updated. You should either update the mapfiles and change "using srid=4326" to "using srid=900913", or reimport the osm data in lonlat format (osm2pgsql -l switch). regards, thomas On Mon, Jun 28, 2010 at 15:18, Kent Morrison wrote: > > > > > > > I tried to get OSM running on MapServer using the instructions linked below and was only partially successful. It would render the coastlines but nothing else and there was no error messages in the debug file. > > Kent > > > > > > > Message: 3 > Date: Fri, 25 Jun 2010 20:25:19 +0200 > From: "christopher.schmidt at nokia.com" > Subject: Re: [mapserver-users] OSM renderer with MapServer > To: > Cc: mapserver-users at lists.osgeo.org > Message-ID: <058B56D2-801E-4CDF-AF06-506432DFDD66 at nokia.com> > Content-Type: text/plain; charset="Windows-1252" > > > On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote: > >> Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? ?I?m interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. ?Ultimately turning this into a TMS using tilecache. ?Or would people recommend sticking with Mapnik?s stylesheets to render the data into images? ?I did a few searches and only came across this. ?http://code.google.com/p/mapserver-utils/source/browse/trunk ?I?m new to OSM data so just starting to explore options. >> > > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as well; This is the mapfile that is used for the map on the homepage: > > ?http://mapserver.org/ > > So it's probably a safe starting point. > > Regards, > -- > Christopher Schmidt > Nokia > > > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 29, Issue 43 > *********************************************** > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sumit321 at hotmail.com Mon Jun 28 06:38:52 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 28 Jun 2010 06:38:52 -0700 (PDT) Subject: [mapserver-users] Re: changing projection of a "polygon" In-Reply-To: References: <4C1A71B0.5090607@mapmedia.de> Message-ID: <1277732332634-5230807.post@n2.nabble.com> if you want to do it on the fly you need to define projection parameter on layer as well as on map objects in map file. You can treat projection parameters on layer as your input parameters and on map as your output parameters... however if you want to convert your data from one projection to another, safe approach would be to use OGR2OGR utility. and still if you would like to do it using mapscript (I would not recommend that) you can take reference of source code of ogr2ogr.cpp. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/changing-projection-of-a-polygon-tp5192083p5230807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Jun 28 06:40:06 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 28 Jun 2010 16:40:06 +0300 Subject: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt@nokia.com) References: <20100626160007.BEA91E00DCB@lists.osgeo.org><4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> Message-ID: Hi, The Windows version of osm2pgsql does not find automatically proj4 libraries which are needed for doing import with -l switch or with -E switch. For making these switches to work user should install proj4 in some way and set an environment variable to point to that location. Too tricky, so I would suggest Windows users to import with the default projection 900913. The data can be rather fast reprojected afterwards inside PostGIS, if needed. Windows is also lacking the preprocessor that is needed to build up the final mapfile if user is following the cookbook by Thomas. Perhaps there could be also a ready compiled mapfile available for Windows users for a quicker start? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: thomas bonfort L?hetetty: ma 28.6.2010 16:24 Vastaanottaja: Kent Morrison Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt at nokia.com) The document needs to be updated. You should either update the mapfiles and change "using srid=4326" to "using srid=900913", or reimport the osm data in lonlat format (osm2pgsql -l switch). regards, thomas On Mon, Jun 28, 2010 at 15:18, Kent Morrison wrote: > > > > > > > I tried to get OSM running on MapServer using the instructions linked below and was only partially successful. It would render the coastlines but nothing else and there was no error messages in the debug file. > > Kent > > > > > > > Message: 3 > Date: Fri, 25 Jun 2010 20:25:19 +0200 > From: "christopher.schmidt at nokia.com" > Subject: Re: [mapserver-users] OSM renderer with MapServer > To: > Cc: mapserver-users at lists.osgeo.org > Message-ID: <058B56D2-801E-4CDF-AF06-506432DFDD66 at nokia.com> > Content-Type: text/plain; charset="Windows-1252" > > > On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote: > >> Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? ?I?m interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. ?Ultimately turning this into a TMS using tilecache. ?Or would people recommend sticking with Mapnik?s stylesheets to render the data into images? ?I did a few searches and only came across this. ?http://code.google.com/p/mapserver-utils/source/browse/trunk ?I?m new to OSM data so just starting to explore options. >> > > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as well; This is the mapfile that is used for the map on the homepage: > > ?http://mapserver.org/ > > So it's probably a safe starting point. > > Regards, > -- > Christopher Schmidt > Nokia > > > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 29, Issue 43 > *********************************************** > _______________________________________________ > 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 KMorrison at advantrack.com Mon Jun 28 07:11:09 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Mon, 28 Jun 2010 09:11:09 -0500 Subject: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt@nokia.com) In-Reply-To: References: <20100626160007.BEA91E00DCB@lists.osgeo.org><4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C2@mail1.advantrack.local> Thanks for the quick feed back. I've got the map file.. Out sys admin ran it through a preprocessor on a linux machien for me. I thought the problem was/is probably a projection issue. I made the chaged all the "using srid=4326" to "using srid=900913" in all the DATA statements and changed all the PROJECTION statements from "init=epsg:4326" to "init=epsg:900913". Every thing renders perfectly now! If any windows user needs the map file I can email it to you. Kent -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Monday, June 28, 2010 8:40 AM To: thomas bonfort; Kent Morrison Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt at nokia.com) Hi, The Windows version of osm2pgsql does not find automatically proj4 libraries which are needed for doing import with -l switch or with -E switch. For making these switches to work user should install proj4 in some way and set an environment variable to point to that location. Too tricky, so I would suggest Windows users to import with the default projection 900913. The data can be rather fast reprojected afterwards inside PostGIS, if needed. Windows is also lacking the preprocessor that is needed to build up the final mapfile if user is following the cookbook by Thomas. Perhaps there could be also a ready compiled mapfile available for Windows users for a quicker start? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: thomas bonfort L?hetetty: ma 28.6.2010 16:24 Vastaanottaja: Kent Morrison Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt at nokia.com) The document needs to be updated. You should either update the mapfiles and change "using srid=4326" to "using srid=900913", or reimport the osm data in lonlat format (osm2pgsql -l switch). regards, thomas On Mon, Jun 28, 2010 at 15:18, Kent Morrison wrote: > > > > > > > I tried to get OSM running on MapServer using the instructions linked below and was only partially successful. It would render the coastlines but nothing else and there was no error messages in the debug file. > > Kent > > > > > > > Message: 3 > Date: Fri, 25 Jun 2010 20:25:19 +0200 > From: "christopher.schmidt at nokia.com" > Subject: Re: [mapserver-users] OSM renderer with MapServer > To: > Cc: mapserver-users at lists.osgeo.org > Message-ID: <058B56D2-801E-4CDF-AF06-506432DFDD66 at nokia.com> > Content-Type: text/plain; charset="Windows-1252" > > > On Jun 25, 2010, at 1:52 PM, ext Brian Fischer wrote: > >> Is there anyone working on a MapServer mapfile(s) to renderer OpenStreetMap data in the U.S.? ?I?m interested in creating a mapfile that displays nice cartographic map for the roads and uses highway shields for the labels. ?Ultimately turning this into a TMS using tilecache. ?Or would people recommend sticking with Mapnik?s stylesheets to render the data into images? ?I did a few searches and only came across this. ?http://code.google.com/p/mapserver-utils/source/browse/trunk ?I?m new to OSM data so just starting to explore options. >> > > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData leads to that location as well; This is the mapfile that is used for the map on the homepage: > > ?http://mapserver.org/ > > So it's probably a safe starting point. > > Regards, > -- > Christopher Schmidt > Nokia > > > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 29, Issue 43 > *********************************************** > _______________________________________________ > 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 Mon Jun 28 07:16:21 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 28 Jun 2010 11:16:21 -0300 Subject: [mapserver-users] Re: OSM renderer with MapServer (christopher.schmidt@nokia.com) In-Reply-To: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C2@mail1.advantrack.local> References: <20100626160007.BEA91E00DCB@lists.osgeo.org><4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C1@mail1.advantrack.local> <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7C2@mail1.advantrack.local> Message-ID: <4C28AEB5.2090201@gatewaygeomatics.com> Kent Morrison wrote: > Thanks for the quick feed back. > > I've got the map file.. Out sys admin ran it through a preprocessor on a linux machien for me. > > I thought the problem was/is probably a projection issue. I made the chaged all the "using srid=4326" to "using srid=900913" in all the DATA statements and changed all the PROJECTION statements from "init=epsg:4326" to "init=epsg:900913". > > Every thing renders perfectly now! > > If any windows user needs the map file I can email it to you. Great Kent. This is a perfect time for you to edit that wiki page (http://trac.osgeo.org/mapserver/wiki/RenderingOsmData) and update it with any notes/hints that would have helped you...so other users can benefit from your hard work. Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Mon Jun 28 07:16:39 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 28 Jun 2010 10:16:39 -0400 Subject: [mapserver-users] ka-Map - Mapserver - Map display problem. In-Reply-To: <4C281C2D.4060501@swoodbridge.com> References: <4C27847A.9080102@swoodbridge.com> <4C281C2D.4060501@swoodbridge.com> Message-ID: <4C28AEC7.6050802@mapgears.com> Stephen Woodbridge wrote: > Ok, this is good, then it is likely something has changed in the PHP > mapscript. There is also a bug with the order of units which might be > tripping you up. Maybe one of the PHP/mapscript gurus has an idea on > what might be breaking ka-map on 5.6.3-1. > It's very possible that the issue may be related to the change in the units array which affects 5.6.0 to 5.6.3 and will be fixed in 5.6.4: http://trac.osgeo.org/mapserver/ticket/3173 If that's the case, then you could hack your local copy of ka-Map to work around the issue as described here: http://lists.maptools.org/pipermail/ka-map-users/2010-June/003977.html Daniel -- Daniel Morissette http://www.mapgears.com/ From vilella.ricardo at gmail.com Mon Jun 28 07:52:02 2010 From: vilella.ricardo at gmail.com (Ricardo Vilella) Date: Mon, 28 Jun 2010 11:52:02 -0300 Subject: [mapserver-users] Mapserver 5.6.3 on Linux 64 bits Message-ID: Hi I have a simple question, can compile MapServer 5.6.3 on Debian Lenny 64-bit? Look in the documentation but did not specify if possible. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Mon Jun 28 08:08:33 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 28 Jun 2010 11:08:33 -0400 Subject: [mapserver-users] Mapserver 5.6.3 on Linux 64 bits In-Reply-To: References: Message-ID: <201006281108.33319.aboudreault@mapgears.com> Yes, It should build without problem. Alan On June 28, 2010 10:52:02 am Ricardo Vilella wrote: > Hi I have a simple question, can compile MapServer 5.6.3 on Debian Lenny > 64-bit? Look in the documentation but did not specify if possible. > -- Alan Boudreault Mapgears http://www.mapgears.com From ivan.mincik at gmail.com Mon Jun 28 08:37:57 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 28 Jun 2010 17:37:57 +0200 Subject: [mapserver-users] Mapserver 5.6.3 on Linux 64 bits In-Reply-To: References: Message-ID: On Mon, Jun 28, 2010 at 4:52 PM, Ricardo Vilella wrote: > Hi I have a simple question, can compile MapServer 5.6.3 on Debian Lenny > 64-bit? Look in the documentation but did not specify if possible. Yes, no problem. You can also download source package from Debian Testing and compile to DEB package. From stefan.schwarzer at grid.unep.ch Tue Jun 29 05:27:33 2010 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 29 Jun 2010 14:27:33 +0200 Subject: [mapserver-users] Fatal error: Call to a member function setSize() on a non-object Message-ID: <3F1C07DB-2695-4653-848D-420D5E05BC2D@grid.unep.ch> Hi there, I am about to move my mapserver application from one (old) server to another (new) one. The old one was using mapserver 4.x, the new one the latest version. I copied the files over to the new server, eliminated the "dl("php_mapscript.so")", and in principal, I would have said, it should have worked. But it doesn't... It tells me "Fatal error: Call to a member function setSize() on a non-object". This happens on this line: $map -> setSize(900, 450); The phpinfo file tells me that Mapscript is loaded correctly. So, what can it be? Thanks for any suggestions! Stef Here is the somewhat more complete code: -------------------------------------------------------------------------------------------------------------------------------------------- // --------------------------------------- // -- set map parameters -- // --------------------------------------- // set paths $map_path = GEO_ROOT_PATH."/../temp/"; $map = ms_newMapObj($map_path.$map_file); // set maximal map-extent $max_extent = ms_newrectObj(); $max_extent -> setextent(-180, -90, 180, 90); // set extension for AJAX script in tpl file if (($selectedRegion == "West Asia") && ($imgext == "")) { $imgext = "14 12 65 55"; } if ($imgext == "") $imgext = "-180 -90 180 90"; $extent_dd = explode(" ", $imgext); $tpl -> assign('mapExtent', $extent_dd[0].",".$extent_dd[2].",".$extent_dd[1]); // set map size - either to selected size or to default size if ($_POST["mapsize"]) { $size = explode("x", $H_POST["mapsize"]); $map -> set("width", $size[0]); $map -> set("height", $size[1]); } else { $map -> setSize(900, 450); } -------------------------------------------------------------------------------------------------------------------------------------------- From dmorissette at mapgears.com Tue Jun 29 08:21:04 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 29 Jun 2010 11:21:04 -0400 Subject: [mapserver-users] Fatal error: Call to a member function setSize() on a non-object In-Reply-To: <3F1C07DB-2695-4653-848D-420D5E05BC2D@grid.unep.ch> References: <3F1C07DB-2695-4653-848D-420D5E05BC2D@grid.unep.ch> Message-ID: <4C2A0F60.8050106@mapgears.com> Stefan Schwarzer wrote: > Hi there, > > I am about to move my mapserver application from one (old) server to another (new) one. The old one was using mapserver 4.x, the new one the latest version. I copied the files over to the new server, eliminated the "dl("php_mapscript.so")", and in principal, I would have said, it should have worked. > > But it doesn't... > > It tells me "Fatal error: Call to a member function setSize() on a non-object". This happens on this line: $map -> setSize(900, 450); > > The phpinfo file tells me that Mapscript is loaded correctly. So, what can it be? > My first guess would be that your mapfile fails to load because of something that changed between v4.x and the current (5.6) version. Look at the other error messages that you get, starting with the first one. If you don't get any error message other than the one you quoted above (which would surprise me), then you could turn on log/debug and the logs couold tell you more about what failed. See: http://mapserver.org/optimization/debugging.html#steps-to-enable-mapserver-debugging I'd also recommend that you have a look at the migration guide at http://trac.osgeo.org/mapserver/browser/branches/branch-5-6/mapserver/MIGRATION_GUIDE.TXT Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Jun 29 09:25:32 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 29 Jun 2010 12:25:32 -0400 Subject: [mapserver-users] Can similar, nearly simultaenous requests disturb mapserver? In-Reply-To: References: Message-ID: <4C2A1E7C.6020307@mapgears.com> Michael Schulz wrote: > > The other request is always drawn correctly. To me it seems as if the > downloaded gml-File is somehow shared between both requests, only > allowing the "first" request to parse it correctly and to draw a map. > That's what the problem was: the same GML filename was used for both requests. This was reported and fixed a few months ago in the current dev/trunk version, and I just backported the fix to the 5.6 branch so that it will be included in the 5.6.4 release (hopefully soon). You could easily build a new mapserv binary with the fix, see: http://trac.osgeo.org/mapserver/ticket/3137 Daniel -- Daniel Morissette http://www.mapgears.com/ From mlassche at feweb.vu.nl Tue Jun 29 11:55:33 2010 From: mlassche at feweb.vu.nl (Lassche, M.R (Ronnie)) Date: Tue, 29 Jun 2010 20:55:33 +0200 Subject: [mapserver-users] error with getfeauture info for postgis tile index Message-ID: <3AFC08F68F51AD498C041D7A14FCB1480EB931@feweb09.feweb.vu.nl> Hi All, I have a tileindex which is based on a postgis layer and everything works well. I've put the 2 layers in one group in order to be able to get information from the index layer available for the users. When I use a shape file as an index this works fine. But when I use a postgis layer as index the following error occurs. ==error== msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) ==== It seems mapserver expects a shapefile and can not handle the postgis index layer for the getfeatureinfo. Does someone has any idea what can be wrong? Thanks in advance, Ronnie ====part of the map file== LAYER GROUP "Topographische_en_militaire_kaart" NAME "_tmk-index" METADATA WMS_TITLE "Topographische_en_militaire_kaart-index" WMS_ABSTRACT "Topographische en militaire kaart-index" WMS_NAME "Topographische_en_militaire_kaart-index" WMS_SRS "EPSG:4326 EPSG:900913 EPSG:3785 EPSG:28992" gml_include_items "location" WMS_FEATURE_INFO_MIME_TYPE "text/html" END EXTENT 10000 305000 280000 619000 PROJECTION "init=epsg:28992" END CONNECTION "user=postgres password=P0stG!s dbname=gisdb host=localhost port=5432" CONNECTIONTYPE postgis DATA "geom from (SELECT kaartbladid ,location,geom FROM vw_bladgrenzen_rd WHERE serie_id = 2) as grens USING UNIQUE kaartbladid " STATUS ON DUMP TRUE TEMPLATE "/mapserver/www/infotemplates/tmk_scan_leeg.html" TYPE POLYGON UNITS METERS MAXSCALE 8000000 MINSCALE 500 END LAYER GROUP "Topographische_en_militaire_kaart" NAME "tmk-scan" METADATA WMS_TITLE "Topographische_en_militaire_kaart-scan" WMS_ABSTRACT "Topographische en militaire kaart-scan" WMS_NAME "nsw-landgoederen" WMS_SRS "EPSG:4326 EPSG:900913 EPSG:3785 EPSG:28992" gml_include_items "all" WMS_FEATURE_INFO_MIME_TYPE "text/html" END EXTENT 10000 305000 280000 619000 PROJECTION "init=epsg:28992" END TILEINDEX "_tmk-index" TILEITEM "location" STATUS ON DUMP TRUE TEMPLATE "/mapserver/www/infotemplates/tmk_scan_leeg.html" TYPE RASTER UNITS METERS MAXSCALE 8000000 MINSCALE 500 PROCESSING "BANDS=1,2,3" OFFSITE 0 0 0 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Tue Jun 29 12:11:09 2010 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 29 Jun 2010 21:11:09 +0200 Subject: [mapserver-users] Can similar, nearly simultaenous requests disturb mapserver? In-Reply-To: <4C2A1E7C.6020307@mapgears.com> References: <4C2A1E7C.6020307@mapgears.com> Message-ID: Hi Daniel, thx for your information. Don't how I missed that ticket ... it accurately described my own problem. I'll try building a patched version. Thanks a lot. Cheers, Michael 2010/6/29 Daniel Morissette : > Michael Schulz wrote: >> >> The other request is always drawn correctly. To me it seems as if the >> downloaded gml-File is somehow shared between both requests, only >> allowing the "first" request to parse it correctly and to draw a map. >> > > That's what the problem was: the same GML filename was used for both > requests. This was reported and fixed a few months ago in the current > dev/trunk version, and I just backported the fix to the 5.6 branch so > that it will be included in the 5.6.4 release (hopefully soon). > > You could easily build a new mapserv binary with the fix, see: > > ?http://trac.osgeo.org/mapserver/ticket/3137 > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From tschobber at gmx.at Wed Jun 30 01:02:16 2010 From: tschobber at gmx.at (=?iso-8859-1?Q?=22tschobber_tsch=F6bbi=22?=) Date: Wed, 30 Jun 2010 10:02:16 +0200 Subject: [mapserver-users] Problem with rectangular queries Message-ID: <20100630080216.88010@gmx.net> Hi userlist, could anyone help me on a mapserver issue? I've written a little php mapscript application (see complete code here http://pastebin.ca/1892318) that makes a rectangular query on a layer using the "querybyrect" method (method 1 --> see code) and addtional the same is done by using the "whichshapes" function (method 2). The problem is that method 1 (querybyrect) returns the wrong results whereas the results of method 2 are correct. Why is this? Do I need to define a real template file for method 1? If yes, how it has to look like to make the layer queryable the right way? Additional I should mention that the DATA for the layer is correct too. Here's the mapfile for this application: http://pastebin.ca/1892327 Thank you for any answers. Greetings -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl From dalda at ikt.es Wed Jun 30 02:41:01 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Wed, 30 Jun 2010 11:41:01 +0200 Subject: [mapserver-users] Problems loading gml file in desktop gis retrieved from wfs Message-ID: <224DBDAF88A6AC47BD22432815351BE0080A93A2@nekaposta1> Hi list, I'm having some problems loading a getFeature gml file retrieved from a WFS served by MapServer. I can't load it in gvSIG, nor in uDig and in Qgis. How many different ways are there to retrieve information from a WFS server? MapServer Version: 5.6.1 (the on included in ms4w package) My WFS Server MAP NAME "wfs_server" STATUS ON EXTENT 460000 4710000 610000 4820000 # Euskadi PROJECTION "init=epsg:23030" END SHAPEPATH "shapes/" FONTSET "misc/fonts/fonts.txt" IMAGETYPE "image/png; mode=24bit" IMAGECOLOR 255 255 255 UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wfs.log" DEBUG 5 WEB IMAGEPATH "MFD/tmp/" IMAGEURL "tmp/" METADATA "wfs_title" "IKT WFS Server" ## REQUIRED "wfs_abstract" "Servicio de mapas WFS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" ## REQUIRED "wfs_onlineresource" "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map&" ## Recommended "wfs_srs" "EPSG:23030" ## Recommended "wfs_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wfs_fees" "none" "wfs_accessconstraints" "Ninguna" "ows_contactorganization" "http://www.ikt.es" "wfs_geometry_element_name" "MS_GEOMETRY" END END LAYER DEBUG 5 NAME "RecintosSigpac" PROJECTION "init=epsg:23030" END METADATA "wfs_title" "Recintos Sigpac 2009" ## REQUIRED "wfs_abstract" "Recintos" "wfs_name" "RecintosSigpac" "wfs_geometry_element_name" "MS_GEOMETRY" "wfs_srs" "EPSG:23030" ## Recommended "wfs_extent" "463506.9978541628 4702558.185239193 603185.4988525142 4811754.780732273" "gml_featureid" "gid" ## REQUIRED "gml_include_items" "all" END TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admcarto at ORA10GEX" DATA "GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac DUMP TRUE ## REQUIRED CLASS NAME "Municipios_Gipuzkoa" STYLE OUTLINECOLOR 255 255 255 END TEMPLATE "ms_template.html" END STATUS ON END # Layer END # Map File And the GML I get from WFS: 524635.754527 4758483.496388 526082.056246 4759821.057789 524635.754527 4758483.496388 526082.056246 4759821.057789 525502.522737 4758854.648969 525505.179968 4758851.345084 525505.179968 4758851.345084 525512.370023 4758840.276291 525513.799787 4758838.075534 525516.095640 4758834.546908 525533.992709 4758805.850757 525551.532420 4758777.721130 525560.978889 4758757.259364 525580.195788 4758715.648262 525589.733131 4758692.859787 525707.651887 4758736.296429 525755.502864 4758753.919968 525758.077182 4758743.625294 525758.736394 4758740.984198 525764.454093 4758718.107137 525772.059427 4758696.717209 525777.468243 4758681.481158 525777.468243 4758681.481158 525777.468243 4758681.481158 525783.958979 4758667.524427 525889.297314 4758668.601086 525922.005008 4758674.793780 525922.005008 4758674.793780 525918.927973 4758684.211506 525913.894143 4758699.607108 525912.291403 4758716.784275 525925.354923 4758745.000776 525927.259878 4758749.112969 525928.866581 4758752.572449 525952.402556 4758801.893454 525963.075319 4758824.264638 525971.936938 4758833.997530 525986.029089 4758852.165024 526002.831237 4758880.181770 526002.831237 4758880.181770 526003.007411 4758880.582698 526010.615522 4758898.222992 526014.300124 4758914.200819 526017.296372 4758922.468712 526024.546836 4758942.481298 526032.477127 4758959.834284 526037.208143 4758970.193850 526054.459923 4758996.657943 526054.459923 4758996.657943 526067.107729 4759024.268111 526078.030464 4759049.004763 526080.905702 4759065.686987 526082.056246 4759081.217718 526082.056246 4759081.217718 526081.487591 4759083.384403 526081.480651 4759083.412302 526079.185249 4759092.153428 526075.733397 4759103.077619 526075.733397 4759103.077619 526075.643952 4759103.235521 526069.411161 4759114.009507 526061.935610 4759120.915801 526055.801005 4759125.649044 526049.282531 4759130.688010 526028.013477 4759145.360940 526028.013477 4759145.360940 526028.013477 4759145.360940 526015.939196 4759155.712528 526009.007183 4759163.486621 526001.567311 4759171.826604 525987.193643 4759190.230560 525986.905378 4759190.555260 525959.885119 4759220.723635 525938.609239 4759239.129470 525936.971549 4759240.277507 525923.370003 4759249.767106 525915.895518 4759254.662955 525915.895518 4759254.662955 525908.713526 4759258.117122 525904.357900 4759258.733621 525900.658687 4759259.259522 525894.186822 4759259.262984 525893.961302 4759259.262132 525892.034090 4759259.264157 525884.852584 4759258.976388 525884.852584 4759258.976388 525884.852584 4759258.976388 525875.938485 4759257.825713 525861.275863 4759256.960525 525857.333264 4759256.787402 525848.341140 4759256.390446 525841.494072 4759256.215684 525837.127557 4759256.096825 525824.478369 4759259.549082 525823.329829 4759263.286715 525824.290357 4759265.915294 525825.338919 4759268.758298 525828.220837 4759271.114869 525831.668251 4759273.929683 525837.992880 4759278.533247 525842.558559 4759282.013178 525844.023642 4759283.135708 525847.762817 4759288.315956 525848.049428 4759292.049692 525846.487487 4759294.864234 525846.480583 4759294.882825 525845.180088 4759297.232935 525840.867404 4759300.967940 525840.867404 4759300.967940 525830.225976 4759308.448972 525823.357215 4759312.230201 525823.220221 4759312.313460 525806.894110 4759321.299677 525795.311181 4759326.561826 525789.752461 4759329.091392 525785.301990 4759331.317957 525774.175809 4759336.889036 525765.855316 4759341.465381 525765.841613 4759341.474638 525765.821077 4759341.483869 525758.589455 4759345.459274 525729.762850 4759371.181670 525711.068192 4759392.232169 525711.068192 4759392.232169 525711.068192 4759392.232169 525699.771865 4759414.055136 525699.592196 4759414.585039 525694.319985 4759430.035767 525693.899407 4759434.669756 525693.479004 4759439.257204 525693.479004 4759439.257204 525693.151002 4759442.895545 525692.778173 4759443.908759 525686.530091 4759460.826556 525674.449564 4759487.719685 525674.449564 4759487.719685 525655.175158 4759514.073933 525651.081256 4759519.671548 525641.343182 4759525.127030 525635.217971 4759527.524283 525635.040017 4759527.598084 525632.384609 4759528.639994 525626.258490 4759529.454830 525620.693013 4759530.197300 525611.346873 4759531.363134 525605.507004 4759536.042029 525605.507004 4759536.042029 525605.507004 4759536.042029 525600.831353 4759541.888826 525599.664339 4759546.957525 525601.411166 4759549.486620 525601.411166 4759549.486620 525601.417965 4759549.495954 525603.164790 4759552.025049 525612.903451 4759555.533472 525617.682641 4759558.548635 525620.307438 4759560.206032 525623.048800 4759563.585913 525625.368422 4759566.442949 525626.147556 4759571.900567 525624.592030 4759578.522305 525624.592030 4759578.522305 525622.254514 4759585.932331 525622.254514 4759585.932331 525618.362301 4759590.609192 525612.907643 4759596.453068 525612.907643 4759596.453068 525612.298024 4759596.832432 525602.749484 4759602.809946 525603.885732 4759596.828913 525605.078351 4759594.050168 525599.920080 4759590.074835 525591.187137 4759588.096759 525586.825180 4759590.472717 525582.459313 4759592.066760 525580.077901 4759589.283974 525580.077580 4759585.709560 525578.281460 4759583.571238 525572.929981 4759574.596611 525566.183704 4759584.121816 525561.425037 4759582.931205 525557.453133 4759583.335263 525553.488097 4759583.730040 525549.516228 4759584.124794 525541.580566 4759590.080483 525532.450526 4759595.631470 525522.485523 4759607.025012 525521.390411 4759607.486351 525505.417858 4759613.579696 525495.543474 4759613.496399 525491.971864 4759614.683888 525485.224051 4759615.477918 525481.253659 4759615.481766 525472.524104 4759616.268439 525466.965341 4759617.066908 525461.807391 4759616.666093 525449.106636 4759610.317137 525444.345951 4759611.509542 525445.935668 4759615.871761 525452.279581 4759622.625276 525454.660921 4759630.955803 525457.042254 4759639.286331 525458.981333 4759643.417143 525448.720029 4759653.683378 525444.931755 4759663.536175 525436.407903 4759662.313050 525436.409257 4759667.469890 525440.773813 4759675.407516 525447.519968 4759680.561482 525454.662956 4759683.743556 525459.427486 4759683.342385 525466.569170 4759681.358322 525472.922598 4759678.179865 525476.891056 4759675.011161 525482.447371 4759673.021219 525489.195128 4759672.227186 525499.025065 4759673.213221 525501.101701 4759673.425735 525509.431381 4759675.402195 525515.277877 4759676.233796 525515.030621 4759676.567976 525514.831443 4759676.837177 525514.830160 4759677.181582 525514.827772 4759679.657599 525515.932074 4759684.064570 525516.524653 4759686.421794 525518.213616 4759689.807022 525519.114151 4759690.210637 525523.057445 4759691.965992 525522.530645 4759697.632825 525520.149397 4759703.981569 525518.557893 4759711.124467 525521.337121 4759713.508454 525526.167161 4759717.529048 525525.596825 4759718.373984 525520.541137 4759740.071571 525512.842987 4759764.877624 525508.569875 4759794.816042 525503.478250 4759815.182412 525497.526927 4759818.678822 525493.957823 4759821.057789 525490.780803 4759819.072592 525485.617802 4759812.723691 525486.018746 4759805.976615 525486.015573 4759797.645614 525483.635279 4759790.897499 525480.855122 4759786.931101 525475.699703 4759787.721755 525471.726683 4759797.648319 525474.905582 4759802.807667 525477.679850 4759808.356464 525474.108146 4759815.110365 525464.970264 4759800.806662 525473.515066 4759724.677363 525443.430168 4759729.284901 525441.805112 4759728.925148 525439.401660 4759728.394953 525430.820551 4759729.731423 525423.005246 4759730.949736 525406.105031 4759733.000038 525394.716201 4759734.102739 525390.224912 4759734.542202 525384.609035 4759736.029345 525372.802725 4759739.150452 525367.107585 4759741.745011 525361.535659 4759744.284182 525349.752347 4759750.430632 525343.608214 4759752.483665 525338.995557 4759752.485218 525335.411740 4759751.457351 525331.309318 4759748.379728 525327.724343 4759745.815980 525325.164386 4759743.256023 525325.164386 4759743.256023 525322.604428 4759740.696068 525316.478332 4759736.019242 525303.135851 4759725.823829 525294.209685 4759718.828207 525289.080875 4759680.933534 525290.509088 4759666.129198 525280.483086 4759614.561088 525287.169991 4759613.599081 525284.937576 4759607.447321 525291.407944 4759605.907400 525301.502665 4759605.544415 525307.107601 4759605.192783 525319.001010 4759604.445517 525325.934649 4759605.141348 525333.450607 4759607.291444 525341.301063 4759609.535869 525341.301063 4759609.535869 525349.495985 4759611.027601 525364.382424 4759614.005527 525364.382424 4759614.005527 525364.382424 4759614.005527 525371.986914 4759614.387404 525377.112185 4759614.387770 525384.204564 4759612.813007 525391.349541 4759609.953892 525395.544822 4759608.275320 525409.681671 4759599.624418 525413.750163 4759597.126251 525430.413712 4759587.125744 525452.020112 4759571.065276 525462.915881 4759562.960944 525463.162585 4759562.775694 525457.874942 4759560.484802 525427.627332 4759582.963870 525411.162367 4759592.853421 525399.628212 4759599.912930 525393.292660 4759603.789648 525382.718932 4759608.013695 525380.113120 4759608.599776 525376.563512 4759609.387146 525372.114764 4759609.389285 525366.416535 4759609.098241 525364.995386 4759609.027821 525364.995386 4759609.027821 525364.995386 4759609.027821 525350.436708 4759606.116265 525350.436708 4759606.116265 525342.432984 4759604.662473 525334.821458 4759602.484089 525334.821458 4759602.484089 525334.821458 4759602.484089 525326.882258 4759600.211418 525319.094722 4759599.428655 525301.254615 4759600.544907 525290.736133 4759600.924945 525290.736133 4759600.924945 525289.381874 4759601.245738 525282.446405 4759602.895645 525282.364230 4759602.941884 525282.316292 4759602.969632 525278.844998 4759588.091366 525274.877033 4759555.944256 525267.738121 4759518.246979 525255.432282 4759471.408469 525249.875725 4759434.498952 525239.953110 4759382.512431 525230.826915 4759320.205891 525219.316055 4759267.022093 525212.176445 4759218.201406 525210.582913 4759199.951163 525192.330454 4759123.350723 525193.519972 4759115.815328 525189.155235 4759070.569983 525180.421919 4759061.043362 525160.578393 4758963.409612 525144.998072 4758869.747632 525146.686155 4758869.753827 525166.137420 4758867.768090 525172.486631 4758867.763487 525176.848084 4758874.909707 525179.629409 4758888.007470 525191.538888 4758924.121108 525201.852427 4758922.139120 525206.616517 4758925.712434 525214.949145 4758930.871994 525211.377748 4758935.634038 525211.778611 4758939.991822 525220.510468 4758938.804561 525226.063890 4758939.597597 525226.062506 4758951.112025 525221.695426 4758956.662345 525216.541831 4758958.653981 525207.804638 4758959.440969 525195.104949 4758959.841062 525198.279357 4758986.828343 525195.898628 4758991.194515 525197.485944 4759013.019133 525207.806126 4759005.480092 525209.790072 4759008.652231 525199.470938 4759023.340089 525199.469763 4759045.959386 525193.523092 4759055.487890 525199.872652 4759059.057723 525208.996237 4759047.949183 525214.555021 4759054.690268 525208.206100 4759065.809009 525202.648493 4759071.755220 525207.011161 4759072.953429 525248.683402 4759068.182740 525255.829999 4759059.459224 525262.177944 4759024.529752 525276.068624 4759021.751238 525286.788696 4759016.987680 525291.945163 4759008.657117 525297.503918 4758993.179226 525301.139529 4758989.543774 525304.384148 4758986.297832 525307.025124 4758983.654704 525320.914953 4758979.284549 525339.171913 4758974.921262 525357.823396 4758967.376025 525362.189164 4758956.668958 525361.002621 4758941.184772 525353.062268 4758920.546692 525348.697120 4758912.609133 525346.317425 4758896.338635 525341.159484 4758882.850371 525331.236466 4758875.301839 525328.061882 4758872.525524 525320.520544 4758878.873875 525310.993342 4758878.875911 525302.662182 4758867.768202 525294.323711 4758858.633848 525284.803315 4758858.635945 525274.483300 4758858.635106 525262.970681 4758861.413084 525254.240182 4758867.766432 525247.096304 4758875.698749 525250.273860 4758883.240914 525258.604520 4758879.669284 525267.734329 4758878.083291 525265.751875 4758885.625055 525252.256868 4758895.944815 525243.524982 4758902.689122 525235.586752 4758894.356832 525227.714256 4758888.584591 525223.679162 4758885.628297 525220.903001 4758891.575424 525220.902588 4758899.115188 525212.173592 4758899.511249 525206.216911 4758898.716742 525204.632691 4758892.772186 525204.630634 4758884.040944 525206.222485 4758874.905997 525213.365855 4758868.956315 525215.743177 4758861.816249 525212.569495 4758855.065324 525201.058693 4758844.346302 525196.297838 4758832.442030 525195.104588 4758820.532261 525194.311548 4758803.867397 525194.713724 4758796.720062 525193.121051 4758780.052259 525185.185977 4758768.946153 525178.437370 4758769.740489 525180.027006 4758776.085316 525176.058674 4758782.837906 525170.503326 4758789.975620 525164.550440 4758789.981681 525160.978363 4758785.612257 525158.591542 4758780.455976 525147.086151 4758781.242187 525122.080653 4758784.417700 525113.353519 4758787.997351 525112.160240 4758800.298617 525121.684131 4758840.378049 525126.051872 4758862.603788 525132.005813 4758869.746511 525123.669244 4758869.352915 525127.239682 4758887.210116 525122.478943 4758905.074003 525131.607811 4758907.453183 525141.530949 4758957.857079 525150.655221 4759004.292703 525150.657450 4759018.581034 525157.006231 4759055.884298 525169.311006 4759125.732839 525175.661383 4759155.105415 525163.751491 4759158.273047 525146.292698 4759159.465578 525139.546175 4759170.973874 525143.908568 4759185.268900 525153.436366 4759186.849058 525183.994625 4759186.058399 525190.741500 4759232.094409 525195.109867 4759267.026120 525199.871949 4759284.087237 525211.381597 4759348.776131 525224.476080 4759426.567750 525232.809296 4759466.652313 525245.114956 4759537.692521 525264.365367 4759615.609325 525257.944202 4759622.343520 525257.937368 4759622.343495 525255.961023 4759624.579524 525249.325151 4759632.094839 525244.356584 4759639.644228 525239.181888 4759647.500037 525229.536835 4759668.659655 525217.751572 4759693.897779 525212.160084 4759707.327785 525207.336950 4759723.664833 525204.824507 4759732.321676 525183.180844 4759701.189374 525176.743440 4759691.931816 525167.702488 4759678.932045 525169.440983 4759676.322781 525172.042113 4759673.279195 525176.918722 4759668.410225 525181.164358 4759664.162599 525189.412399 4759656.774156 525189.412399 4759656.774156 525195.487782 4759651.127704 525198.090076 4759645.915283 525198.091905 4759643.560274 525198.093973 4759641.140107 525198.092214 4759634.186753 525198.092214 4759634.186753 525196.351996 4759616.820255 525192.444698 4759582.942062 525189.754357 4759561.913888 525189.754357 4759561.913888 525179.268178 4759540.475416 525167.694641 4759524.813459 525139.101096 4759513.910778 525115.272578 4759496.882167 525110.510338 4759479.849028 525086.681528 4759470.313747 525073.062903 4759473.717295 525052.640206 4759483.937629 525032.211428 4759484.616933 525002.258800 4759469.632801 525045.113323 4759533.318883 525038.559435 4759539.010260 525023.363957 4759521.399174 524994.765794 4759479.853963 524984.066534 4759460.425627 524976.388323 4759446.472327 524940.304054 4759413.091421 524917.156101 4759387.213738 524876.308435 4759344.293407 524864.236476 4759364.001916 524839.628486 4759299.629156 524835.336408 4759288.406337 524833.819981 4759284.435482 524762.101943 4759385.162243 524709.199160 4759459.456700 524702.841871 4759467.541353 524693.711084 4759479.134572 524693.512000 4759479.385180 524690.824981 4759470.271924 524689.679740 4759467.586991 524688.195627 4759464.118934 524686.285640 4759461.254387 524684.681494 4759458.856359 524676.423133 4759448.326785 524749.208085 4759360.085488 524749.679621 4759360.087192 524750.110153 4759360.088747 524751.012592 4759359.989615 524751.364440 4759357.179763 524751.399685 4759356.882023 524751.558706 4759354.481042 524752.497460 4759351.896711 524752.497493 4759351.887403 524754.545244 4759346.886907 524755.654241 4759344.470742 524757.813867 4759340.662120 524757.813867 4759340.662120 524759.973529 4759336.844191 524759.973529 4759336.844191 524759.973529 4759336.844191 524762.187797 4759333.045076 524762.187797 4759333.045076 524764.408934 4759329.236679 524764.408934 4759329.236679 524766.623274 4759325.418950 524768.830817 4759321.591888 524771.712828 4759316.454788 524773.177872 4759313.853746 524775.152194 4759310.267860 524775.324152 4759309.961306 524775.324152 4759309.961306 524775.324152 4759309.961306 524777.477269 4759306.068892 524777.477269 4759306.068892 524779.555416 4759302.120358 524783.623316 4759294.101962 524784.697421 4759291.890459 524785.599366 4759290.041359 524791.325543 4759277.021073 524808.779990 4759237.291041 524809.061202 4759235.123212 524809.532291 4759231.476044 524809.532291 4759231.476044 524809.532291 4759231.476044 524809.433253 4759230.516925 524809.327448 4759229.539165 524809.142568 4759227.751291 524809.129406 4759227.611618 524818.339021 4759222.702236 524819.528111 4759215.166778 524817.946540 4759200.872727 524804.386675 4759163.394739 524802.467768 4759159.208343 524805.242764 4759149.677328 524804.451730 4759139.761069 524803.656414 4759131.026956 524800.875924 4759117.529090 524796.909559 4759116.341882 524789.766751 4759114.752233 524786.987025 4759112.368547 524775.873792 4759101.260724 524761.587443 4759069.905098 524750.868865 4759044.110167 524740.154506 4759017.123801 524730.628699 4759001.646863 524729.040053 4758987.352814 524720.711296 4758973.462629 524715.946847 4758962.349891 524710.785647 4758953.227712 524703.247550 4758943.696709 524698.487161 4758940.924278 524695.709087 4758936.157699 524692.135489 4758922.666333 524686.973918 4758915.526850 524683.004907 4758913.138923 524676.257945 4758913.533499 524669.907037 4758915.921493 524667.134218 4758921.077643 524665.542630 4758924.646319 524664.054396 4758929.881562 524664.057646 4758928.978664 524663.814527 4758926.269059 524663.413549 4758921.846151 524662.974480 4758916.613280 524662.456850 4758910.421366 524660.947707 4758900.577012 524660.513593 4758897.764329 524658.057155 4758890.969705 524658.057155 4758890.969705 524655.014637 4758885.606458 524655.014637 4758885.606458 524655.014637 4758885.606458 524651.300039 4758880.883070 524645.764317 4758875.138525 524644.504651 4758873.830826 524640.968776 4758870.718430 524638.269639 4758868.688814 524635.754527 4758866.799485 524636.001132 4758866.642130 524636.610761 4758866.262680 524637.302569 4758865.836983 524639.828225 4758864.794221 524642.572949 4758863.649856 524646.182925 4758863.262581 524648.473336 4758863.019494 524651.507921 4758862.993176 524658.846405 4758865.365284 524661.097351 4758866.592778 524665.394646 4758868.926023 524665.503694 4758869.010191 524665.578637 4758869.075619 524665.578637 4758869.075619 524666.600907 4758869.879816 524668.311535 4758871.217068 524673.815684 4758876.235467 524678.743193 4758881.959228 524678.743193 4758881.959228 524678.892811 4758882.164550 524683.224753 4758888.156112 524687.383918 4758894.677630 524691.344343 4758901.347368 524695.209383 4758907.932989 524695.209383 4758907.932989 524695.868419 4758909.015132 524699.075354 4758914.257982 524699.958746 4758915.666727 524701.012023 4758917.346026 524702.449294 4758918.672993 524703.484717 4758919.616868 524705.741431 4758921.132957 524709.034473 4758923.341601 524713.207605 4758924.082701 524725.761302 4758926.268909 524727.489301 4758926.573011 524734.155364 4758927.760614 524746.728744 4758930.170331 524746.735578 4758930.170356 524749.132462 4758930.718897 524755.053009 4758932.062069 524760.351231 4758933.514697 524767.465619 4758935.457928 524770.850306 4758936.885032 524774.460119 4758938.424652 524777.592237 4758939.767071 524784.320394 4758942.676991 524787.677635 4758944.131929 524789.098456 4758944.332544 524791.905926 4758944.733652 524796.127348 4758945.344661 524800.249725 4758944.996554 524804.378937 4758944.648475 524807.567143 4758943.710565 524808.347092 4758943.480680 524808.347092 4758943.480680 524812.308415 4758942.312863 524814.444517 4758941.268755 524816.080840 4758940.464854 524819.853268 4758938.616848 524823.408990 4758936.218866 524826.663264 4758934.024577 524826.964714 4758933.820885 524826.964714 4758933.820885 524834.039787 4758927.749555 524834.039787 4758927.749555 524834.039787 4758927.749555 524838.913123 4758929.517188 524842.489121 4758919.644685 524840.175298 4758918.807854 524840.175298 4758918.807854 524840.175298 4758918.807854 524837.654819 4758910.877313 524832.821585 4758901.812080 524821.510151 4758884.969528 524814.041621 4758875.122172 524803.610673 4758862.350587 524783.994908 4758839.930270 524782.259313 4758837.941315 524774.892722 4758830.114282 524767.430398 4758822.296220 524756.775840 4758810.836378 524751.841409 4758805.140461 524743.708138 4758795.737584 524741.436399 4758792.694860 524737.749920 4758787.757436 524736.335785 4758785.695187 524734.935218 4758783.660912 524730.251308 4758774.819695 524730.073329 4758773.003925 524729.908380 4758771.365061 524729.821199 4758765.221238 524729.809915 4758764.560305 524729.809915 4758764.560305 524730.593969 4758757.516717 524732.303028 4758749.824884 524739.141226 4758729.883167 524745.267600 4758715.914844 524747.803603 4758710.134212 524747.803603 4758710.134212 524747.803603 4758710.134212 524763.135980 4758679.211429 524763.135980 4758679.211429 524763.135980 4758679.211429 524767.187290 4758672.095878 524799.836014 4758675.955908 524825.813175 4758670.641819 524952.172237 4758672.413225 524981.105745 4758673.598406 525032.481318 4758671.821821 525036.754742 4758671.334782 525037.507763 4758676.615366 525038.800235 4758680.157260 525039.903176 4758683.195812 525045.273848 4758689.172780 525051.190805 4758691.540112 525054.234612 4758692.752016 525061.402212 4758695.142546 525066.781606 4758698.727318 525070.363747 4758704.111339 525071.986252 4758708.976233 525075.143326 4758718.454375 525078.384185 4758731.181438 525082.905218 4758748.930390 525088.281774 4758764.476398 525091.269300 4758769.848946 525091.269300 4758769.848946 525091.269300 4758769.848946 525095.450377 4758774.034397 525095.464012 4758774.043755 525100.829403 4758775.831993 525105.569331 4758776.715033 525110.384369 4758777.616969 525128.306684 4758777.021773 525163.549147 4758770.449086 525162.665397 4758756.129598 525161.156157 4758731.605863 525158.168635 4758709.487565 525154.155543 4758694.914575 525153.393356 4758692.156506 525147.422249 4758676.617574 525142.044436 4758652.116886 525142.044436 4758652.116886 525140.846578 4758639.564838 525139.264623 4758631.107055 525139.056815 4758629.998599 525139.056815 4758629.998599 525139.056815 4758629.998599 525136.901246 4758626.993404 525135.314032 4758621.830757 525133.326913 4758613.892757 525128.567210 4758601.597592 525126.180204 4758590.874932 525124.991119 4758577.783037 525125.786612 4758565.871270 525128.963163 4758560.716785 525123.799597 4758563.490357 525119.040281 4758567.857141 525112.295991 4758573.017173 525107.130546 4758578.173688 525102.021509 4758580.994017 525072.752781 4758594.737690 525067.429685 4758598.162305 525056.029897 4758605.502134 525038.106659 4758617.453701 525023.876364 4758626.942778 525023.862661 4758626.952037 525023.773573 4758627.016870 524985.242270 4758648.797434 524961.035476 4758655.876646 524814.006806 4758658.246884 524778.357062 4758654.534177 524783.422105 4758646.817259 524783.772620 4758646.278643 524783.772620 4758646.278643 524788.801651 4758639.073557 524788.801651 4758639.073557 524796.467767 4758628.396696 524799.043671 4758624.831613 524804.250028 4758617.738881 524810.815140 4758609.133811 524812.433566 4758607.631719 524813.722820 4758606.435611 524820.745055 4758599.945201 524824.194464 4758596.755625 524832.149619 4758596.877529 524839.722474 4758596.877049 524844.924359 4758596.691123 524845.949888 4758596.601758 524899.188559 4758591.973263 524931.516461 4758588.292993 524931.783113 4758588.266038 524937.786487 4758587.580447 524982.089637 4758581.812392 524982.096472 4758581.812417 525111.202057 4758556.332608 525123.711824 4758553.874513 525123.711824 4758553.874513 525175.432615 4758545.826432 525175.432615 4758545.826432 525175.603585 4758545.799135 525194.702941 4758543.114055 525202.691929 4758541.486545 525202.705598 4758541.486595 525212.069421 4758539.575593 525223.087584 4758537.577609 525223.190173 4758537.559370 525232.984112 4758535.780296 525245.599568 4758532.485061 525258.714414 4758529.070681 525296.067967 4758523.111490 525307.529817 4758521.282829 525518.876768 4758484.125725 525522.351203 4758483.496388 525511.119963 4758511.472703 525511.119963 4758511.472703 525511.119963 4758511.472703 525501.303050 4758535.926435 525495.745553 4758550.845660 525492.072775 4758560.708156 525482.415466 4758579.037615 525479.896200 4758583.812740 525463.155394 4758612.094446 525443.854767 4758646.919766 525427.842349 4758642.913592 525413.570970 4758641.231691 525395.937529 4758641.231479 525380.221776 4758642.001699 525361.511900 4758642.919116 525321.210387 4758649.639647 525298.537998 4758653.837751 525267.473322 4758659.717717 525249.288385 4758664.723741 525249.247343 4758664.732898 525215.877876 4758671.051407 525204.764314 4758673.030434 525199.205311 4758671.837138 525196.431363 4758667.870890 525192.464729 4758661.126370 525186.505303 4758653.583319 525178.969416 4758641.678174 525174.998372 4758636.125117 525169.445533 4758625.800379 525164.284228 4758618.660538 525159.518432 4758615.487509 525153.172952 4758616.274042 525149.200514 4758616.678338 525145.627568 4758621.831360 525146.421521 4758628.973776 525148.807487 4758638.104713 525148.805688 4758646.044727 525149.598275 4758659.144482 525153.567998 4758670.645554 525160.709474 4758685.732679 525166.662737 4758702.397867 525169.841808 4758703.991963 525183.332884 4758705.968356 525188.562052 4758709.496823 525187.703010 4758712.639888 525230.527072 4758735.323632 525254.877594 4758750.446317 525283.426318 4758770.611087 525283.426318 4758770.611087 525283.426318 4758770.611087 525297.701249 4758782.373678 525317.848864 4758799.175195 525332.121827 4758815.135918 525336.675593 4758820.142031 525340.521432 4758824.372936 525349.911026 4758820.944958 525366.034910 4758815.047279 525366.041745 4758815.047305 525373.090827 4758812.467063 525378.606905 4758810.448961 525378.395978 4758819.421432 525380.915333 4758831.187213 525385.529761 4758843.789200 525392.666711 4758858.066733 525400.645184 4758870.253013 525400.645184 4758870.253013 525409.457796 4758878.653896 525417.433841 4758884.110248 525417.433841 4758884.110248 525417.433841 4758884.110248 525417.734137 4758884.223062 525434.229981 4758890.409168 525446.403277 4758893.768138 525450.655643 4758893.402288 525450.655643 4758893.402288 525456.063424 4758892.929033 525459.614346 4758891.890381 525463.199509 4758890.833242 525465.582628 4758889.557545 525469.492847 4758887.468389 525477.966241 4758880.462773 525479.152216 4758879.489805 525479.152216 4758879.489805 525479.152216 4758879.489805 525493.006194 4758866.472402 525502.522737 4758854.648969 525500.837153 4758503.168618 525498.849879 4758497.213188 525493.291863 4758492.054301 525479.005597 4758492.457282 525446.859868 4758498.406888 525411.932435 4758504.355638 525388.915669 4758509.119979 525380.577657 4758512.691425 525367.877566 4758516.665609 525353.195429 4758520.632483 525341.287776 4758521.025933 525327.398028 4758521.421387 525310.335473 4758522.214717 525292.476660 4758525.788347 525271.440670 4758530.951343 525260.324916 4758535.313210 525246.042241 4758544.047659 525237.309917 4758550.791973 525228.574153 4758554.762397 525209.128357 4758558.730661 525174.203456 4758567.854775 525153.170590 4758572.226934 525154.760953 4758587.703244 525163.089412 4758607.151033 525177.379209 4758631.758940 525191.268042 4758651.999789 525199.207135 4758663.906431 525203.972880 4758667.079488 525222.622646 4758663.899492 525263.896534 4758654.771105 525283.347929 4758649.220599 525307.951734 4758642.078831 525344.067624 4758636.124643 525372.244110 4758631.360639 525378.166789 4758630.321417 525388.124530 4758628.580406 525403.994646 4758628.583369 525411.539615 4758630.566096 525420.667268 4758633.345912 525428.998204 4758635.331575 525434.955090 4758636.126275 525439.318557 4758635.332645 525444.479424 4758627.784116 525455.191756 4758608.741779 525466.702913 4758588.101391 525477.023576 4758562.299771 525480.196501 4758556.354223 525483.767902 4758548.017912 525489.718893 4758535.715789 525494.881513 4758522.219268 525498.055590 4758512.299068 525500.837153 4758503.168618 524742.007150 4758759.549902 524744.782845 4758770.664781 524757.086980 4758783.359264 524768.598906 4758792.094860 524777.327006 4758797.646262 524803.128811 4758757.564782 524811.460456 4758755.584341 524821.778456 4758744.861259 524834.083155 4758730.971246 524847.177481 4758719.858006 524851.545116 4758710.342097 524836.862624 4758705.178585 524826.145981 4758705.176985 524816.620684 4758700.814103 524803.521996 4758698.030026 524797.970515 4758700.411488 524796.379510 4758707.563848 524792.016227 4758715.897647 524786.455775 4758715.095631 524784.873706 4758710.333345 524776.537260 4758707.957496 524767.407675 4758707.561468 524756.693766 4758723.830974 524745.581414 4758744.464672 524742.007150 4758759.549902 524926.159898 4758794.471997 524932.510502 4758801.615986 524948.384163 4758802.409120 524959.494942 4758799.238200 524967.432036 4758794.873574 524978.147260 4758787.726579 524982.914351 4758777.411690 524987.672166 4758765.895995 524990.852232 4758755.975584 524996.798841 4758746.456216 525003.948195 4758744.471696 525009.899880 4758750.422833 525012.277503 4758754.387559 525017.439202 4758746.457072 525020.215468 4758732.960795 525023.392707 4758723.831598 525013.866754 4758723.433794 525002.757823 4758716.691243 524996.008322 4758708.354266 524988.864653 4758695.650243 524981.721842 4758692.077720 524970.611235 4758693.275236 524969.022999 4758699.617741 524971.402732 4758706.765914 524968.227013 4758715.494881 524964.257431 4758722.638538 524953.942592 4758723.038461 524943.225976 4758723.036678 524937.666174 4758725.818256 524934.092367 4758729.388965 524936.078639 4758735.735177 524930.124951 4758739.706795 524924.170601 4758740.104012 524919.807558 4758746.455053 524908.297403 4758750.425104 524899.964637 4758750.823004 524891.231865 4758755.976027 524884.486479 4758761.536537 524878.137864 4758772.646269 524883.693560 4758784.152941 524897.187397 4758785.346882 524901.553518 4758791.301472 524909.092360 4758789.318269 524917.826183 4758785.747691 524929.728381 4758782.961243 524940.445666 4758778.997652 524951.953296 4758773.836178 524955.128463 4758774.629642 524958.701064 4758777.016282 524959.492697 4758782.967199 524957.114932 4758786.542253 524946.001636 4758788.521699 524933.698743 4758792.488820 524926.159898 4758794.471997 524983.836600 4759257.362982 524985.025787 4759270.464175 524987.406596 4759284.751875 524992.565716 4759294.274524 525002.094645 4759303.003295 525013.997184 4759307.375125 525024.317982 4759306.975320 525033.840643 4759306.181664 525042.179767 4759311.341043 525055.671469 4759324.040426 525069.164165 4759338.322261 525074.324561 4759347.454027 525079.088579 4759356.584346 525082.260722 4759363.726161 525095.755573 4759373.651746 525103.690941 4759380.792403 525109.643584 4759391.900472 525117.185550 4759403.814892 525124.729866 4759411.354400 525137.029088 4759419.293003 525143.379115 4759413.340338 525149.732535 4759404.604491 525154.094356 4759396.671165 525154.893750 4759385.550611 525158.068384 4759375.239297 525158.067745 4759366.107795 525158.067553 4759354.993614 525159.650807 4759340.711097 525163.222889 4759331.974358 525167.192694 4759317.291042 525166.401756 4759309.357415 525171.556875 4759299.435026 525172.752760 4759293.873022 525169.175917 4759281.572849 525162.429065 4759270.862073 525155.285511 4759267.680309 525150.129708 4759268.480516 525154.493318 4759271.251809 525157.270936 4759276.018578 525152.903536 4759278.003840 525142.986364 4759276.412944 525137.824649 4759273.238471 525128.700204 4759271.650504 525113.222117 4759273.241333 525112.424147 4759278.395238 525118.381071 4759282.764077 525118.774667 4759289.113820 525108.058175 4759298.643531 525095.360769 4759304.191334 525085.833580 4759300.619269 525073.930453 4759292.682211 525061.625944 4759282.370074 525054.083927 4759276.012808 525050.512417 4759269.670067 525040.986208 4759267.680489 525030.671164 4759266.488561 525019.953287 4759263.321806 525016.382178 4759254.987096 525012.810657 4759248.635067 525006.459349 4759247.439030 524996.936610 4759248.232725 524986.216470 4759249.422325 524983.836600 4759257.362982 318187 1 18 5 1047 41 887277,80103 13888,79633 18 0 0 0 11 11 1183712842 01/01/10 Am I doing something wrong?? Thnaks in advance. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From Jukka.Rahkonen at mmmtike.fi Wed Jun 30 03:26:57 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 30 Jun 2010 13:26:57 +0300 Subject: [mapserver-users] Problems loading gml file in desktop gisretrieved from wfs Message-ID: Hi, I captured your gml, saved in on disk and checked it with ogrinfo. The result is odd, it tells that the geometry is MULTIPOLYGON EMPTY. That makes me think that Mapserver has perhaps created invalid GML. d:\FWTools2.4.6>ogrinfo -al testgml.gml Had to open data source read-only. INFO: Open of `testgml.gml' using driver `GML' successful. Layer name: RecintosSigpac Geometry: Unknown (any) Feature Count: 1 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: (unknown) GID: Integer (0.0) PROVINCIA: Integer (0.0) MUNICIPIO: Integer (0.0) POLIGONO: Integer (0.0) PARCELA: Integer (0.0) RECINTO: Integer (0.0) DN_SURFACE: String (12.0) DN_PERIMET: String (11.0) PENDIENTE: Integer (0.0) ELEGIBILIDAD: Integer (0.0) COEF_REGAD: Integer (0.0) COEF_PASTO: Integer (0.0) USO_SIGPAC: Integer (0.0) USO_2003: Integer (0.0) PARCELA_AG: String (0.0) DN_OID: Integer (0.0) FECHA: String (8.0) OGRFeature(RecintosSigpac):0 GID (Integer) = 318187 PROVINCIA (Integer) = 1 MUNICIPIO (Integer) = 18 POLIGONO (Integer) = 5 PARCELA (Integer) = 1047 RECINTO (Integer) = 41 DN_SURFACE (String) = 887277,80103 DN_PERIMET (String) = 13888,79633 PENDIENTE (Integer) = 18 ELEGIBILIDAD (Integer) = 0 COEF_REGAD (Integer) = 0 COEF_PASTO (Integer) = 0 USO_SIGPAC (Integer) = 11 USO_2003 (Integer) = 11 PARCELA_AG (String) = DN_OID (Integer) = 1183712842 FECHA (String) = 01/01/10 MULTIPOLYGON EMPTY I also tried to convert the gml into shapefile with d:\FWTools2.4.6>ogr2ogr -f "ESRI Shapefile" testgml.shp testgml.gml The resulting shapefile contains all the attributes but no geometry. What I have experienced with WFS clients it that very often they cannot get features from WFS services on a map, or they success only with a certain WFS server mark, for example Geoserver of deegree, but not both. Reason may be in a slightly different ways used by clients for building WFS requests, especially with filters. Differences can be bugs, or then both ways are correct but the WFS server has been made to support only one way because developers have been busy with taking care of their own babies and they have not had time or interest to try other client/server combinations for checking the interoperability. It is not uncommon either that WFS server is sending the GML but client fails in parsing it. Sometimes saving the GML on disk and converting it to some other format with ogr2ogr helps because it is not trying to compare GML with all the schemas which are referred. More troubles comes from the big differences between WFS versions 1.0.0 and 1.1.0 like GML2 vs. GML3 and the famous axis order thing. For example, it look like WFS client developers working with deegree jumped into building 1.1.0 and left version 1.0.0 more of less unmaintained, even for many users WFS 1.0.0 would suit better. I saw your were using WFS 1.1.0. Try version 1.0.0 instead, it can be better supported by the clients. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi list, > > I'm having some problems loading a getFeature gml file > retrieved from a WFS served by MapServer. I can't load it in > gvSIG, nor in uDig and in Qgis. How many different ways are > there to retrieve information from a WFS server? > > MapServer Version: > 5.6.1 (the on included in ms4w package) > > My WFS Server > > MAP > NAME "wfs_server" > STATUS ON > > EXTENT 460000 4710000 610000 4820000 # Euskadi > > PROJECTION > "init=epsg:23030" > END > > SHAPEPATH "shapes/" > FONTSET "misc/fonts/fonts.txt" > > IMAGETYPE "image/png; mode=24bit" > IMAGECOLOR 255 255 255 > UNITS METERS > > DEBUG ON > CONFIG "MS_ERRORFILE" > "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wfs.log" > DEBUG 5 > > WEB > IMAGEPATH "MFD/tmp/" > IMAGEURL "tmp/" > METADATA > "wfs_title" "IKT WFS Server" ## REQUIRED > "wfs_abstract" "Servicio de > mapas WFS de IKT Nekazal Teknologia. Powered by Apache and > UMN MapServer" ## REQUIRED > "wfs_onlineresource" > "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/eje mplo_wfs.map&" ## Recommended > "wfs_srs" "EPSG:23030" ## Recommended > "wfs_keywordlist" > "IKT,Euskadi,Mapas Euskadi" > "wfs_fees" "none" > "wfs_accessconstraints" > "Ninguna" > "ows_contactorganization" > "http://www.ikt.es" > "wfs_geometry_element_name" > "MS_GEOMETRY" > END > END > > LAYER > DEBUG 5 > NAME "RecintosSigpac" > PROJECTION > "init=epsg:23030" > END > METADATA > "wfs_title" "Recintos Sigpac > 2009" ## REQUIRED > "wfs_abstract" "Recintos" > "wfs_name" "RecintosSigpac" > "wfs_geometry_element_name" > "MS_GEOMETRY" > "wfs_srs" "EPSG:23030" ## Recommended > "wfs_extent" > "463506.9978541628 4702558.185239193 603185.4988525142 > 4811754.780732273" > "gml_featureid" "gid" ## REQUIRED > "gml_include_items" "all" > END > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > CONNECTION "admcarto/admcarto at ORA10GEX" > > DATA "GEOMETRY FROM (SELECT * FROM > GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac > > DUMP TRUE ## REQUIRED > > CLASS > NAME "Municipios_Gipuzkoa" > STYLE > OUTLINECOLOR 255 255 255 > END > TEMPLATE "ms_template.html" > END > > > STATUS ON > END # Layer > > END # Map File > > ... GML part from the previous mail removed. From dalda at ikt.es Wed Jun 30 04:29:25 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Wed, 30 Jun 2010 13:29:25 +0200 Subject: [mapserver-users] Problems loading gml file in desktopgisretrieved from wfs [SOLVED] Message-ID: <224DBDAF88A6AC47BD22432815351BE0080A9459@nekaposta1> Jukka, Thanks for your response. It is something odd. This geometry is really tricky an complex, but I tried with other geometries and they were treated correctly by desktop gis applications and mapserver. I tested them with ogrinfo and they were ok. So I've tried what you told me, an it worked. Now I can retrieve the geometry correctly. Thanks for your help. Best regards. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Rahkonen Jukka Enviado el: mi?rcoles, 30 de junio de 2010 12:27 Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Problems loading gml file in desktopgisretrieved from wfs Hi, I captured your gml, saved in on disk and checked it with ogrinfo. The result is odd, it tells that the geometry is MULTIPOLYGON EMPTY. That makes me think that Mapserver has perhaps created invalid GML. d:\FWTools2.4.6>ogrinfo -al testgml.gml Had to open data source read-only. INFO: Open of `testgml.gml' using driver `GML' successful. Layer name: RecintosSigpac Geometry: Unknown (any) Feature Count: 1 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: (unknown) GID: Integer (0.0) PROVINCIA: Integer (0.0) MUNICIPIO: Integer (0.0) POLIGONO: Integer (0.0) PARCELA: Integer (0.0) RECINTO: Integer (0.0) DN_SURFACE: String (12.0) DN_PERIMET: String (11.0) PENDIENTE: Integer (0.0) ELEGIBILIDAD: Integer (0.0) COEF_REGAD: Integer (0.0) COEF_PASTO: Integer (0.0) USO_SIGPAC: Integer (0.0) USO_2003: Integer (0.0) PARCELA_AG: String (0.0) DN_OID: Integer (0.0) FECHA: String (8.0) OGRFeature(RecintosSigpac):0 GID (Integer) = 318187 PROVINCIA (Integer) = 1 MUNICIPIO (Integer) = 18 POLIGONO (Integer) = 5 PARCELA (Integer) = 1047 RECINTO (Integer) = 41 DN_SURFACE (String) = 887277,80103 DN_PERIMET (String) = 13888,79633 PENDIENTE (Integer) = 18 ELEGIBILIDAD (Integer) = 0 COEF_REGAD (Integer) = 0 COEF_PASTO (Integer) = 0 USO_SIGPAC (Integer) = 11 USO_2003 (Integer) = 11 PARCELA_AG (String) = DN_OID (Integer) = 1183712842 FECHA (String) = 01/01/10 MULTIPOLYGON EMPTY I also tried to convert the gml into shapefile with d:\FWTools2.4.6>ogr2ogr -f "ESRI Shapefile" testgml.shp testgml.gml The resulting shapefile contains all the attributes but no geometry. What I have experienced with WFS clients it that very often they cannot get features from WFS services on a map, or they success only with a certain WFS server mark, for example Geoserver of deegree, but not both. Reason may be in a slightly different ways used by clients for building WFS requests, especially with filters. Differences can be bugs, or then both ways are correct but the WFS server has been made to support only one way because developers have been busy with taking care of their own babies and they have not had time or interest to try other client/server combinations for checking the interoperability. It is not uncommon either that WFS server is sending the GML but client fails in parsing it. Sometimes saving the GML on disk and converting it to some other format with ogr2ogr helps because it is not trying to compare GML with all the schemas which are referred. More troubles comes from the big differences between WFS versions 1.0.0 and 1.1.0 like GML2 vs. GML3 and the famous axis order thing. For example, it look like WFS client developers working with deegree jumped into building 1.1.0 and left version 1.0.0 more of less unmaintained, even for many users WFS 1.0.0 would suit better. I saw your were using WFS 1.1.0. Try version 1.0.0 instead, it can be better supported by the clients. -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > Hi list, > > I'm having some problems loading a getFeature gml file retrieved from > a WFS served by MapServer. I can't load it in gvSIG, nor in uDig and > in Qgis. How many different ways are there to retrieve information > from a WFS server? > > MapServer Version: > 5.6.1 (the on included in ms4w package) > > My WFS Server > > MAP > NAME "wfs_server" > STATUS ON > > EXTENT 460000 4710000 610000 4820000 # Euskadi > > PROJECTION > "init=epsg:23030" > END > > SHAPEPATH "shapes/" > FONTSET "misc/fonts/fonts.txt" > > IMAGETYPE "image/png; mode=24bit" > IMAGECOLOR 255 255 255 > UNITS METERS > > DEBUG ON > CONFIG "MS_ERRORFILE" > "C:/ms4w/Apache/htdocs/MFD/tmp/ms_wfs.log" > DEBUG 5 > > WEB > IMAGEPATH "MFD/tmp/" > IMAGEURL "tmp/" > METADATA > "wfs_title" "IKT WFS Server" ## REQUIRED > "wfs_abstract" "Servicio de > mapas WFS de IKT Nekazal Teknologia. Powered by Apache and UMN > MapServer" ## REQUIRED > "wfs_onlineresource" > "http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/eje mplo_wfs.map&" ## Recommended > "wfs_srs" "EPSG:23030" ## Recommended > "wfs_keywordlist" > "IKT,Euskadi,Mapas Euskadi" > "wfs_fees" "none" > "wfs_accessconstraints" > "Ninguna" > "ows_contactorganization" > "http://www.ikt.es" > "wfs_geometry_element_name" > "MS_GEOMETRY" > END > END > > LAYER > DEBUG 5 > NAME "RecintosSigpac" > PROJECTION > "init=epsg:23030" > END > METADATA > "wfs_title" "Recintos Sigpac > 2009" ## REQUIRED > "wfs_abstract" "Recintos" > "wfs_name" "RecintosSigpac" > "wfs_geometry_element_name" > "MS_GEOMETRY" > "wfs_srs" "EPSG:23030" ## Recommended > "wfs_extent" > "463506.9978541628 4702558.185239193 603185.4988525142 > 4811754.780732273" > "gml_featureid" "gid" ## REQUIRED > "gml_include_items" "all" > END > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > CONNECTION "admcarto/admcarto at ORA10GEX" > > DATA "GEOMETRY FROM (SELECT * FROM > GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337" #todo el sigpac > > DUMP TRUE ## REQUIRED > > CLASS > NAME "Municipios_Gipuzkoa" > STYLE > OUTLINECOLOR 255 255 255 > END > TEMPLATE "ms_template.html" > END > > > STATUS ON > END # Layer > > END # Map File > > ... GML part from the previous mail removed. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From daniel.degasperi at r3-gis.com Wed Jun 30 06:00:55 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 30 Jun 2010 15:00:55 +0200 Subject: [mapserver-users] OGC spatial filter BBox Message-ID: <4C2B4007.6070306@r3-gis.com> Hi, does the spatial filter BBox described in http://mapserver.org/ogc/sld.html work? If I take look at the "full_request_6d" example, it seems the filter will be applied on all the geometries. I tried to apply a spatial BBox filter also on a set of polygons, but instead to change the color for the polygon within the given bbox, it changed the color of every geometry of my layer. Best regards, Daniel From matt.mendick at pictometry.com Wed Jun 30 07:43:32 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Wed, 30 Jun 2010 07:43:32 -0700 (PDT) Subject: [mapserver-users] php Mapscript conceptual question Message-ID: <1277909012096-5237807.post@n2.nabble.com> Hi All- I'm querying the group to find out if something is possible with php mapscript with mapserver 5.6.3. Mapserver works wonderfully at outputting wms graphics of layers for normally projected data. However, I have some data that is standardly projected (wgs84) but my output projection is completely nonstandard (I can't go into detail about what this projection is, but believe me it's not something I can do via standard methods via proj). I have an algorithm that transforms (given a particular bounding box) latitude/longitude pairs into output image coordinates. Is there any way for me to use mapscript to load in the raw wgs84 lat/lng pairs, run them through my algorithm, and output image coordinates to the renderer? Basically, is there any way for me to hijack the way mapserver normally goes about translating lat/lng pairs to image coordinates using mapscript? If I was unclear about anything, let me know, I appreciate any help anyone could offer. Thanks! -Matt Mendick -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/php-Mapscript-conceptual-question-tp5237807p5237807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Basques at ci.stpaul.mn.us Wed Jun 30 11:35:01 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 30 Jun 2010 13:35:01 -0500 Subject: [mapserver-users] A new (I think) question about Mapfile filtering . . . Message-ID: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us> All, Any ideas on how to fill an area that is not defined by a polygon. I'm basically after coloring the Right of way areas in the City based on them NOT being a Parcel. My first thought was to use a image background color, and paint the parcels a transparent color, am I on the right track? bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jun 30 11:42:00 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 30 Jun 2010 14:42:00 -0400 Subject: [mapserver-users] A new (I think) question about Mapfile filtering . . . In-Reply-To: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us> References: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4C2B8FF8.1070100@swoodbridge.com> Bob Basques wrote: > > > All, > > > Any ideas on how to fill an area that is not defined by a polygon. I'm > basically after coloring the Right of way areas in the City based on > them NOT being a Parcel. > > > My first thought was to use a image background color, and paint the > parcels a transparent color, am I on the right track? Bob, What format are you Right of Ways in? It sounds like they might be in a raster format. If that is the case you probably can do it either way. 1. raster as background, transparent parcel 2. parcels with fill, raster overlay using an opacity and a nodata flag in the raster. -Steve W From Bob.Basques at ci.stpaul.mn.us Wed Jun 30 11:46:46 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 30 Jun 2010 13:46:46 -0500 Subject: [mapserver-users] A new (I think) question about Mapfile filtering. . . In-Reply-To: <4C2B8FF8.1070100@swoodbridge.com> References: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us> <4C2B8FF8.1070100@swoodbridge.com> Message-ID: <4C2B4AC5.163B.00A8.0@ci.stpaul.mn.us> Stephen, I'm just trying to paint (with grey coloring) the areas in the City that are NOT Parcels, or should be considered public Right of way. bobb >>> Stephen Woodbridge wrote: Bob Basques wrote: > > > All, > > > Any ideas on how to fill an area that is not defined by a polygon. I'm > basically after coloring the Right of way areas in the City based on > them NOT being a Parcel. > > > My first thought was to use a image background color, and paint the > parcels a transparent color, am I on the right track? Bob, What format are you Right of Ways in? It sounds like they might be in a raster format. If that is the case you probably can do it either way. 1. raster as background, transparent parcel 2. parcels with fill, raster overlay using an opacity and a nodata flag in the raster. -Steve W _______________________________________________ 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 James.Card at calcad.com Wed Jun 30 11:56:22 2010 From: James.Card at calcad.com (James Card) Date: Wed, 30 Jun 2010 11:56:22 -0700 Subject: [mapserver-users] A new (I think) question about Mapfile filtering. . . In-Reply-To: <4C2B4AC5.163B.00A8.0@ci.stpaul.mn.us> References: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us> Message-ID: On Wed, 30 Jun 2010 11:46:46 -0700, Bob Basques wrote: > I'm just trying to paint (with grey coloring) the areas in the City that > are NOT Parcels, or should be considered public Right of way. Our approach to this is to make the background color of the map a light gray color, and make the parcel polygons a light orange, tan, or yellowish color with opacity set to about 50%. If we have a single polygon that represents the city boundary it typically gets a white color. The opacity values of each of these layers gets adjusted if we also have aerial photos to display under them. -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX From asi135 at gmail.com Wed Jun 30 17:23:10 2010 From: asi135 at gmail.com (Asif) Date: Thu, 1 Jul 2010 07:23:10 +0700 Subject: [mapserver-users] msLoadMap(): Unable to access file. (/ms4w/apps/mapserv-demo/itasca.map) Message-ID: Dear All, I have installed the UMN Mapserver and configured it according to instructions given in manual but its giving the erro "msLoadMap(): Unable to access file. (/ms4w/apps/mapserv-demo/itasca.map) " when I try to load the demo application. I have follow the instructions in readme file but its not working. can any body help please? -- Asif -------------- next part -------------- An HTML attachment was scrubbed... URL: From tschobber at gmx.at Wed Jun 30 22:57:37 2010 From: tschobber at gmx.at (=?iso-8859-1?Q?=22tschobber_tsch=F6bbi=22?=) Date: Thu, 01 Jul 2010 07:57:37 +0200 Subject: [mapserver-users] RE: Problem with rectangular queries Message-ID: <20100701055737.302120@gmx.net> Solution: just upgrade mapserver - problem was a bug in ms v5.6.1 -- Sicherer, schneller und einfacher. Die aktuellen Internet-Browser - jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser