From boolean10001 at yahoo.com Mon Mar 2 09:03:47 2020 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 2 Mar 2020 17:03:47 +0000 (UTC) Subject: [mapserver-users] Validation regex question References: <1344451721.3082480.1583168627970.ref@mail.yahoo.com> Message-ID: <1344451721.3082480.1583168627970@mail.yahoo.com> Hello all, Yesterday I binded Mapserver generated images on a Shiny (R) application through CGI and I had to include a VALIDATION section for being able to send values as variables for filtering. I wonder why it didn't allow me specify something like "^[TRUE|FALSE]$" or "^TRUE|FALSE$" to validate a boolean value but "^[A-Z]{4,5}$". However, I don't know if it's possible to define some well-known regex flags in code like "[:INTEGER:]" for "^[0-9]+$", "[:DOUBLE:]" for "^[0-9]+[.][0-9]+$" or "[:BOOLEAN:]" for "^[TRUE|FALSE]$" or "^[tT|fF]$". I understand that leaving it open is more flexible and it's ok, but perhaps adding these flags can be easier to use. I don't know, what do you think ? MSc. Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From efujioka at duke.edu Mon Mar 2 14:30:03 2020 From: efujioka at duke.edu (Ei Fujioka) Date: Mon, 2 Mar 2020 22:30:03 +0000 Subject: [mapserver-users] Mapserver 6.4 does not draw dense line segments at lower zoom levels. Why? Message-ID: Hello all, I'm upgrading a web site that I have been developing for many years. The web site uses Mapserver & Mapscript along with PHP. Mapserver layers are drawn on top of Google Maps using Javascript. What I'm struggling to figure out is that a line layer is not drawn at lower zoom levels with Mapserver & Mapscript 6.4 and PHP 5.4.16. When zooming in, the lines will start getting drawn but still not fully. The same layer was drawn at any zoom levels without any problem under Mapserver 5.2 and PHP 5.2.6. Are there any mapfile settings (new to Mapserver 6.4 or changed from Mapserver 5.2) that limit the number of line segments to be drawn at unit cell or affects how the lines are drawn at differently zoom levels? Are there any limits in Mapscript/PHP regarding data size to fetch or draw? The line data of the layer is stored in a PostgreSQL table which has a lot of records (~270,000 line segments). If the line layer does not have such a large number of records (e.g. ~10,000), it draws fine. Please take a look at an image (screenshots) that shows how the lines are drawn differently between Mapserver 5.2 and Mapserver 6.4: http://seamap.env.duke.edu/images/mapserver6_4_not_draw_lines.png The new web site is not publicly available yet, so I can't let you explore but the existing web site that draws the example line layer fine can be accessed at http://seamap.env.duke.edu/dataset/2001 # Please turn on "Survey tracks" in the Layer selection. The snippet of the mapfile is below. Thanks for your help in advance! Ei Fujioka Duke University === Mapfile === MAP ? EXTENT -20001364 -15000982 20001253 15000982 ? IMAGETYPE "PNG" ? NAME "OBIS-SEAMAP_OGC_SERVICES" ? SIZE 256 256 ? STATUS ON ? TRANSPARENT TRUE ? UNITS METERS ? OUTPUTFORMAT ??? NAME "PNG" ??? MIMETYPE "image/png" ??? DRIVER "AGG/PNG" ??? EXTENSION "png" ??? IMAGEMODE RGBA ??? TRANSPARENT TRUE ? END # OUTPUTFORMAT ? PROJECTION ??? "init=epsg:3857" ? END # PROJECTION SYMBOL ? NAME "solid_line" ? TYPE ELLIPSE ? POINTS ??? 1 1 ? END ??? FILLED true END ? WEB ??? IMAGEPATH "/var/www/tmp/" ??? IMAGEURL "/tmp/" ??? METADATA ????? "wms_srs"??? "EPSG:3857 EPSG:4326" ????? "ows_enable_request"??? "*" ????? "wms_title"??? "Online Mapper" ??? END # METADATA ? END # WEB ? LAYER ??? CLASSITEM "classitem_dataset" ??? CONNECTION "user=xxx password=xxx dbname=xxx host=xxx" ??? CONNECTIONTYPE POSTGIS ??? DATA "geom from (SELECT ..., as classitem_dataset, 'solid_line' as symbol FROM z_tracks WHERE ...) AS foo USING UNIQUE oid USING SRID=4326" ??? METADATA ????? "wms_legend_graphic"??? "true" ????? "gml_featureid"??? "oid" ????? "title"??? "Survey tracklines" ????? "gml_include_items"??? "all" ????? "wms_title"??? "Survey tracklines" ??? END # METADATA ??? NAME "survey_tracks" ??? PROJECTION ????? "init=epsg:4326" ??? END # PROJECTION ??? STATUS OFF ??? TILEITEM "location" ??? TOLERANCE 1 ??? TYPE LINE ??? UNITS METERS ??? CLASS ????? NAME "class_0" ????? EXPRESSION "0_ON" ????? STYLE ??????? ANGLE 360 ??????? COLOR 255 0 0 ??????? OUTLINECOLOR 255 0 0 ??????? SIZE 2 ??????? SYMBOL [symbol] ????? END # STYLE ??? END # CLASS ??? # In total 60 CLASS ... END are defined ? END # LAYER -- ======================== Ei Fujioka Research Scientist Nicholas School Duke University (919) 684-3518 efujioka at duke.edu ======================== From sdlime at gmail.com Mon Mar 2 16:26:03 2020 From: sdlime at gmail.com (Steve Lime) Date: Mon, 2 Mar 2020 18:26:03 -0600 Subject: [mapserver-users] Mapserver 6.4 does not draw dense line segments at lower zoom levels. Why? In-Reply-To: References: Message-ID: Hi! My guess is your v.5 style is being interpreted differently in v.6. For example, what?s the purpose of the ANGLE 360? There were some big changes between versions 5 and 6. For example you don?t have to use a circular brush to draw a thick line. You should be able to do something much simpler like: STYLE COLOR 0 0 255 WIDTH 2 END ?Steve On Mon, Mar 2, 2020 at 4:48 PM Ei Fujioka wrote: > Hello all, > > I'm upgrading a web site that I have been developing for many years. The > web site uses Mapserver & Mapscript along with PHP. Mapserver layers are > drawn on top of Google Maps using Javascript. > > What I'm struggling to figure out is that a line layer is not drawn at > lower zoom levels with Mapserver & Mapscript 6.4 and PHP 5.4.16. When > zooming in, the lines will start getting drawn but still not fully. > > The same layer was drawn at any zoom levels without any problem under > Mapserver 5.2 and PHP 5.2.6. > > Are there any mapfile settings (new to Mapserver 6.4 or changed from > Mapserver 5.2) that limit the number of line segments to be drawn at > unit cell or affects how the lines are drawn at differently zoom levels? > Are there any limits in Mapscript/PHP regarding data size to fetch or > draw? The line data of the layer is stored in a PostgreSQL table which > has a lot of records (~270,000 line segments). If the line layer does > not have such a large number of records (e.g. ~10,000), it draws fine. > > Please take a look at an image (screenshots) that shows how the lines > are drawn differently between Mapserver 5.2 and Mapserver 6.4: > http://seamap.env.duke.edu/images/mapserver6_4_not_draw_lines.png > > The new web site is not publicly available yet, so I can't let you > explore but the existing web site that draws the example line layer fine > can be accessed at > http://seamap.env.duke.edu/dataset/2001 > # Please turn on "Survey tracks" in the Layer selection. > > > The snippet of the mapfile is below. > Thanks for your help in advance! > > Ei Fujioka > Duke University > > > === Mapfile === > MAP > EXTENT -20001364 -15000982 20001253 15000982 > IMAGETYPE "PNG" > NAME "OBIS-SEAMAP_OGC_SERVICES" > SIZE 256 256 > STATUS ON > TRANSPARENT TRUE > UNITS METERS > > OUTPUTFORMAT > NAME "PNG" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGBA > TRANSPARENT TRUE > END # OUTPUTFORMAT > > PROJECTION > "init=epsg:3857" > END # PROJECTION > > SYMBOL > NAME "solid_line" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED true > END > > WEB > IMAGEPATH "/var/www/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_srs" "EPSG:3857 EPSG:4326" > "ows_enable_request" "*" > "wms_title" "Online Mapper" > END # METADATA > END # WEB > > LAYER > CLASSITEM "classitem_dataset" > CONNECTION "user=xxx password=xxx dbname=xxx host=xxx" > CONNECTIONTYPE POSTGIS > DATA "geom from (SELECT ..., as classitem_dataset, 'solid_line' as > symbol FROM z_tracks WHERE ...) AS foo USING UNIQUE oid USING SRID=4326" > METADATA > "wms_legend_graphic" "true" > "gml_featureid" "oid" > "title" "Survey tracklines" > "gml_include_items" "all" > "wms_title" "Survey tracklines" > END # METADATA > NAME "survey_tracks" > PROJECTION > "init=epsg:4326" > END # PROJECTION > STATUS OFF > TILEITEM "location" > TOLERANCE 1 > TYPE LINE > UNITS METERS > CLASS > NAME "class_0" > EXPRESSION "0_ON" > STYLE > ANGLE 360 > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SIZE 2 > SYMBOL [symbol] > END # STYLE > END # CLASS > > # In total 60 CLASS ... END are defined > END # LAYER > > > -- > ======================== > Ei Fujioka > Research Scientist > Nicholas School > Duke University > > (919) 684-3518 > efujioka at duke.edu > ======================== > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From efujioka at duke.edu Tue Mar 3 06:20:27 2020 From: efujioka at duke.edu (Ei Fujioka) Date: Tue, 3 Mar 2020 14:20:27 +0000 Subject: [mapserver-users] Mapserver 6.4 does not draw dense line segments at lower zoom levels. Why? In-Reply-To: References: Message-ID: Thanks, Steve, so much for a quick insight! Yes, the simpler STYLE was the key to fix the problem. In particular, I think, as you indicated, the unnecessary SYMBOL was the culprit. I didn't need it as the line was just a solid line. And I had to change SIZE 2 to WIDTH 1.5 (WIDTH 2 was a little bit thicker than I preferred). Now the lines draw quick at any zoom levels! Thanks again! Ei On 3/2/2020 7:26 PM, Steve Lime wrote: Hi! My guess is your v.5 style is being interpreted differently in v.6. For example, what?s the purpose of the ANGLE 360? There were some big changes between versions 5 and 6. For example you don?t have to use a circular brush to draw a thick line. You should be able to do something much simpler like: STYLE COLOR 0 0 255 WIDTH 2 END ?Steve On Mon, Mar 2, 2020 at 4:48 PM Ei Fujioka > wrote: Hello all, I'm upgrading a web site that I have been developing for many years. The web site uses Mapserver & Mapscript along with PHP. Mapserver layers are drawn on top of Google Maps using Javascript. What I'm struggling to figure out is that a line layer is not drawn at lower zoom levels with Mapserver & Mapscript 6.4 and PHP 5.4.16. When zooming in, the lines will start getting drawn but still not fully. The same layer was drawn at any zoom levels without any problem under Mapserver 5.2 and PHP 5.2.6. Are there any mapfile settings (new to Mapserver 6.4 or changed from Mapserver 5.2) that limit the number of line segments to be drawn at unit cell or affects how the lines are drawn at differently zoom levels? Are there any limits in Mapscript/PHP regarding data size to fetch or draw? The line data of the layer is stored in a PostgreSQL table which has a lot of records (~270,000 line segments). If the line layer does not have such a large number of records (e.g. ~10,000), it draws fine. Please take a look at an image (screenshots) that shows how the lines are drawn differently between Mapserver 5.2 and Mapserver 6.4: http://seamap.env.duke.edu/images/mapserver6_4_not_draw_lines.png The new web site is not publicly available yet, so I can't let you explore but the existing web site that draws the example line layer fine can be accessed at http://seamap.env.duke.edu/dataset/2001 # Please turn on "Survey tracks" in the Layer selection. The snippet of the mapfile is below. Thanks for your help in advance! Ei Fujioka Duke University === Mapfile === MAP EXTENT -20001364 -15000982 20001253 15000982 IMAGETYPE "PNG" NAME "OBIS-SEAMAP_OGC_SERVICES" SIZE 256 256 STATUS ON TRANSPARENT TRUE UNITS METERS OUTPUTFORMAT NAME "PNG" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT TRUE END # OUTPUTFORMAT PROJECTION "init=epsg:3857" END # PROJECTION SYMBOL NAME "solid_line" TYPE ELLIPSE POINTS 1 1 END FILLED true END WEB IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" METADATA "wms_srs" "EPSG:3857 EPSG:4326" "ows_enable_request" "*" "wms_title" "Online Mapper" END # METADATA END # WEB LAYER CLASSITEM "classitem_dataset" CONNECTION "user=xxx password=xxx dbname=xxx host=xxx" CONNECTIONTYPE POSTGIS DATA "geom from (SELECT ..., as classitem_dataset, 'solid_line' as symbol FROM z_tracks WHERE ...) AS foo USING UNIQUE oid USING SRID=4326" METADATA "wms_legend_graphic" "true" "gml_featureid" "oid" "title" "Survey tracklines" "gml_include_items" "all" "wms_title" "Survey tracklines" END # METADATA NAME "survey_tracks" PROJECTION "init=epsg:4326" END # PROJECTION STATUS OFF TILEITEM "location" TOLERANCE 1 TYPE LINE UNITS METERS CLASS NAME "class_0" EXPRESSION "0_ON" STYLE ANGLE 360 COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 2 SYMBOL [symbol] END # STYLE END # CLASS # In total 60 CLASS ... END are defined END # LAYER -- ======================== Ei Fujioka Research Scientist Nicholas School Duke University (919) 684-3518 efujioka at duke.edu ======================== _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- ======================== Ei Fujioka Research Scientist Nicholas School Duke University (919) 684-3518 efujioka at duke.edu ======================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From martinover at gmx.de Tue Mar 3 23:13:25 2020 From: martinover at gmx.de (Martin Over) Date: Wed, 4 Mar 2020 08:13:25 +0100 Subject: [mapserver-users] URL configuration Style Symbol not changing Message-ID: Hi, according to the migration guide this schould work: ...&map.layer[lakes].class[0].style[0]=SYMBOL+crosshatch+COLOR+151+51+151+SIZE+15&... Every other Parameter works fine, but the SYMBOL is ignored und the default SYMBOL is rendered. The is nothing in the logs, DEBUG Level 5. Is there a special validation required? Best regards, Martin From mh at mapcentia.com Wed Mar 4 02:58:48 2020 From: mh at mapcentia.com (Martin Hoegh) Date: Wed, 4 Mar 2020 11:58:48 +0100 Subject: [mapserver-users] MapServer WFS server with PostGIS doesn't respects the axis order defined by the EPSG definition Message-ID: <5523EFD9-FC06-46A1-9023-6A96AE5F182E@mapcentia.com> I send this filter in a WFS GET request: &filter=the_geom9.65370556674251 55.5315919660268 11.0768630778924 55.5315919660268 11.0768630778924 55.2775349059761 9.65370556674251 55.2775349059761 9.65370556674251 55.5315919660268 In PostgreSQL these WHERE clauses are used for respectively VERSION=1.0.0 and 1.1.0: 1.0.0: (st_intersects(the_geom,ST_GeomFromText('POLYGON ((9.6537055667425093 55.5315919660268023, 11.0768630778923995 55.5315919660268023, 11.0768630778923995 55.2775349059760970, 9.6537055667425093 55.2775349059760970, 9.6537055667425093 55.5315919660268023))',4326)) = TRUE) 1.1.0: (st_intersects(the_geom,ST_GeomFromText('POLYGON ((55.5315919660268023 9.6537055667425093, 55.5315919660268023 11.0768630778923995, 55.2775349059760970 11.0768630778923995, 55.2775349059760970 9.6537055667425093, 55.5315919660268023 9.6537055667425093))',4326)) = TRUE) The the 1.1.0 request the axis order is being flipped in the WHERE clause (is lat/lon). But shouldn't WFS 1.1.0 respect the axis order defined by the EPSG definition? To me it seems that MapServer is always flipping axis order when using version > 1.0.0 regardless of EPSG definition. Can this be right? Axis orders (taken from GeoServer web-site): EPSG:4326 longitude/latitude assumption http://www.opengis.net/gml/srs/epsg.xml#xxxx longitude/latitude strict urn:x-ogc:def:crs:EPSG:xxxx latitude/longitude strict urn:ogc:def:crs:EPSG::4326 latitude/longitude strict Regards Martin H?gh mapcentia.com From sdlime at gmail.com Wed Mar 4 09:53:09 2020 From: sdlime at gmail.com (Steve Lime) Date: Wed, 4 Mar 2020 11:53:09 -0600 Subject: [mapserver-users] URL configuration Style Symbol not changing In-Reply-To: References: Message-ID: There's no attempt to turn the name into a symbol index after the mapfile is initially parsed so it looks like you need to reference the symbol index directly in this case. So for a polygon a value of 0 would get you a solid fill, and so on. On Wed, Mar 4, 2020 at 1:18 AM Martin Over wrote: > Hi, according to the migration guide this schould work: > > ...&map.layer[lakes].class[0].style[0]=SYMBOL+crosshatch+COLOR+151+51+151+SIZE+15&... > Every other Parameter works fine, but the SYMBOL is ignored und the > default SYMBOL is rendered. > The is nothing in the logs, DEBUG Level 5. > Is there a special validation required? > > Best regards, > > Martin > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannespaul92 at gmail.com Thu Mar 5 02:29:39 2020 From: johannespaul92 at gmail.com (Johannes Paul) Date: Thu, 5 Mar 2020 11:29:39 +0100 Subject: [mapserver-users] Mapcache : Incompatible libpng version in application and library In-Reply-To: <4555029.gsdy6tMXvh@even-i700> References: <4555029.gsdy6tMXvh@even-i700> Message-ID: I had indeed gdal running with libpng-1.2.56, while mapcache was compiled with libpng-1.5.13. Thanks a lot for your help. Johannes Le ven. 28 f?vr. 2020 ? 18:48, Even Rouault a ?crit : > On vendredi 28 f?vrier 2020 11:38:38 CET Steve Lime wrote: > > I'd think you must multiple libpng installed. Did you search your system > > independent of the package manager? > > libpng-1.2.56 rings a bell to me. This is copy of libpng that is embedded > in > GDAL source tree. So you'd better make sure that your GDAL is built > against > system libpng, instead of the internal copy. > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From domenico.febbo at gmail.com Thu Mar 5 06:04:54 2020 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Thu, 5 Mar 2020 15:04:54 +0100 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 Message-ID: Dears I want to build last mapserver 7.4.3 on centos 8 with gdal but I receive following error at 70% of make command "/usr/gdal30/lib/libgdal.so.26 undefined symbol geosmakevalid_r" some info: CentOS 8 kernel: 4.18.0-147.5.1.el8_1.x86_64 mapserver src: mapserver-7.4.3 gdal: gdal30.x86_64 3.0.4-2.rhel8 @pgdg12 gdal30-devel.x86_64 3.0.4-2.rhel8 @pgdg12 gdal30-libs.x86_64 3.0.4-2.rhel8 @pgdg12 mapserver cmake command: cmake -DCMAKE_PREFIX_PATH="/usr/gdal30;/usr/pgsql-12;/usr/local" -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_PHP=ON -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF ../ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 5 09:10:04 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 5 Mar 2020 13:10:04 -0400 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: <6cb9f425-aada-6960-9175-17e19e33ed63@gatewaygeomatics.com> I believe you are missing the GEOS library: compile 3.8.0 from https://trac.osgeo.org/geos/ and then add the switch to MapServer compile (WITH_GEOS=1). -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-05 10:04 a.m., Domenico Febbo wrote: > Dears > I want to build last mapserver 7.4.3 on centos 8 with gdal but I receive > following error at 70% of make command > "/usr/gdal30/lib/libgdal.so.26 undefined symbol geosmakevalid_r" > > some info: > CentOS 8 kernel:?4.18.0-147.5.1.el8_1.x86_64 > mapserver src:?mapserver-7.4.3 > gdal: > gdal30.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-devel.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-libs.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > > mapserver cmake command: > cmake -DCMAKE_PREFIX_PATH="/usr/gdal30;/usr/pgsql-12;/usr/local" > -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON ?-DWITH_CURL=ON -DWITH_PHP=ON > -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF > -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF ../ > > ____ From jmckenna at gatewaygeomatics.com Thu Mar 5 09:11:59 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 5 Mar 2020 13:11:59 -0400 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires GEOS. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-05 10:04 a.m., Domenico Febbo wrote: > Dears > I want to build last mapserver 7.4.3 on centos 8 with gdal but I receive > following error at 70% of make command > "/usr/gdal30/lib/libgdal.so.26 undefined symbol geosmakevalid_r" > > some info: > CentOS 8 kernel:?4.18.0-147.5.1.el8_1.x86_64 > mapserver src:?mapserver-7.4.3 > gdal: > gdal30.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-devel.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-libs.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > > mapserver cmake command: > cmake -DCMAKE_PREFIX_PATH="/usr/gdal30;/usr/pgsql-12;/usr/local" > -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON ?-DWITH_CURL=ON -DWITH_PHP=ON > -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF > -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF ../ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu Mar 5 09:27:05 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 5 Mar 2020 13:27:05 -0400 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: <5264658.HpSgdfGQFN@even-i700> References: <5264658.HpSgdfGQFN@even-i700> Message-ID: <616bb5e0-fcb3-eea7-71b7-b8ebd6c983c4@gatewaygeomatics.com> On 2020-03-05 1:23 p.m., Even Rouault wrote: > On jeudi 5 mars 2020 13:11:59 CET Jeff McKenna wrote: >> Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires >> GEOS. -jeff > > There's no GDAL > 3 for now ;-) But, joke aside, GDAL 3 doesn't change > requirements regarding GEOS. GEOS is a recommended dependency, but not a > compulsory one. Only PROJ >= 6 is a compulsory dependency for GDAL >= 3 > Right, sorry for my statement, of course related to PROJ. thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Thu Mar 5 09:29:51 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 5 Mar 2020 13:29:51 -0400 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: <616bb5e0-fcb3-eea7-71b7-b8ebd6c983c4@gatewaygeomatics.com> References: <5264658.HpSgdfGQFN@even-i700> <616bb5e0-fcb3-eea7-71b7-b8ebd6c983c4@gatewaygeomatics.com> Message-ID: On 2020-03-05 1:27 p.m., Jeff McKenna wrote: > On 2020-03-05 1:23 p.m., Even Rouault wrote: >> On jeudi 5 mars 2020 13:11:59 CET Jeff McKenna wrote: >>> Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires >>> GEOS.? -jeff >> >> There's no GDAL > 3 for now ;-) But, joke aside, GDAL 3 doesn't change >> requirements regarding GEOS. GEOS is a recommended dependency, but not a >> compulsory one. Only PROJ >= 6 is a compulsory dependency for GDAL >= 3 >> > > Right, sorry for my statement, of course related to PROJ.? thanks! -jeff > > My wording is off again, darn, I should have said "of course, only PROJ". carry-on :) -jeff From jmckenna at gatewaygeomatics.com Thu Mar 5 09:39:44 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 5 Mar 2020 13:39:44 -0400 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: @Domenico, I personally always include GEOS in my GDAL and MapServer builds. I would try adding that to your process. -jeff On 2020-03-05 10:04 a.m., Domenico Febbo wrote: > Dears > I want to build last mapserver 7.4.3 on centos 8 with gdal but I receive > following error at 70% of make command > "/usr/gdal30/lib/libgdal.so.26 undefined symbol geosmakevalid_r" > > some info: > CentOS 8 kernel:?4.18.0-147.5.1.el8_1.x86_64 > mapserver src:?mapserver-7.4.3 > gdal: > gdal30.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-devel.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > gdal30-libs.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3.0.4-2.rhel8 > ? ? ? ? ? ? ? ? ? ? ? ? ? ? @pgdg12 > > mapserver cmake command: > cmake -DCMAKE_PREFIX_PATH="/usr/gdal30;/usr/pgsql-12;/usr/local" > -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON ?-DWITH_CURL=ON -DWITH_PHP=ON > -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF > -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF ../ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From even.rouault at spatialys.com Thu Mar 5 09:23:11 2020 From: even.rouault at spatialys.com (Even Rouault) Date: Thu, 05 Mar 2020 18:23:11 +0100 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: <5264658.HpSgdfGQFN@even-i700> On jeudi 5 mars 2020 13:11:59 CET Jeff McKenna wrote: > Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires > GEOS. -jeff There's no GDAL > 3 for now ;-) But, joke aside, GDAL 3 doesn't change requirements regarding GEOS. GEOS is a recommended dependency, but not a compulsory one. Only PROJ >= 6 is a compulsory dependency for GDAL >= 3 Even -- Spatialys - Geospatial professional services http://www.spatialys.com From domenico.febbo at gmail.com Thu Mar 5 14:03:05 2020 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Thu, 5 Mar 2020 23:03:05 +0100 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: Dears issue was solved as you suggested arranging right version of GEOS, GDAL and PROJ see my working cmake command cmake -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_PHP=ON -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF -DWITH_GEOS=ON ../ Regards, > Date: Thu, 05 Mar 2020 18:23:11 +0100 > From: Even Rouault > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal > 3.0.4 > Message-ID: <5264658.HpSgdfGQFN at even-i700> > Content-Type: text/plain; charset="us-ascii" > > On jeudi 5 mars 2020 13:11:59 CET Jeff McKenna wrote: > > Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires > > GEOS. -jeff > > There's no GDAL > 3 for now ;-) But, joke aside, GDAL 3 doesn't change > requirements regarding GEOS. GEOS is a recommended dependency, but not a > compulsory one. Only PROJ >= 6 is a compulsory dependency for GDAL >= 3 > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------ > > End of mapserver-users Digest, Vol 146, Issue 4 > *********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From domenico.febbo at gmail.com Fri Mar 6 06:38:42 2020 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Fri, 6 Mar 2020 15:38:42 +0100 Subject: [mapserver-users] php_mapscript throubleshoot Message-ID: Dears after successully compilation of mapserver 7.4.3 on centos 8, I'm not able to load php_mapscript on PHP environment, (nothing related to mapscript is displayed on phpinfo(); some info: cmake -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" -DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON -DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../ -- /usr/include/php/main -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) -- Found SWIG: /usr/local/bin/swig (found version "4.0.1") -- /usr/include/php/main -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) -- PHP Include Path: /usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP include paths -- * Summary of configured options for this build -- * Mandatory components -- * png: /usr/lib64/libpng.so -- * jpeg: /usr/lib64/libjpeg.so -- * freetype: /usr/lib64/libfreetype.so -- * Optional components -- * GDAL: /usr/gdal30/lib/libgdal.so -- * OGR: /usr/gdal30/lib/libgdal.so -- * GIF: /usr/lib64/libgif.so -- * MYSQL: disabled -- * FRIBIDI: /usr/lib64/libfribidi.so -- * HARFBUZZ: /usr/lib64/libharfbuzz.so -- * GIF: /usr/lib64/libgif.so -- * CAIRO: disabled -- * SVGCAIRO: disabled -- * RSVG: disabled -- * CURL: /usr/lib64/libcurl.so -- * PROJ: /usr/proj63/lib/libproj.so -- * PIXMAN: disabled -- * LIBXML2: /usr/lib64/libxml2.so -- * POSTGIS: /usr/pgsql-12/lib/libpq.so -- * GEOS: /usr/geos38/lib64/libgeos_c.so -- * FastCGI: /usr/lib64/libfcgi.so -- * PROTOBUFC: disabled -- * Oracle Spatial: disabled -- * Exempi XMP: disabled -- * Optional features -- * WMS SERVER: ENABLED -- * WFS SERVER: ENABLED -- * WCS SERVER: ENABLED -- * SOS SERVER: disabled -- * WMS CLIENT: ENABLED -- * WFS CLIENT: ENABLED -- * ICONV: ENABLED -- * Thread-safety support: disabled -- * KML output: disabled -- * Z+M point coordinate support: disabled -- * XML Mapfile support: disabled -- * Mapscripts -- * Python: disabled -- * PHP: ENABLED -- * PHPNG: ENABLED -- * PERL: disabled -- * RUBY: disabled -- * JAVA: disabled -- * C#: disabled -- * V8 Javascript: disabled -- * Apache Module (Experimental): disabled -- -- Will install files to /usr/local -- Will install libraries to /usr/local/lib -- Configuring done -- Generating done after make; make install I can check: # mapserv -v MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG 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=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE lib is in the right place: /usr/lib64/php/modules/php_mapscript.so and extension is configured: /etc/php.d/30-php_mapscript.ini ; Enable mapserver extension module extension=php_mapscript Do you have any idea how to check if the module is loaded? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri Mar 6 14:31:36 2020 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 6 Mar 2020 22:31:36 +0000 Subject: [mapserver-users] OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: All, Sorry, I?ve been quiet on where the next meeting was going to be at. Our last get together had a good turnout. Pic1 Pic2 Pic3 Pic4 This months meet up will be at Holman?s Table at Holman Field in Downtown Saint Paul. 4:30 Pm. See you there. bobb OSGeo Local Chapter (aka TCMUG) Meeting Scheduled: Mar 11, 2020 at 4:30 PM to 6:00 PM Location: 644 Bayfield St, Saint Paul, MN 55107, United States -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iCal-20200306-154817.ics Type: text/calendar Size: 1556 bytes Desc: iCal-20200306-154817.ics URL: From jpass at bgs.ac.uk Mon Mar 9 04:35:12 2020 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Mon, 9 Mar 2020 11:35:12 +0000 Subject: [mapserver-users] MapServer WFS server with PostGIS doesn't Message-ID: Not sure Date: Wed, 4 Mar 2020 11:58:48 +0100 From: Martin Hoegh To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer WFS server with PostGIS doesn't respects the axis order defined by the EPSG definition Message-ID: <5523EFD9-FC06-46A1-9023-6A96AE5F182E at mapcentia.com> Content-Type: text/plain;charset=utf-8 > The 1.1.0 request the axis order is being flipped in the WHERE clause (is lat/lon). But shouldn't WFS 1.1.0 respect the axis order defined by the EPSG definition? I'm not sure I understand this statement in your question. The EPSG:4326 definition (http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::4326) is lat/long. James This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UK Research and Innovation does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. Opinions, conclusions or other information in this message and attachments that are not related directly to UK Research and Innovation business are solely those of the author and do not represent the views of UK Research and Innovation. From bob.basques at ci.stpaul.mn.us Mon Mar 9 07:30:57 2020 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 9 Mar 2020 14:30:57 +0000 Subject: [mapserver-users] Embedbed Web form on a Map. Message-ID: Hi, Was wondering if anyone has seen/built an example of embedding (or overlaying) a web form on top of a map. Basically I want to be able to edit attributes of a feature right in the map. Click the feature, and a form appears related to the actual feature. Labels /FORM elements follow a polyline for example. My first aplication will apply some Address range setting form elements to each end of a line for editing. I?ve already figured out how to display the elements in a raster output through Mapserver, but still pondering the web (edit) form aspects. Some initial thoughts: * Could a output template be devised to output a rotated (CSS) web form with the approriate pixel spacing of the elements right from Mapserver. I think so, even so far as rotating individual form elements in the result. Seems like a bit of an uphill battle though . . . * Could a LandScape/Portrait FORM have a rotated background image applied to it, based on the preplanned end point locations on the map. This actually seems the quickest to implement, but I wonder if it helps at all with other feature types, or if it would be specific to this first need. It would be nice to implement a method for any feature type for example, like being able to edit the edges of a polygon. My first need: [***] = FORM elements (attributes for editing) [min_left_add] [street_name] [max_left_add] O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - O From joerg.thomsen at wheregroup.com Mon Mar 9 07:55:04 2020 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Mon, 9 Mar 2020 15:55:04 +0100 Subject: [mapserver-users] question on demo.mapserver.org Message-ID: Hello, could please anyone tell me how the classitem for the layer continents of https://demo.mapserver.org/cgi-bin/wms? is named? I want to create demo-request for wms ogc-filter. Viele Gr??e, J?rg -- ************************************************ QGIS Experience Day - jetzt kostenfrei anmelden! 2. April 2020 in Berlin | https://qgis-day.com/ ************************************************ J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From jmckenna at gatewaygeomatics.com Mon Mar 9 08:06:17 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 9 Mar 2020 12:06:17 -0300 Subject: [mapserver-users] question on demo.mapserver.org In-Reply-To: References: Message-ID: Hi J?rg, Regarding that WMS service[1] here is the classitem syntax: CLASSITEM 'NA3DESC' With an example value of 'Africa' or 'Europe . [1] https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-09 11:55 a.m., J?rg Thomsen (WhereGroup) wrote: > Hello, > > could please anyone tell me how the classitem for the layer > continents of https://demo.mapserver.org/cgi-bin/wms? is named? > > I want to create demo-request for wms ogc-filter. > > Viele Gr??e, > J?rg > From jmckenna at gatewaygeomatics.com Mon Mar 9 08:22:27 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 9 Mar 2020 12:22:27 -0300 Subject: [mapserver-users] question on demo.mapserver.org In-Reply-To: References: Message-ID: <744f6006-ae4a-d33f-915b-92aeb93c378a@gatewaygeomatics.com> On 2020-03-09 11:55 a.m., J?rg Thomsen (WhereGroup) wrote: > Hello, > > could please anyone tell me how the classitem for the layer > continents of https://demo.mapserver.org/cgi-bin/wms? is named? > > I want to create demo-request for wms ogc-filter. > > Viele Gr??e, > J?rg > Also, if you ever need a change made to the demo services (such as adding an OUTPUTFORMAT etc.) then please file a ticket in the docs repository (https://github.com/mapserver/docs). thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From jp.chenel at LIVE.CA Mon Mar 9 11:45:05 2020 From: jp.chenel at LIVE.CA (Jean-Philippe Chenel) Date: Mon, 9 Mar 2020 18:45:05 +0000 Subject: [mapserver-users] MapCache Larger tiles, reduce number of files Message-ID: Hi, With MapCache, I want to generate the tiles that will be copied to a mobile device, on a viewer created with OpenLayers. When generating a large extent, with multiple levels of zoom, the files count is really big, so I want to reduce the number of files by increasing the tile size. I've made a test with tiles 512x512, but I've realized that the resolution must be changed when changing tiles size. So, the tiles are bigger, but changing the resolution make generating the same number of files. I'm open for workaround and other tricks. mapcache.xml GoogleMaps512 -20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480 EPSG:3857 EPSG:900913 m 512 512 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 vmap0 tmpl_xyz GoogleMaps512 PNG With best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenwoodbridge37 at gmail.com Mon Mar 9 11:56:28 2020 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Mon, 9 Mar 2020 14:56:28 -0400 Subject: [mapserver-users] MapCache Larger tiles, reduce number of files In-Reply-To: References: Message-ID: Jean-Philippe, I don't think it works like that. Resolution is determined by zoom factor so you generate? metatile at that resolution then you chop that metatile in tiles of whatever size you specify. So resolution is controled by zoom not tile size. -Steve W On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote: > Hi, > > With MapCache, I want to generate the tiles that will be copied to a > mobile device, on a viewer created with OpenLayers. > > When generating a large extent, with multiple levels of zoom, the > files count is really big, so I want to reduce the number of files by > increasing the tile size. I've made a test with tiles 512x512, but > I've realized that the resolution must be changed when changing tiles > size. So, the tiles are bigger, but changing the resolution make > generating the same number of files. > > I'm open for workaround and other tricks. > > mapcache.xml > > > > GoogleMaps512 > > -20037508.3427892480 -20037508.3427892480 20037508.3427892480 > 20037508.3427892480 > EPSG:3857 > EPSG:900913 > m > 512 512 > 156543.0339280410 78271.51696402048 39135.75848201023 > 19567.87924100512 9783.939620502561 4891.969810251280 > 2445.984905125640 1222.992452562820 611.4962262814100 > 305.7481131407048 152.8740565703525 76.43702828517624 > 38.21851414258813 19.10925707129406 9.554628535647032 > 4.777314267823516 2.388657133911758 1.194328566955879 > 0.5971642834779395 > > > > > > > > vmap0 > tmpl_xyz > GoogleMaps512 > PNG > > > With best regards, > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jp.chenel at live.ca Mon Mar 9 12:21:03 2020 From: jp.chenel at live.ca (Jean-Philippe Chenel) Date: Mon, 9 Mar 2020 19:21:03 +0000 Subject: [mapserver-users] MapCache Larger tiles, reduce number of files In-Reply-To: References: , Message-ID: Steve, It is what I supposed, but when I've generated the tiles 512x512 using the default resolution GoogleMapCompatible, with the cache template {z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ, I've noticied that the x tile being tried to load was not in the good range. z/x/-y.png Tiles generated: .../8/37 and 38/64 and 65.png Tiles loaded by OpenLayers (with error 404): .../8/73 to 77/130 and 131.png Thanks, ________________________________ De : mapserver-users de la part de Stephen Woodbridge Envoy? : 9 mars 2020 14:56 ? : mapserver-users at lists.osgeo.org Objet : Re: [mapserver-users] MapCache Larger tiles, reduce number of files Jean-Philippe, I don't think it works like that. Resolution is determined by zoom factor so you generate metatile at that resolution then you chop that metatile in tiles of whatever size you specify. So resolution is controled by zoom not tile size. -Steve W On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote: > Hi, > > With MapCache, I want to generate the tiles that will be copied to a > mobile device, on a viewer created with OpenLayers. > > When generating a large extent, with multiple levels of zoom, the > files count is really big, so I want to reduce the number of files by > increasing the tile size. I've made a test with tiles 512x512, but > I've realized that the resolution must be changed when changing tiles > size. So, the tiles are bigger, but changing the resolution make > generating the same number of files. > > I'm open for workaround and other tricks. > > mapcache.xml > > > > GoogleMaps512 > > -20037508.3427892480 -20037508.3427892480 20037508.3427892480 > 20037508.3427892480 > EPSG:3857 > EPSG:900913 > m > 512 512 > 156543.0339280410 78271.51696402048 39135.75848201023 > 19567.87924100512 9783.939620502561 4891.969810251280 > 2445.984905125640 1222.992452562820 611.4962262814100 > 305.7481131407048 152.8740565703525 76.43702828517624 > 38.21851414258813 19.10925707129406 9.554628535647032 > 4.777314267823516 2.388657133911758 1.194328566955879 > 0.5971642834779395 > > > > > > > > vmap0 > tmpl_xyz > GoogleMaps512 > PNG > > > With best regards, > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenwoodbridge37 at gmail.com Mon Mar 9 13:46:42 2020 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Mon, 9 Mar 2020 16:46:42 -0400 Subject: [mapserver-users] MapCache Larger tiles, reduce number of files In-Reply-To: References: Message-ID: Are you sure you have the set the tile size correctly in OpenLayers? Because if OL is requesting tiles that you don't have it sounds like that is the reason. And if you do load tile and there is a miss-match, then I would expect the resolution of be off. Here are a few links that might help: https://openlayers.org/en/latest/examples/wms-custom-tilegrid-512x256.html https://openlayers.org/en/latest/apidoc/module-ol_tilegrid_TileGrid-TileGrid.html https://stackoverflow.com/questions/57072232/how-to-change-tilesize-in-xyz-tilelayer-from-default256-256-to-something-e On 3/9/2020 3:21 PM, Jean-Philippe Chenel wrote: > Steve, > > It is what I supposed, but when I've generated the tiles 512x512 using > the default resolution GoogleMapCompatible, with the cache template > {z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ, > I've noticied that the x tile being tried to load was not in the good > range. > > z/x/-y.png > > Tiles generated: > .../8/37 and 38/64 and 65.png > > Tiles loaded by OpenLayers (with error 404): > .../8/73 to 77/130 and 131.png > > Thanks, > ------------------------------------------------------------------------ > *De :* mapserver-users de la > part de Stephen Woodbridge > *Envoy? :* 9 mars 2020 14:56 > *? :* mapserver-users at lists.osgeo.org > *Objet :* Re: [mapserver-users] MapCache Larger tiles, reduce number > of files > Jean-Philippe, > > I don't think it works like that. Resolution is determined by zoom > factor so you generate? metatile at that resolution then you chop that > metatile in tiles of whatever size you specify. So resolution is > controled by zoom not tile size. > > -Steve W > > On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote: > > Hi, > > > > With MapCache, I want to generate the tiles that will be copied to a > > mobile device, on a viewer created with OpenLayers. > > > > When generating a large extent, with multiple levels of zoom, the > > files count is really big, so I want to reduce the number of files by > > increasing the tile size. I've made a test with tiles 512x512, but > > I've realized that the resolution must be changed when changing tiles > > size. So, the tiles are bigger, but changing the resolution make > > generating the same number of files. > > > > I'm open for workaround and other tricks. > > > > mapcache.xml > > > > > > > > GoogleMaps512 > > > > -20037508.3427892480 -20037508.3427892480 20037508.3427892480 > > 20037508.3427892480 > > EPSG:3857 > > EPSG:900913 > > m > > 512 512 > > 156543.0339280410 78271.51696402048 39135.75848201023 > > 19567.87924100512 9783.939620502561 4891.969810251280 > > 2445.984905125640 1222.992452562820 611.4962262814100 > > 305.7481131407048 152.8740565703525 76.43702828517624 > > 38.21851414258813 19.10925707129406 9.554628535647032 > > 4.777314267823516 2.388657133911758 1.194328566955879 > > 0.5971642834779395 > > > > > > > > > > > > > > > > > vmap0 > > tmpl_xyz > > GoogleMaps512 > > PNG > > > > > > With best regards, > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From joerg.thomsen at wheregroup.com Tue Mar 10 06:19:05 2020 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 10 Mar 2020 14:19:05 +0100 Subject: [mapserver-users] question on demo.mapserver.org In-Reply-To: References: Message-ID: <687e55f0-32dc-f370-fa76-712308ffb4b1@wheregroup.com> Thanks Jeff! works: https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-90,180,90&SRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=continents&STYLES=&FORMAT=image/png&TRANSPARENT=true&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ENA3DESC%3C/PropertyName%3E%3CLiteral%3EEurope%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E not important to me at the moment, but the spatial-filter does not work - why? https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-90,180,90&SRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=continents&STYLES=&FORMAT=image/png&TRANSPARENT=true&FILTER=Geometry-60.18,46.100.05 J?rg Am 09.03.20 um 16:06 schrieb Jeff McKenna: > Hi J?rg, > > Regarding that WMS service[1] here is the classitem syntax: > > ? CLASSITEM??? 'NA3DESC' > > With an example value of 'Africa' or 'Europe? . > > > [1] > https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities > > > > -jeff > > > Viele Gr??e, J?rg Thomsen -- ************************************************ QGIS Experience Day - jetzt kostenfrei anmelden! 2. April 2020 in Berlin | https://qgis-day.com/ ************************************************ J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From bob.basques at ci.stpaul.mn.us Tue Mar 10 07:10:26 2020 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 10 Mar 2020 14:10:26 +0000 Subject: [mapserver-users] REMINDER: OSGeo Local Chapter (aka TCMUG) Meeting Message-ID: <3F745502-24FD-4111-B820-47F6BC87E3B6@ci.stpaul.mn.us> See you there. bobb OSGeo Local Chapter (aka TCMUG) Meeting Scheduled: Mar 11, 2020 at 4:30 PM to 6:00 PM Location: 644 Bayfield St, Saint Paul, MN 55107, United States 755 Prior Ave N, St Paul, MN 55104 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iCal-20200310-090955.ics Type: text/calendar Size: 1556 bytes Desc: iCal-20200310-090955.ics URL: From jp.chenel at live.ca Tue Mar 10 13:33:30 2020 From: jp.chenel at live.ca (Jean-Philippe Chenel) Date: Tue, 10 Mar 2020 20:33:30 +0000 Subject: [mapserver-users] MapCache Larger tiles, reduce number of files In-Reply-To: References: , Message-ID: Dear Steve, Thanks for your help and here is the solution. The grid in mapcache.xml was good (same resolution as the default with 256x256, the only difference is the size of the tile) -20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480 EPSG:3857 m 512 512 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 The problem was in the OL configuration, when you said that the tilesize is something else, I suppose that the resolution also changes without to do anything. The solution was to make another tilegrid configuration like that and to bind it to the source. var projExtent = ol.proj.get('EPSG:3857').getExtent(); var startResolution = ol.extent.getWidth(projExtent) / 256; var resolutions = new Array(22); var tileSize = 512; var urlTemplate = '/GoogleMaps512/{z}/{x}/{y}.png'; for (var i = 0, ii = resolutions.length; i < ii; ++i) { resolutions[i] = startResolution / Math.pow(2, i); } var tileGrid = new ol.tilegrid.TileGrid({ extent: [-20037508.3427892480, -20037508.3427892480, 20037508.3427892480, 20037508.3427892480], resolutions: resolutions, tileSize: [512, 512] }); var source1 = new ol.source.XYZ({ url: urlTemplate, tileSize: tileSize, tileGrid: tileGrid }); With best regards, ________________________________ De : Stephen Woodbridge Envoy? : 9 mars 2020 16:46 ? : Jean-Philippe Chenel ; mapserver-users at lists.osgeo.org Objet : Re: [mapserver-users] MapCache Larger tiles, reduce number of files Are you sure you have the set the tile size correctly in OpenLayers? Because if OL is requesting tiles that you don't have it sounds like that is the reason. And if you do load tile and there is a miss-match, then I would expect the resolution of be off. Here are a few links that might help: https://openlayers.org/en/latest/examples/wms-custom-tilegrid-512x256.html https://openlayers.org/en/latest/apidoc/module-ol_tilegrid_TileGrid-TileGrid.html https://stackoverflow.com/questions/57072232/how-to-change-tilesize-in-xyz-tilelayer-from-default256-256-to-something-e On 3/9/2020 3:21 PM, Jean-Philippe Chenel wrote: > Steve, > > It is what I supposed, but when I've generated the tiles 512x512 using > the default resolution GoogleMapCompatible, with the cache template > {z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ, > I've noticied that the x tile being tried to load was not in the good > range. > > z/x/-y.png > > Tiles generated: > .../8/37 and 38/64 and 65.png > > Tiles loaded by OpenLayers (with error 404): > .../8/73 to 77/130 and 131.png > > Thanks, > ------------------------------------------------------------------------ > *De :* mapserver-users de la > part de Stephen Woodbridge > *Envoy? :* 9 mars 2020 14:56 > *? :* mapserver-users at lists.osgeo.org > *Objet :* Re: [mapserver-users] MapCache Larger tiles, reduce number > of files > Jean-Philippe, > > I don't think it works like that. Resolution is determined by zoom > factor so you generate metatile at that resolution then you chop that > metatile in tiles of whatever size you specify. So resolution is > controled by zoom not tile size. > > -Steve W > > On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote: > > Hi, > > > > With MapCache, I want to generate the tiles that will be copied to a > > mobile device, on a viewer created with OpenLayers. > > > > When generating a large extent, with multiple levels of zoom, the > > files count is really big, so I want to reduce the number of files by > > increasing the tile size. I've made a test with tiles 512x512, but > > I've realized that the resolution must be changed when changing tiles > > size. So, the tiles are bigger, but changing the resolution make > > generating the same number of files. > > > > I'm open for workaround and other tricks. > > > > mapcache.xml > > > > > > > > GoogleMaps512 > > > > -20037508.3427892480 -20037508.3427892480 20037508.3427892480 > > 20037508.3427892480 > > EPSG:3857 > > EPSG:900913 > > m > > 512 512 > > 156543.0339280410 78271.51696402048 39135.75848201023 > > 19567.87924100512 9783.939620502561 4891.969810251280 > > 2445.984905125640 1222.992452562820 611.4962262814100 > > 305.7481131407048 152.8740565703525 76.43702828517624 > > 38.21851414258813 19.10925707129406 9.554628535647032 > > 4.777314267823516 2.388657133911758 1.194328566955879 > > 0.5971642834779395 > > > > > > > > > > > > > > > > > vmap0 > > tmpl_xyz > > GoogleMaps512 > > PNG > > > > > > With best regards, > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Mar 10 18:46:41 2020 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 10 Mar 2020 19:46:41 -0600 Subject: [mapserver-users] php_mapscript throubleshoot In-Reply-To: References: Message-ID: Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on Ubuntu so maybe it's different on Centos. Also note that you have compiled two different version of mapscript so you should have both php_mapscript.so and php_mapscriptng.so On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo wrote: > Dears > after successully compilation of mapserver 7.4.3 on centos 8, > I'm not able to load php_mapscript on PHP environment, (nothing related > to mapscript is displayed on phpinfo(); > > some info: > cmake > -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" > -DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON > -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON > -DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../ > -- /usr/include/php/main > -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) > -- Found SWIG: /usr/local/bin/swig (found version "4.0.1") > -- /usr/include/php/main > -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) > -- PHP Include Path: > /usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP > include paths > -- * Summary of configured options for this build > -- * Mandatory components > -- * png: /usr/lib64/libpng.so > -- * jpeg: /usr/lib64/libjpeg.so > -- * freetype: /usr/lib64/libfreetype.so > -- * Optional components > -- * GDAL: /usr/gdal30/lib/libgdal.so > -- * OGR: /usr/gdal30/lib/libgdal.so > -- * GIF: /usr/lib64/libgif.so > -- * MYSQL: disabled > -- * FRIBIDI: /usr/lib64/libfribidi.so > -- * HARFBUZZ: /usr/lib64/libharfbuzz.so > -- * GIF: /usr/lib64/libgif.so > -- * CAIRO: disabled > -- * SVGCAIRO: disabled > -- * RSVG: disabled > -- * CURL: /usr/lib64/libcurl.so > -- * PROJ: /usr/proj63/lib/libproj.so > -- * PIXMAN: disabled > -- * LIBXML2: /usr/lib64/libxml2.so > -- * POSTGIS: /usr/pgsql-12/lib/libpq.so > -- * GEOS: /usr/geos38/lib64/libgeos_c.so > -- * FastCGI: /usr/lib64/libfcgi.so > -- * PROTOBUFC: disabled > -- * Oracle Spatial: disabled > -- * Exempi XMP: disabled > -- * Optional features > -- * WMS SERVER: ENABLED > -- * WFS SERVER: ENABLED > -- * WCS SERVER: ENABLED > -- * SOS SERVER: disabled > -- * WMS CLIENT: ENABLED > -- * WFS CLIENT: ENABLED > -- * ICONV: ENABLED > -- * Thread-safety support: disabled > -- * KML output: disabled > -- * Z+M point coordinate support: disabled > -- * XML Mapfile support: disabled > -- * Mapscripts > -- * Python: disabled > -- * PHP: ENABLED > -- * PHPNG: ENABLED > -- * PERL: disabled > -- * RUBY: disabled > -- * JAVA: disabled > -- * C#: disabled > -- * V8 Javascript: disabled > -- * Apache Module (Experimental): disabled > -- > -- Will install files to /usr/local > -- Will install libraries to /usr/local/lib > -- Configuring done > -- Generating done > > > after make; make install > I can check: > # mapserv -v > MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG 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=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > lib is in the right place: > /usr/lib64/php/modules/php_mapscript.so > and extension is configured: > /etc/php.d/30-php_mapscript.ini > ; Enable mapserver extension module > extension=php_mapscript > > > Do you have any idea how to check if the module is loaded? > > Regards, > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From emperor_stef at yahoo.gr Wed Mar 11 00:47:19 2020 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Wed, 11 Mar 2020 07:47:19 +0000 (UTC) Subject: [mapserver-users] php_mapscript throubleshoot In-Reply-To: References: Message-ID: <636027195.70394.1583912839536@mail.yahoo.com> Hello,?? ?I also have the same problem. I have only compiled the PHPNG version and there is libphp_mapscriptng.so generated which I try to put in /usr/lib/php/2017(...)? folder, as this is the extension folder shown by phpinfo(). But test_draw_map still fails complaining about new_mapObj? in line 2508 (if I remember correct) of the mapscript.php file which I include in the beginning of the script as described in the migration guide?https://mapserver.org/MIGRATION_GUIDE.html?. I have compiled SWIG 3.0.12 .? Regards,Stefanos ???? ???????, 11 ??????? 2020, 03:47:08 ?.?. EET, ? ??????? Richard Greenwood ??????: Shouldn't php_mapscript.so be in?/usr/lib/php/20170718/ or similar? I'm on Ubuntu?so maybe it's different on Centos. Also note that you have compiled two different version?of mapscript so you should have both php_mapscript.so and php_mapscriptng.so On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo wrote: Dearsafter successully?compilation of?mapserver 7.4.3 on centos 8,I'm not able to load?php_mapscript on PHP environment, (nothing related to mapscript is displayed on phpinfo(); some info:cmake ?-DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" -DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON ?-DWITH_CURL=ON -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON -DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../ -- /usr/include/php/main -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) -- Found SWIG: /usr/local/bin/swig (found version "4.0.1") -- /usr/include/php/main -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) -- PHP Include Path: /usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP include paths -- * Summary of configured options for this build -- ?* Mandatory components -- ? * png: /usr/lib64/libpng.so -- ? * jpeg: /usr/lib64/libjpeg.so -- ? * freetype: /usr/lib64/libfreetype.so -- ?* Optional components -- ? * GDAL: /usr/gdal30/lib/libgdal.so -- ? * OGR: /usr/gdal30/lib/libgdal.so -- ? * GIF: /usr/lib64/libgif.so -- ? * MYSQL: disabled -- ? * FRIBIDI: /usr/lib64/libfribidi.so -- ? * HARFBUZZ: /usr/lib64/libharfbuzz.so -- ? * GIF: /usr/lib64/libgif.so -- ? * CAIRO: disabled -- ? * SVGCAIRO: disabled -- ? * RSVG: disabled -- ? * CURL: /usr/lib64/libcurl.so -- ? * PROJ: /usr/proj63/lib/libproj.so -- ? * PIXMAN: disabled -- ? * LIBXML2: /usr/lib64/libxml2.so -- ? * POSTGIS: /usr/pgsql-12/lib/libpq.so -- ? * GEOS: /usr/geos38/lib64/libgeos_c.so -- ? * FastCGI: /usr/lib64/libfcgi.so -- ? * PROTOBUFC: disabled -- ? * Oracle Spatial: disabled -- ? * Exempi XMP: disabled -- ?* Optional features -- ? * WMS SERVER: ENABLED -- ? * WFS SERVER: ENABLED -- ? * WCS SERVER: ENABLED -- ? * SOS SERVER: disabled -- ? * WMS CLIENT: ENABLED -- ? * WFS CLIENT: ENABLED -- ? * ICONV: ENABLED -- ? * Thread-safety support: disabled -- ? * KML output: disabled -- ? * Z+M point coordinate support: disabled -- ? * XML Mapfile support: disabled -- ?* Mapscripts -- ? * Python: disabled -- ? * PHP: ENABLED -- ? * PHPNG: ENABLED -- ? * PERL: disabled -- ? * RUBY: disabled -- ? * JAVA: disabled -- ? * C#: disabled -- ? * V8 Javascript: disabled -- ? * Apache Module (Experimental): disabled -- -- Will install files to /usr/local -- Will install libraries to /usr/local/lib -- Configuring done -- Generating done after make; make install?I can check:# mapserv -v MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG 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=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE lib is in the right place:/usr/lib64/php/modules/php_mapscript.so and extension is configured:/etc/php.d/30-php_mapscript.ini ; Enable mapserver extension module extension=php_mapscript Do you have any idea how to check if the module is loaded? Regards,_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Mar 11 03:52:53 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 11 Mar 2020 07:52:53 -0300 Subject: [mapserver-users] php_mapscript throubleshoot In-Reply-To: <636027195.70394.1583912839536@mail.yahoo.com> References: <636027195.70394.1583912839536@mail.yahoo.com> Message-ID: On 2020-03-11 4:47 a.m., Stefanos Anastasiou wrote: > Hello, > ? ?I also have the same problem. I have only compiled the PHPNG version > and there is libphp_mapscriptng.so generated which I try to put in > /usr/lib/php/2017(...)? folder, as this is the extension folder shown by > phpinfo(). But test_draw_map still fails complaining about new_mapObj > in line 2508 (if I remember correct) of the mapscript.php file which I > include in the beginning of the script as described in the migration > guide https://mapserver.org/MIGRATION_GUIDE.html?. I have compiled SWIG > 3.0.12 . > The correct syntax is: new mapObj('path/to/file.map'); You can also find working scripts submitted by users in the "Additional Notes, Tips" section at https://ms4w.com/trac -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Wed Mar 11 04:31:14 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 11 Mar 2020 08:31:14 -0300 Subject: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal 3.0.4 In-Reply-To: References: Message-ID: Glad you solved it. Related tip: GEOS 3.8.1 is now available. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-05 6:03 p.m., Domenico Febbo wrote: > Dears > issue was solved as you suggested arranging?right version of GEOS, GDAL > and PROJ > see my working cmake command > > cmake > ?-DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" -DWITH_CLIENT_WFS=OFF -DWITH_CLIENT_WMS=ON ?-DWITH_CURL=ON -DWITH_PHP=ON -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF -DWITH_GEOS=ON ../ > > ?Regards, > > > Date: Thu, 05 Mar 2020 18:23:11 +0100 > From: Even Rouault > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] mapserver 7.4.3 on centos 8 and gdal > ? ? ? ? 3.0.4 > Message-ID: <5264658.HpSgdfGQFN at even-i700> > Content-Type: text/plain; charset="us-ascii" > > On jeudi 5 mars 2020 13:11:59 CET Jeff McKenna wrote: > > Also, recompile GDAL after you build GEOS 3.8.0, as GDAL >3 requires > > GEOS.? -jeff > > There's no GDAL > 3 for now ;-) But, joke aside, GDAL 3 doesn't change > requirements regarding GEOS. GEOS is a recommended dependency, but > not a > compulsory one. Only PROJ >= 6 is a compulsory dependency for GDAL >= 3 > > Even > From emperor_stef at yahoo.gr Wed Mar 11 05:26:51 2020 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Wed, 11 Mar 2020 12:26:51 +0000 (UTC) Subject: [mapserver-users] php_mapscript throubleshoot In-Reply-To: References: <636027195.70394.1583912839536@mail.yahoo.com> Message-ID: <1607548422.384202.1583929611019@mail.yahoo.com> Hi Jeff,??? ?I know that this is the correct syntax (new mapOb) but isn't this file gererated during compilation time ? Are we supposed to change code in there ??Thank you? Regards,Stefanos ???? ???????, 11 ??????? 2020, 12:53:09 ?.?. EET, ? ??????? Jeff McKenna ??????: On 2020-03-11 4:47 a.m., Stefanos Anastasiou wrote: > Hello, >? ? ?I also have the same problem. I have only compiled the PHPNG version > and there is libphp_mapscriptng.so generated which I try to put in > /usr/lib/php/2017(...)? folder, as this is the extension folder shown by > phpinfo(). But test_draw_map still fails complaining about new_mapObj? > in line 2508 (if I remember correct) of the mapscript.php file which I > include in the beginning of the script as described in the migration > guide https://mapserver.org/MIGRATION_GUIDE.html?. I have compiled SWIG > 3.0.12 . > The correct syntax is:? new mapObj('path/to/file.map'); You can also find working scripts submitted by users in the "Additional Notes, Tips" section at https://ms4w.com/trac -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannespaul92 at gmail.com Wed Mar 11 06:59:26 2020 From: johannespaul92 at gmail.com (Johannes Paul) Date: Wed, 11 Mar 2020 14:59:26 +0100 Subject: [mapserver-users] Mapserver tile edge rendering behaviour Message-ID: Hello, I use a data source (postgis or shapefile, it doesn't matter, the behaviour is the same), that is made of a simple polygon created from a bbox, on which is applied a simple 'outlinecolor'. When calling my URL with a bbox that is *exactly* the size of that polygon, mapserver only renders the bottom and the right hand edges; top and left hand egdes are not drawn on my output image!? When forcing 'WIDTH 2', I do get a thin (1 pixel) outline on the top and left hand edges, and a thick (2 pixels) on the bottom and right hand edges. I expect this is related to where mapserver is taking the coordinate within the pixel (center? corner?), but I'm not sure ? Any option to overcome that behaviour ? Thanks in advance. Johannes -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Wed Mar 11 21:08:44 2020 From: sdlime at gmail.com (Steve Lime) Date: Wed, 11 Mar 2020 23:08:44 -0500 Subject: [mapserver-users] Mapserver tile edge rendering behaviour In-Reply-To: References: Message-ID: MapServer uses the center of the pixel but does compensate for models defined by other specs (e.g. WMS, which defines an extent as outer edge to outer edge. Straight CGI (mode=map) will adjust the requested extent based on the image size to ensure that square cells are being used. WMS allows for non-square cells. It?s possible you?re seeing the effect because the requested extent and image size are off just a bit. Would need a little more info to be sure. When tiling you can set edge buffers to deal with this sort of thing. Generally you?d choose a value to match your widest symbol. How exactly you?d deal with this depends on how you?re generating tiles (mapcache, mode=tile, etc...). ?Steve On Wed, Mar 11, 2020 at 8:59 AM Johannes Paul wrote: > Hello, > I use a data source (postgis or shapefile, it doesn't matter, the > behaviour is the same), that is made of a simple polygon created from a > bbox, on which is applied a simple 'outlinecolor'. > When calling my URL with a bbox that is *exactly* the size of that > polygon, mapserver only renders the bottom and the right hand edges; top > and left hand egdes are not drawn on my output image!? > When forcing 'WIDTH 2', I do get a thin (1 pixel) outline on the top and > left hand edges, and a thick (2 pixels) on the bottom and right hand edges. > I expect this is related to where mapserver is taking the coordinate > within the pixel (center? corner?), but I'm not sure ? Any option to > overcome that behaviour ? > Thanks in advance. > Johannes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannespaul92 at gmail.com Thu Mar 12 05:11:13 2020 From: johannespaul92 at gmail.com (Johannes Paul) Date: Thu, 12 Mar 2020 13:11:13 +0100 Subject: [mapserver-users] Mapserver tile edge rendering behaviour In-Reply-To: References: Message-ID: Hi Steve, thanks for your answer. Basically, I have the planet emerged lands that are cut-off in square polygons. These polygons are stored in postgis, and I use mapcache with a mapserver WMS source to tile the layer. When I have a polygon ending exactly on the tile edge and the polygon does not have adjacent polygons on the top or on the left hand tile, I miss my polygon border. As explained I made a simple test with a mapserver WMS request where the requested bbox would be exactly the bbox of a square polygon, and mapserver doesn't render top and left borders of the polygon... Could you please tell me more about the options that could be used within mapcache or mapserver conf ? Thanks, Johannes On Thu, 12 Mar 2020 at 05:08, Steve Lime wrote: > MapServer uses the center of the pixel but does compensate for models > defined by other specs (e.g. WMS, which defines an extent as outer edge to > outer edge. Straight CGI (mode=map) will adjust the requested extent based > on the image size to ensure that square cells are being used. WMS allows > for non-square cells. > > It?s possible you?re seeing the effect because the requested extent and > image size are off just a bit. Would need a little more info to be sure. > > When tiling you can set edge buffers to deal with this sort of thing. > Generally you?d choose a value to match your widest symbol. How exactly > you?d deal with this depends on how you?re generating tiles (mapcache, > mode=tile, etc...). > > ?Steve > > On Wed, Mar 11, 2020 at 8:59 AM Johannes Paul > wrote: > >> Hello, >> I use a data source (postgis or shapefile, it doesn't matter, the >> behaviour is the same), that is made of a simple polygon created from a >> bbox, on which is applied a simple 'outlinecolor'. >> When calling my URL with a bbox that is *exactly* the size of that >> polygon, mapserver only renders the bottom and the right hand edges; top >> and left hand egdes are not drawn on my output image!? >> When forcing 'WIDTH 2', I do get a thin (1 pixel) outline on the top and >> left hand edges, and a thick (2 pixels) on the bottom and right hand edges. >> I expect this is related to where mapserver is taking the coordinate >> within the pixel (center? corner?), but I'm not sure ? Any option to >> overcome that behaviour ? >> Thanks in advance. >> Johannes >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannespaul92 at gmail.com Thu Mar 12 05:53:02 2020 From: johannespaul92 at gmail.com (Johannes Paul) Date: Thu, 12 Mar 2020 13:53:02 +0100 Subject: [mapserver-users] Mapserver tile edge rendering behaviour In-Reply-To: References: Message-ID: ok I get it ... i use within Mapcache and the missing border of my polygon get rendered in the adjacent tile :) I though that was a problem with Mapserver, but it is just standard behaviour; it was just a matter of tiling options. Thanks ! Johannes On Thu, 12 Mar 2020 at 13:11, Johannes Paul wrote: > Hi Steve, > thanks for your answer. > Basically, I have the planet emerged lands that are cut-off in square > polygons. These polygons are stored in postgis, and I use mapcache with a > mapserver WMS source to tile the layer. > When I have a polygon ending exactly on the tile edge and the polygon does > not have adjacent polygons on the top or on the left hand tile, I miss my > polygon border. > As explained I made a simple test with a mapserver WMS request where the > requested bbox would be exactly the bbox of a square polygon, and mapserver > doesn't render top and left borders of the polygon... > Could you please tell me more about the options that could be used within > mapcache or mapserver conf ? > Thanks, > Johannes > > On Thu, 12 Mar 2020 at 05:08, Steve Lime wrote: > >> MapServer uses the center of the pixel but does compensate for models >> defined by other specs (e.g. WMS, which defines an extent as outer edge to >> outer edge. Straight CGI (mode=map) will adjust the requested extent based >> on the image size to ensure that square cells are being used. WMS allows >> for non-square cells. >> >> It?s possible you?re seeing the effect because the requested extent and >> image size are off just a bit. Would need a little more info to be sure. >> >> When tiling you can set edge buffers to deal with this sort of thing. >> Generally you?d choose a value to match your widest symbol. How exactly >> you?d deal with this depends on how you?re generating tiles (mapcache, >> mode=tile, etc...). >> >> ?Steve >> >> On Wed, Mar 11, 2020 at 8:59 AM Johannes Paul >> wrote: >> >>> Hello, >>> I use a data source (postgis or shapefile, it doesn't matter, the >>> behaviour is the same), that is made of a simple polygon created from a >>> bbox, on which is applied a simple 'outlinecolor'. >>> When calling my URL with a bbox that is *exactly* the size of that >>> polygon, mapserver only renders the bottom and the right hand edges; top >>> and left hand egdes are not drawn on my output image!? >>> When forcing 'WIDTH 2', I do get a thin (1 pixel) outline on the top and >>> left hand edges, and a thick (2 pixels) on the bottom and right hand edges. >>> I expect this is related to where mapserver is taking the coordinate >>> within the pixel (center? corner?), but I'm not sure ? Any option to >>> overcome that behaviour ? >>> Thanks in advance. >>> Johannes >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From domenico.febbo at gmail.com Thu Mar 12 23:55:42 2020 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Fri, 13 Mar 2020 07:55:42 +0100 Subject: [mapserver-users] php_mapscript throubleshoot In-Reply-To: <636027195.70394.1583912839536@mail.yahoo.com> References: <636027195.70394.1583912839536@mail.yahoo.com> Message-ID: Running the simple phpinfo test, returns HTTP error 500 (Internal server error) without logs on httpd/error.log Il giorno mer 11 mar 2020 alle ore 08:47 Stefanos Anastasiou < emperor_stef at yahoo.gr> ha scritto: > Hello, > I also have the same problem. I have only compiled the PHPNG version > and there is libphp_mapscriptng.so generated which I try to put in > /usr/lib/php/2017(...) folder, as this is the extension folder shown by > phpinfo(). But test_draw_map still fails complaining about new_mapObj in > line 2508 (if I remember correct) of the mapscript.php file which I > include in the beginning of the script as described in the migration guide > https://mapserver.org/MIGRATION_GUIDE.html . I have compiled SWIG 3.0.12 > . > > Regards, > Stefanos > > ???? ???????, 11 ??????? 2020, 03:47:08 ?.?. EET, ? ??????? Richard > Greenwood ??????: > > > Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on > Ubuntu so maybe it's different on Centos. > > Also note that you have compiled two different version of mapscript so you > should have both php_mapscript.so and php_mapscriptng.so > > On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo > wrote: > > Dears > after successully compilation of mapserver 7.4.3 on centos 8, > I'm not able to load php_mapscript on PHP environment, (nothing related > to mapscript is displayed on phpinfo(); > > some info: > cmake > -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local" > -DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_CURL=ON > -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON > -DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../ > -- /usr/include/php/main > -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) > -- Found SWIG: /usr/local/bin/swig (found version "4.0.1") > -- /usr/include/php/main > -- Found PHP-Version 7.2.11 (using /usr/bin/php-config) > -- PHP Include Path: > /usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP > include paths > -- * Summary of configured options for this build > -- * Mandatory components > -- * png: /usr/lib64/libpng.so > -- * jpeg: /usr/lib64/libjpeg.so > -- * freetype: /usr/lib64/libfreetype.so > -- * Optional components > -- * GDAL: /usr/gdal30/lib/libgdal.so > -- * OGR: /usr/gdal30/lib/libgdal.so > -- * GIF: /usr/lib64/libgif.so > -- * MYSQL: disabled > -- * FRIBIDI: /usr/lib64/libfribidi.so > -- * HARFBUZZ: /usr/lib64/libharfbuzz.so > -- * GIF: /usr/lib64/libgif.so > -- * CAIRO: disabled > -- * SVGCAIRO: disabled > -- * RSVG: disabled > -- * CURL: /usr/lib64/libcurl.so > -- * PROJ: /usr/proj63/lib/libproj.so > -- * PIXMAN: disabled > -- * LIBXML2: /usr/lib64/libxml2.so > -- * POSTGIS: /usr/pgsql-12/lib/libpq.so > -- * GEOS: /usr/geos38/lib64/libgeos_c.so > -- * FastCGI: /usr/lib64/libfcgi.so > -- * PROTOBUFC: disabled > -- * Oracle Spatial: disabled > -- * Exempi XMP: disabled > -- * Optional features > -- * WMS SERVER: ENABLED > -- * WFS SERVER: ENABLED > -- * WCS SERVER: ENABLED > -- * SOS SERVER: disabled > -- * WMS CLIENT: ENABLED > -- * WFS CLIENT: ENABLED > -- * ICONV: ENABLED > -- * Thread-safety support: disabled > -- * KML output: disabled > -- * Z+M point coordinate support: disabled > -- * XML Mapfile support: disabled > -- * Mapscripts > -- * Python: disabled > -- * PHP: ENABLED > -- * PHPNG: ENABLED > -- * PERL: disabled > -- * RUBY: disabled > -- * JAVA: disabled > -- * C#: disabled > -- * V8 Javascript: disabled > -- * Apache Module (Experimental): disabled > -- > -- Will install files to /usr/local > -- Will install libraries to /usr/local/lib > -- Configuring done > -- Generating done > > > after make; make install > I can check: > # mapserv -v > MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG 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=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > lib is in the right place: > /usr/lib64/php/modules/php_mapscript.so > and extension is configured: > /etc/php.d/30-php_mapscript.ini > ; Enable mapserver extension module > extension=php_mapscript > > > Do you have any idea how to check if the module is loaded? > > Regards, > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sethg at geographika.co.uk Mon Mar 16 05:20:20 2020 From: sethg at geographika.co.uk (Seth G) Date: Mon, 16 Mar 2020 13:20:20 +0100 Subject: [mapserver-users] Filter could not be translated to OGR filter Message-ID: <7f12bbc6-71bb-4a61-bb78-b9c9a30631a0@www.fastmail.com> Hi all, I've run into a strange issue when using a WFS filter with spaces and an OGRCONNECTION. I think I've narrowed it down to involving the following: 1. Using OGR CONNECTION (the filter is fine when using MapServer Shapefile connection) with a shapefile 2. Via a web server (I'm using IIS) The following WFS filter: name*Old T* Returns this error: msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msOGRFileNextShape(): OGR error. OGR GetNextFeature() error'd. Check logs. Within the filter it is the Literal tag that has a problem - whenever the literal tag is greater than a certain number of characters. The following work: * R* * O* *Old* *Fic* The following breaks the filter: *Ficc* *Oldt Old (a strange one as it is fewer characters than others) I cannot recreate the issue using the command line passing in the exact same content, so I think it could relate to encoding of the filter in the POST request. I'm using "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" other types give parsing errors e.g. msOWSPreParseRequest(): OWS error. XML parsing error: Start tag expected, '<' not found Perhaps the encoding makes the literal tag too long somewhere in OGR? Any insights appreciated, Seth -- web:http://geographika.co.uk twitter: @geographika From mathias.cunault at inrap.fr Wed Mar 18 03:04:03 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Wed, 18 Mar 2020 03:04:03 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols Message-ID: <1584525843975-0.post@n6.nabble.com> Hello, I want to display a layer with symbol TYPE ELLIPSE. SIZE depends on an attribute. When loading the layer in Qgis, symbols are "cut" by, I guess, the extent of the layer (?). But I can't fix it. LAYER NAME "nombre de cas" TYPE POINT PROJECTION "init=epsg:2154" END CONNECTIONTYPE POSTGIS CONNECTION ... DATA "geom from ... SIZEUNITS KILOMETERS CLASS STYLE SYMBOL "isolat" SIZE [nb_cas] COLOR 255 150 0 END #fin style STYLE #just to see what's happening SYMBOL "isolat" WIDTH 50 OUTLINECOLOR 255 0 0 END #fin style END #fin class unique METADATA "wms_title" "nombre de cas" END ENDa Thanks for help. -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From joerg.thomsen at wheregroup.com Wed Mar 18 03:22:37 2020 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 18 Mar 2020 11:22:37 +0100 Subject: [mapserver-users] layer with "truncated" symbols In-Reply-To: <1584525843975-0.post@n6.nabble.com> References: <1584525843975-0.post@n6.nabble.com> Message-ID: <65cd78e8-990f-8178-8342-b628621c7ccc@wheregroup.com> Hello Mathias, I suppose you are right. Try to define the extent bigger. It looks as if the circles are cut by the extent of the whole wms. QGIS only requstes WMS-maps for the extent it finds in the Capabilities (it's a feature to avoid useless traffic). Following up to this, you will have to reload the Layer in QGIS (only panning the map has no effect), QGIS must request the capabilities with the new extent. J?rg Am 18.03.20 um 11:04 schrieb Leehan: > Hello, > > I want to display a layer with symbol TYPE ELLIPSE. > SIZE depends on an attribute. > When loading the layer in Qgis, symbols are "cut" by, I guess, the extent of > the layer (?). But I can't fix it. > > LAYER > NAME "nombre de cas" > TYPE POINT > PROJECTION > "init=epsg:2154" > END > CONNECTIONTYPE POSTGIS > CONNECTION ... > DATA "geom from ... > SIZEUNITS KILOMETERS > CLASS > STYLE > SYMBOL "isolat" > SIZE [nb_cas] > COLOR 255 150 0 > END #fin style > STYLE #just to see what's happening > SYMBOL "isolat" > WIDTH 50 > OUTLINECOLOR 255 0 0 > END #fin style > END #fin class unique > METADATA > "wms_title" "nombre de cas" > END > ENDa > > > > Thanks for help. > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From mathias.cunault at inrap.fr Wed Mar 18 03:57:26 2020 From: mathias.cunault at inrap.fr (mathias cunault) Date: Wed, 18 Mar 2020 11:57:26 +0100 Subject: [mapserver-users] layer with "truncated" symbols In-Reply-To: <65cd78e8-990f-8178-8342-b628621c7ccc@wheregroup.com> References: <1584525843975-0.post@n6.nabble.com> <65cd78e8-990f-8178-8342-b628621c7ccc@wheregroup.com> Message-ID: Issue solved. Thanks. Indeed I set an extent in the layer, in addition to and larger than the MAP one. I tried this before but forgot to reload getCapabilities. (So maybe it was good before :/) Le mer. 18 mars 2020 ? 11:22, J?rg Thomsen (WhereGroup) < joerg.thomsen at wheregroup.com> a ?crit : > Hello Mathias, > > I suppose you are right. Try to define the extent bigger. It looks as if > the circles are cut by the extent of the whole wms. > QGIS only requstes WMS-maps for the extent it finds in the Capabilities > (it's a feature to avoid useless traffic). > Following up to this, you will have to reload the Layer in QGIS (only > panning the map has no effect), QGIS must request the capabilities with > the new extent. > > J?rg > > Am 18.03.20 um 11:04 schrieb Leehan: > > Hello, > > > > I want to display a layer with symbol TYPE ELLIPSE. > > SIZE depends on an attribute. > > When loading the layer in Qgis, symbols are "cut" by, I guess, the > extent of > > the layer (?). But I can't fix it. > > > > LAYER > > NAME "nombre de cas" > > TYPE POINT > > PROJECTION > > "init=epsg:2154" > > END > > CONNECTIONTYPE POSTGIS > > CONNECTION ... > > DATA "geom from ... > > SIZEUNITS KILOMETERS > > CLASS > > STYLE > > SYMBOL "isolat" > > SIZE [nb_cas] > > COLOR 255 150 0 > > END #fin style > > STYLE #just to see what's happening > > SYMBOL "isolat" > > WIDTH 50 > > OUTLINECOLOR 255 0 0 > > END #fin style > > END #fin class unique > > METADATA > > "wms_title" "nombre de cas" > > END > > ENDa > > > > > > > > Thanks for help. > > > > > > > > > > -- > > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > Viele Gr??e, > J?rg Thomsen > > -- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- *----------* *Mathias Cunault* *r?f?rent SIG / Admin Caviar* *Inrap Tours - 148 av. Maginot37000 TOURS06 32 05 98 96mathias.cunault at inrap.fr * www.inrap.fr abonnez-vous ? la lettre d'information de l'Inrap : http://www.inrap.fr/newsletter.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Mar 21 10:16:42 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 21 Mar 2020 14:16:42 -0300 Subject: [mapserver-users] versions 7.4.4 and 6.4.6 released Message-ID: The security releases of MapServer 7.4.4 and 6.4.6 are now available for download: http://mapserver.org/download.html These releases fix 2 vulnerabilities in PHPMapScript error handling (the SWIG MapScript PHP7 support is not affected). CVE ID's have been requested but are not yet available, and when they are available the MapServer website's changelog will be updated. For now you can see the related ticket: https://github.com/mapserver/mapserver/issues/6014 If you have not already upgraded to the maintained SWIG PHPMapScript support, from the old PHPMapScript, this is a good opportunity to do so. A special thank you to Aviv Yahav (https://github.com/0xbigshaq) for reporting the vulnerabilities. -- The MapServer Team From jmckenna at gatewaygeomatics.com Sun Mar 22 15:47:24 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 22 Mar 2020 19:47:24 -0300 Subject: [mapserver-users] 7.6.0-beta1 released Message-ID: The MapServer team is pleased to announce the long overdue first beta release of MapServer 7.6. Please help us test and let us know of any findings. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/7-6.html . -- The MapServer Team From mathias.cunault at inrap.fr Wed Mar 25 07:02:44 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Wed, 25 Mar 2020 07:02:44 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols 2 Message-ID: <1585144964872-0.post@n6.nabble.com> Hello, Here i am again with nealry the same problem : it now seems that red circles are cut by osm tiles. Whatever symbol, the result is the same. I am running out of idea. -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From joerg.thomsen at wheregroup.com Wed Mar 25 07:24:15 2020 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 25 Mar 2020 15:24:15 +0100 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585144964872-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> Message-ID: <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> are there any layer extents of the cities defined? J?rg Am 25.03.20 um 15:02 schrieb Leehan: > Hello, > > Here i am again with nealry the same problem : it now seems that red circles > are cut by osm tiles. > Whatever symbol, the result is the same. I am running out of idea. > > > > > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From jmckenna at gatewaygeomatics.com Wed Mar 25 08:36:20 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 25 Mar 2020 12:36:20 -0300 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585144964872-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> Message-ID: Be aware of QGIS issue with caching GetCapabilities/images as well (which I point to at bottom of https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS ) Something to always be aware of when battling QGIS+MapServer tasks. Likely not your issue, but it's a good thing to mention here anyway. -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-25 11:02 a.m., Leehan wrote: > Hello, > > Here i am again with nealry the same problem : it now seems that red circles > are cut by osm tiles. > Whatever symbol, the result is the same. I am running out of idea. > > > > > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From mathias.cunault at inrap.fr Wed Mar 25 08:46:38 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Wed, 25 Mar 2020 08:46:38 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> Message-ID: <1585151198160-0.post@n6.nabble.com> By cities, you mean extent for the grey polygons ? If so, nope. So I can try with an EXTENT definition. -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From joerg.thomsen at wheregroup.com Wed Mar 25 08:59:16 2020 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 25 Mar 2020 16:59:16 +0100 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585151198160-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> Message-ID: Am 25.03.20 um 16:46 schrieb Leehan: > By cities, you mean extent for the grey polygons ? no, I thoght the center of the red circles were citie-points... doesn't make sense. Perhaps qgis requests your wms as tiles? see jeff's advice. I have no more ideas at the moment. J?rg > If so, nope. > So I can try with an EXTENT definition. > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From mathias.cunault at inrap.fr Thu Mar 26 01:08:53 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Thu, 26 Mar 2020 01:08:53 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> Message-ID: <1585210133039-0.post@n6.nabble.com> I am not using qgis : It s an Openlayers + Mapserver application ; -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From tchaddad at gmail.com Thu Mar 26 10:48:55 2020 From: tchaddad at gmail.com (TC Haddad) Date: Thu, 26 Mar 2020 10:48:55 -0700 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585210133039-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> <1585210133039-0.post@n6.nabble.com> Message-ID: Can you configure Openlayers to not send tiled WMS requests to Mapserver? If you still want to send tiled requests, you could try setting up MapCache to see if it improves the situation. On Thu, Mar 26, 2020 at 1:09 AM Leehan wrote: > I am not using qgis : It s an Openlayers + Mapserver application ; > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Thu Mar 26 12:16:16 2020 From: sdlime at gmail.com (Steve Lime) Date: Thu, 26 Mar 2020 14:16:16 -0500 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> <1585210133039-0.post@n6.nabble.com> Message-ID: With symbols MapServer typically handles this situation by adjusting the extent used to select features based on the largest symbol size - so features just off the edge of the map are still rendered partially. That said, based on your sample graphic it looks like you're setting the size of the circles dynamically using attribute binding? If so, MapServer wouldn't have access to those values ahead of time to adjust the selection extent. One idea might be to somehow add something in the red circle layer to force that computation, I'd have to see the layer definition to be sure but you could try adding a dummy class with a size value that represents the largest expected size. So: LAYER NAME 'red_circles' ... CLASS # this class is never drawn EXPRESSION 'dummy' STYLE SYMBOL 'cicle' SIZE 175 COLOR 0 0 0 END END CLASS # your normal red circle class END Of course this forces the larger selection extent for all tiles but it could work and if the data isn't particularly big it wouldn't add too much overhead. --Steve On Thu, Mar 26, 2020 at 12:49 PM TC Haddad wrote: > > Can you configure Openlayers to not send tiled WMS requests to Mapserver? > > If you still want to send tiled requests, you could try setting up > MapCache to see if it improves the situation. > > On Thu, Mar 26, 2020 at 1:09 AM Leehan wrote: > >> I am not using qgis : It s an Openlayers + Mapserver application ; >> >> >> >> -- >> Sent from: >> http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Mar 26 13:56:49 2020 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 26 Mar 2020 21:56:49 +0100 Subject: [mapserver-users] R: Problem with PostGIS 3.0.0 In-Reply-To: <171189925d6.e47ba5f359283.2573155567326299450@gter.it> References: <171189925d6.e47ba5f359283.2573155567326299450@gter.it> Message-ID: <17118a21d8c.be4db8ab59479.1519943434659026539@gter.it> On the server log this is the error: 2020-03-26 21:43:32.939 CET [27786] user at dbname STATEMENT:? SELECT postgis_version() 2020-03-26 21:43:34.185 CET [28060] user at dbname ERROR:? function postgis_version() does not exist at character 8 2020-03-26 21:43:34.185 CET [28060] user at dbname HINT:? No function matches the given name and argument types. You might need to add explicit type casts. Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- Attivato gio, 26 mar 2020 21:47:02 +0100 Roberto Marzocchi ha scritto ---- I have a mapserver 7.0.7 installed on a Ubuntu server 18.04. I have updated to PostGIS v. 3.0.0 and for some layers I encountered the following error:? msDrawMap(): Image handling error. Failed to draw layer named 'M_vel_10'. msPostGISRetrieveVersion(): Query error. Error executing SQL. check server logs. Anyone have suggestion? Thanks in advanced, R? Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Mar 26 13:47:02 2020 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 26 Mar 2020 21:47:02 +0100 Subject: [mapserver-users] Problem with PostGIS 3.0.0 Message-ID: <171189925d6.e47ba5f359283.2573155567326299450@gter.it> I have a mapserver 7.0.7 installed on a Ubuntu server 18.04. I have updated to PostGIS v. 3.0.0 and for some layers I encountered the following error:? msDrawMap(): Image handling error. Failed to draw layer named 'M_vel_10'. msPostGISRetrieveVersion(): Query error. Error executing SQL. check server logs. Anyone have suggestion? Thanks in advanced, R? Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.marzocchi at gter.it Thu Mar 26 14:06:54 2020 From: roberto.marzocchi at gter.it (Roberto Marzocchi) Date: Thu, 26 Mar 2020 22:06:54 +0100 Subject: [mapserver-users] R: Problem with PostGIS 3.0.0 In-Reply-To: <17118a21d8c.be4db8ab59479.1519943434659026539@gter.it> References: <171189925d6.e47ba5f359283.2573155567326299450@gter.it> <17118a21d8c.be4db8ab59479.1519943434659026539@gter.it> Message-ID: <17118ab56a3.bf652f0459710.7906377254698405229@gter.it> Sorry it isn't a problem of mapserver. There is only a problem with permission of public schema.? All the best,? R Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- Attivato gio, 26 mar 2020 21:56:49 +0100 Roberto Marzocchi ha scritto ---- On the server log this is the error: 2020-03-26 21:43:32.939 CET [27786] user at dbname STATEMENT:? SELECT postgis_version() 2020-03-26 21:43:34.185 CET [28060] user at dbname ERROR:? function postgis_version() does not exist at character 8 2020-03-26 21:43:34.185 CET [28060] user at dbname HINT:? No function matches the given name and argument types. You might need to add explicit type casts. Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! ---- Attivato gio, 26 mar 2020 21:47:02 +0100 Roberto Marzocchi ha scritto ---- I have a mapserver 7.0.7 installed on a Ubuntu server 18.04. I have updated to PostGIS v. 3.0.0 and for some layers I encountered the following error:? msDrawMap(): Image handling error. Failed to draw layer named 'M_vel_10'. msPostGISRetrieveVersion(): Query error. Error executing SQL. check server logs. Anyone have suggestion? Thanks in advanced, R? Eng. Roberto Marzocchi, PhD CTO - Chief Technology Officer Gter srl (Unige spin-off) Via Ruffini 9R - 16128 Genova http://P.IVA/CF 01998770992 ph: 010-0899150 - mob: 349-8786575 E-mail: mailto:roberto.marzocchi at gter.it http://www.gter.it -- Gter social http://www.twitter.com/Gteronline - http://www.facebook.com/Gteronline http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis ----------------------------------------------------------------- Please consider the environment before printing this email! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathias.cunault at inrap.fr Fri Mar 27 02:27:04 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Fri, 27 Mar 2020 02:27:04 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> <1585210133039-0.post@n6.nabble.com> Message-ID: <1585301224382-0.post@n6.nabble.com> following your advice, I added quedalle classe : ... LAYER NAME "nombre de cas" TYPE POINT PROJECTION "init=epsg:2154" END EXTENT 276838.0988 4584246.823 909596.998 8872270.142 CONNECTIONTYPE POSTGIS CONNECTION blabla LABELITEM "nb_cas" CLASS EXPRESSION "quedalle" STYLE SYMBOL "circle" SIZE 150 COLOR 0 0 0 END END CLASS STYLE SYMBOL "cas" SIZE [ln_nb_cas] COLOR [couleur] OPACITY 70 END #fin style LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT "verdana-gras" TYPE truetype SIZE 8 END END #fin class And indeed I am using an attribute for red circle size. But the result is still the same. (I can't believe I am the first to experience this issue!) If it can help, here is a snap with the dummy class : -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jukka.rahkonen at maanmittauslaitos.fi Fri Mar 27 02:54:38 2020 From: jukka.rahkonen at maanmittauslaitos.fi (Rahkonen Jukka (MML)) Date: Fri, 27 Mar 2020 09:54:38 +0000 Subject: [mapserver-users] layer with "truncated" symbols 2 Message-ID: Hi, Your problem is on the client side. OpenLayers is now requesting tiles with 256x256 pixels. The middle tile has not any point inside its bounding box and therefore no symbols are rendered. Configure OpenLayers to do single tile requests. http://dev.openlayers.org/examples/single-tile.html Posts from gis.stackexchange dealing with this common issue with tiling clients: https://gis.stackexchange.com/questions/198450/need-clarification-on-geoserver-meta-tile https://gis.stackexchange.com/questions/87116/geoserver-cutting-off-symbols-close-to-tile-edges/87123#87123 https://gis.stackexchange.com/questions/83033/single-tiled-mapserver-wms-to-avoid-labels-and-features-cut-along-tile-borders-a Duplicated labels is another version of the same issue https://www.geowebcache.org/docs/current/concepts/metatiles.html Using some tile cache program like MapProxy, MapCache of GeoWebCache between OpenLayers and WMS is another way to resolve the problem. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users Puolesta Leehan L?hetetty: perjantai 27. maaliskuuta 2020 11.27 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] layer with "truncated" symbols 2 following your advice, I added quedalle classe : ... LAYER NAME "nombre de cas" TYPE POINT PROJECTION "init=epsg:2154" END EXTENT 276838.0988 4584246.823 909596.998 8872270.142 CONNECTIONTYPE POSTGIS CONNECTION blabla LABELITEM "nb_cas" CLASS EXPRESSION "quedalle" STYLE SYMBOL "circle" SIZE 150 COLOR 0 0 0 END END CLASS STYLE SYMBOL "cas" SIZE [ln_nb_cas] COLOR [couleur] OPACITY 70 END #fin style LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT "verdana-gras" TYPE truetype SIZE 8 END END #fin class And indeed I am using an attribute for red circle size. But the result is still the same. (I can't believe I am the first to experience this issue!) If it can help, here is a snap with the dummy class : -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From mathias.cunault at inrap.fr Fri Mar 27 04:36:15 2020 From: mathias.cunault at inrap.fr (Leehan) Date: Fri, 27 Mar 2020 04:36:15 -0700 (MST) Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: References: <1585144964872-0.post@n6.nabble.com> Message-ID: <1585308975222-0.post@n6.nabble.com> Thanks for all these links. I read most of them and understood a very few. I tried to find the simplest solution for me. In OL doc, I noticed a gutter option for ol/source/TileWMS. According to this, on Mapserver side, there was a parameter to adjust : tile_map_edge_buffer, I never found where to modify it ! So as a start, I only added a "gutter: 50" on my js file. As far as I understand : a buffer is created around red circle so symbols are "cut" but farther so they appear entirely. It was enough. -- Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html From jmckenna at gatewaygeomatics.com Fri Mar 27 04:52:18 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 27 Mar 2020 08:52:18 -0300 Subject: [mapserver-users] *NAMESPRO.CA Detected Spam* Re: layer with "truncated" symbols 2 In-Reply-To: <1585308975222-0.post@n6.nabble.com> References: <1585308975222-0.post@n6.nabble.com> Message-ID: <2f4f948a-5cd6-20c2-b8e6-d82460e72ecd@gatewaygeomatics.com> To help give back to the community (from all the good support you received), you could take your mapfile layer, issue description, images, and solution, and document it on the MapServer wiki in the "Tips, Tricks, Howto" section at https://github.com/mapserver/mapserver/wiki thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-27 8:36 a.m., Leehan wrote: > Thanks for all these links. > I read most of them and understood a very few. I tried to find the simplest > solution for me. > In OL doc, I noticed a gutter option for ol/source/TileWMS. According to > this, on Mapserver side, there was a parameter to adjust : > tile_map_edge_buffer, I never found where to modify it ! > So as a start, I only added a "gutter: 50" on my js file. As far as I > understand : a buffer is created around red circle so symbols are "cut" but > farther so they appear entirely. It was enough. > From sdlime at gmail.com Fri Mar 27 06:31:07 2020 From: sdlime at gmail.com (Steve Lime) Date: Fri, 27 Mar 2020 08:31:07 -0500 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585301224382-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> <5a85eae4-ce08-f5cd-a1eb-7ddff64df9b4@wheregroup.com> <1585151198160-0.post@n6.nabble.com> <1585210133039-0.post@n6.nabble.com> <1585301224382-0.post@n6.nabble.com> Message-ID: It's the dynamic size that's causing the issues. I still think this could work (on the server side) but I'll need to work up my own test case to avoid a bunch of back and forth. --Steve On Fri, Mar 27, 2020 at 4:27 AM Leehan wrote: > following your advice, I added quedalle classe : > > ... > LAYER > NAME "nombre de cas" > TYPE POINT > PROJECTION > "init=epsg:2154" > END > EXTENT 276838.0988 4584246.823 909596.998 8872270.142 > CONNECTIONTYPE POSTGIS > CONNECTION blabla > LABELITEM "nb_cas" > CLASS > EXPRESSION "quedalle" > STYLE > SYMBOL "circle" > SIZE 150 > COLOR 0 0 0 > END > END > CLASS > STYLE > SYMBOL "cas" > SIZE [ln_nb_cas] > COLOR [couleur] > OPACITY 70 > END #fin style > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FONT "verdana-gras" > TYPE truetype > SIZE 8 > END > END #fin class > > And indeed I am using an attribute for red circle size. > But the result is still the same. > (I can't believe I am the first to experience this issue!) > If it can help, here is a snap with the dummy class : > > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Fri Mar 27 06:42:07 2020 From: sdlime at gmail.com (Steve Lime) Date: Fri, 27 Mar 2020 08:42:07 -0500 Subject: [mapserver-users] layer with "truncated" symbols 2 In-Reply-To: <1585308975222-0.post@n6.nabble.com> References: <1585144964872-0.post@n6.nabble.com> <1585308975222-0.post@n6.nabble.com> Message-ID: The parameter tile_map_edge_buffer applies *only* to MapServer CGI with mode=tile (https://mapserver.org/output/tile_mode.html). It's set as a METADATA property within the WEB object (I think). The gutter parameter has a similar effect. I assume it's padding the WMS extent sent to MapServer and requesting a larger image. You could look at the WMS URLs being requested with that parameter set to 0 and to 50 to be sure. --Steve On Fri, Mar 27, 2020 at 6:36 AM Leehan wrote: > Thanks for all these links. > I read most of them and understood a very few. I tried to find the simplest > solution for me. > In OL doc, I noticed a gutter option for ol/source/TileWMS. According to > this, on Mapserver side, there was a parameter to adjust : > tile_map_edge_buffer, I never found where to modify it ! > So as a start, I only added a "gutter: 50" on my js file. As far as I > understand : a buffer is created around red circle so symbols are "cut" but > farther so they appear entirely. It was enough. > > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at geoworld.de Sat Mar 28 03:25:17 2020 From: mapserver at geoworld.de (Nicol Hermann) Date: Sat, 28 Mar 2020 11:25:17 +0100 Subject: [mapserver-users] Characters breaks variable substitution in TEXT parameter Message-ID: <9f15ca8bf3c19f0c44cf0de168da21ff075dd3ac.camel@geoworld.de> Hello, I want to use the TEXT parameter within a CLASS LABEL block to label features with multiple fields. CLASS LABEL TEXT "[frist] [second] [third]" COLOR 0 0 0 FONT "arial" ... END END I found that any character in between the specified fields of the TEXT keyword breaks the substitution of the fields. This works TEXT "[frist] [second] [third]" Does not work (the output is: '2 - [second] - [third]') TEXT "[frist] - [second] - [third]" Does not work either (same out like above just with line breaks) TEXT "[frist] - [second] - [third]" WRAP '-' Any idea how to concatenate text with substitutes from multiple field? In the ideal case in combination with the WRAP parameter. Thanks Nicol From jmckenna at gatewaygeomatics.com Sat Mar 28 06:07:32 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 28 Mar 2020 10:07:32 -0300 Subject: [mapserver-users] Characters breaks variable substitution in TEXT parameter In-Reply-To: <9f15ca8bf3c19f0c44cf0de168da21ff075dd3ac.camel@geoworld.de> References: <9f15ca8bf3c19f0c44cf0de168da21ff075dd3ac.camel@geoworld.de> Message-ID: <21d3851b-ead8-70a6-acc2-cc1b89673c71@gatewaygeomatics.com> Hi Nicol, I have just tested this locally and the following does work: TEXT "[attribute1] - [attribute2] - [attribute3]" as well as TEXT "[attribute1]-[attribute2]-[attribute3]" Both produce expected map/label results with shp2img. I am testing with MS4W 4.0.3 (MapServer 7.6.0-dev). You can see my mapfile (I use inline features, so you could even paste the feature locally to test): https://ms4w.dev/text-multiple/text-multiple.map Here is the map output: https://ms4w.dev/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-text-multiple/text-multiple.map&layers=all&mode=browse&template=openlayers Hope I am understanding your question properly. And good morning from the east coast of Canada, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-28 7:25 a.m., Nicol Hermann wrote: > Hello, > > I want to use the TEXT parameter within a CLASS LABEL block to label > features with multiple fields. > > CLASS > LABEL > TEXT "[frist] [second] [third]" > COLOR 0 0 0 > FONT "arial" > ... > END > END > > I found that any character in between the specified fields of the TEXT > keyword breaks the substitution of the fields. > > This works > TEXT "[frist] [second] [third]" > > Does not work (the output is: '2 - [second] - [third]') > TEXT "[frist] - [second] - [third]" > > Does not work either (same out like above just with line breaks) > TEXT "[frist] - [second] - [third]" > WRAP '-' > > Any idea how to concatenate text with substitutes from multiple field? > In the ideal case in combination with the WRAP parameter. > > Thanks > Nicol > > From jp.chenel at LIVE.CA Sat Mar 28 07:22:39 2020 From: jp.chenel at LIVE.CA (Jean-Philippe Chenel) Date: Sat, 28 Mar 2020 14:22:39 +0000 Subject: [mapserver-users] MapScript PHP label with expression and linebreak Message-ID: Hi, Using MapScript PHP API, I want to create a label object (using tostring expression) and put 2 columns with a linebreak between them. The example above is working well on a single line, but I don?t know how to make the linebreak (carriage return). $text = "(tostring([vol],'%.2f')+'[vol]')"; $classObj = new classObj($layer); $classObj->setText($text); $classObj->addLabel(CreateNewLabel($labelProperties)); I've tried multiple combination of \r\n but none of them work (map rendering work, but the label completely disappear). $text = "(tostring([vol],'%.2f') + '\r\n[vol]')"; $text = "(tostring([vol],'%.2f') + '\r\n' + '[vol]')"; If I don?t use the expression, the line break work $text = "'[vol]\r\n[vol]'"; By the way, the TEXT property is on the classObj, the setText method doesn?t work on the labelObj. With best regards, MapServer 7.4.4 (under ubuntu 16.04) PHP 5.6.40 Jean-Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenwoodbridge37 at gmail.com Sat Mar 28 07:43:47 2020 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Sat, 28 Mar 2020 10:43:47 -0400 Subject: [mapserver-users] MapScript PHP label with expression and linebreak In-Reply-To: References: Message-ID: <08eef247-f070-4c14-dc68-dc30ccabcdb7@gmail.com> When labeling with linebreaks, I insert an unique character like '@', so "[field1]@[field2]" and then on the label block add WRAP "@" Try that and see if it works for you. -Steve W On 3/28/2020 10:22 AM, Jean-Philippe Chenel wrote: > Hi, > > Using MapScript PHP API, I want to create a label object (using > tostring expression) and put 2 columns with a linebreak between them. > The example above is working well on a single line, but I don?t know > how to make the linebreak (carriage return). > > $text =?"(tostring([vol],'%.2f')+'[vol]')"; > $classObj = new classObj($layer); > $classObj->setText($text); > $classObj->addLabel(CreateNewLabel($labelProperties)); > > I've tried multiple combination of \r\n but none of them work (map > rendering work, but the label completely disappear). > $text =?"(tostring([vol],'%.2f') + '\r\n[vol]')"; > $text =?"(tostring([vol],'%.2f') + '\r\n' + '[vol]')"; > > If I don?t use the expression, the line break work > $text =?"'[vol]\r\n[vol]'"; > > By the way, the TEXT property is on the classObj, the setText method > doesn?t work on the labelObj. > > With best regards, > > MapServer 7.4.4 (under ubuntu 16.04) > PHP 5.6.40 > > Jean-Philippe > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jp.chenel at live.ca Sat Mar 28 07:48:35 2020 From: jp.chenel at live.ca (Jean-Philippe Chenel) Date: Sat, 28 Mar 2020 14:48:35 +0000 Subject: [mapserver-users] MapScript PHP label with expression and linebreak In-Reply-To: <08eef247-f070-4c14-dc68-dc30ccabcdb7@gmail.com> References: , <08eef247-f070-4c14-dc68-dc30ccabcdb7@gmail.com> Message-ID: Hi Steve, Using MapScript PHP API, WRAP is a integer member. I've also tried this, but the map isnt rendering. $labelObj->set("WRAP", "@"); Thank you very much for your help Jean-Philippe ________________________________ De : mapserver-users de la part de Stephen Woodbridge Envoy? : 28 mars 2020 10:43 ? : mapserver-users at lists.osgeo.org Objet : Re: [mapserver-users] MapScript PHP label with expression and linebreak When labeling with linebreaks, I insert an unique character like '@', so "[field1]@[field2]" and then on the label block add WRAP "@" Try that and see if it works for you. -Steve W On 3/28/2020 10:22 AM, Jean-Philippe Chenel wrote: > Hi, > > Using MapScript PHP API, I want to create a label object (using > tostring expression) and put 2 columns with a linebreak between them. > The example above is working well on a single line, but I don?t know > how to make the linebreak (carriage return). > > $text = "(tostring([vol],'%.2f')+'[vol]')"; > $classObj = new classObj($layer); > $classObj->setText($text); > $classObj->addLabel(CreateNewLabel($labelProperties)); > > I've tried multiple combination of \r\n but none of them work (map > rendering work, but the label completely disappear). > $text = "(tostring([vol],'%.2f') + '\r\n[vol]')"; > $text = "(tostring([vol],'%.2f') + '\r\n' + '[vol]')"; > > If I don?t use the expression, the line break work > $text = "'[vol]\r\n[vol]'"; > > By the way, the TEXT property is on the classObj, the setText method > doesn?t work on the labelObj. > > With best regards, > > MapServer 7.4.4 (under ubuntu 16.04) > PHP 5.6.40 > > Jean-Philippe > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenwoodbridge37 at gmail.com Sat Mar 28 08:42:46 2020 From: stephenwoodbridge37 at gmail.com (Stephen Woodbridge) Date: Sat, 28 Mar 2020 11:42:46 -0400 Subject: [mapserver-users] MapScript PHP label with expression and linebreak In-Reply-To: References: <08eef247-f070-4c14-dc68-dc30ccabcdb7@gmail.com> Message-ID: <7e1f32e3-2b4d-c91c-9429-0f1436f1302b@gmail.com> On 3/28/2020 10:48 AM, Jean-Philippe Chenel wrote: > Hi Steve, > > Using MapScript PHP API, WRAP is a integer member. That sounds like it might be a bug in PHP API because in: https://mapserver.org/mapfile/label.html MAXLENGTH [ integer] WARP [character] You might want to open a ticket and put in what you have tested. I would also try making a trivial mapfile with a feature and label it to see that it works without the PHP mapscript and then reproduce that in a simple PHP script to submit as examples of the issue. Hope this helps, ? -Steve > > I've also tried this, but the map isnt rendering. > $labelObj->set("WRAP", "@"); > > Thank you very much for your help > Jean-Philippe > ------------------------------------------------------------------------ > *De :* mapserver-users de la > part de Stephen Woodbridge > *Envoy? :* 28 mars 2020 10:43 > *? :* mapserver-users at lists.osgeo.org > *Objet :* Re: [mapserver-users] MapScript PHP label with expression > and linebreak > When labeling with linebreaks, I insert an unique character like '@', so > "[field1]@[field2]" and then on the label block add > WRAP "@" > > Try that and see if it works for you. > > -Steve W > > On 3/28/2020 10:22 AM, Jean-Philippe Chenel wrote: > > Hi, > > > > Using MapScript PHP API, I want to create a label object (using > > tostring expression) and put 2 columns with a linebreak between them. > > The example above is working well on a single line, but I don?t know > > how to make the linebreak (carriage return). > > > > $text =?"(tostring([vol],'%.2f')+'[vol]')"; > > $classObj = new classObj($layer); > > $classObj->setText($text); > > $classObj->addLabel(CreateNewLabel($labelProperties)); > > > > I've tried multiple combination of \r\n but none of them work (map > > rendering work, but the label completely disappear). > > $text =?"(tostring([vol],'%.2f') + '\r\n[vol]')"; > > $text =?"(tostring([vol],'%.2f') + '\r\n' + '[vol]')"; > > > > If I don?t use the expression, the line break work > > $text =?"'[vol]\r\n[vol]'"; > > > > By the way, the TEXT property is on the classObj, the setText method > > doesn?t work on the labelObj. > > > > With best regards, > > > > MapServer 7.4.4 (under ubuntu 16.04) > > PHP 5.6.40 > > > > Jean-Philippe > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Sat Mar 28 09:34:36 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 28 Mar 2020 13:34:36 -0300 Subject: [mapserver-users] 7.6.0-beta2 released In-Reply-To: References: Message-ID: <0a816277-e16d-22ec-99fe-37d5deb6c98a@gatewaygeomatics.com> The MapServer team is pleased to announce the second beta release of MapServer 7.6. Please help us test and let us know of any findings. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/7-6.html . Thank you to the testers of beta1. -- The MapServer Team From mapserver at geoworld.de Sat Mar 28 09:36:24 2020 From: mapserver at geoworld.de (Nicol Hermann) Date: Sat, 28 Mar 2020 17:36:24 +0100 Subject: [mapserver-users] Characters breaks variable substitution in TEXT parameter In-Reply-To: <21d3851b-ead8-70a6-acc2-cc1b89673c71@gatewaygeomatics.com> References: <9f15ca8bf3c19f0c44cf0de168da21ff075dd3ac.camel@geoworld.de> <21d3851b-ead8-70a6-acc2-cc1b89673c71@gatewaygeomatics.com> Message-ID: <1b13f4118ca84371cf3f863dcb186368d2ee6b9a.camel@geoworld.de> Hey Jeff, thanks for your feedback. It was obviously an issue with version 7.4.3 An upgrade to 7.4.4 solved the problem. Thanks for your help and greetings to Canada Nicol Am Samstag, den 28.03.2020, 10:07 -0300 schrieb Jeff McKenna: > Hi Nicol, > > I have just tested this locally and the following does work: > > TEXT "[attribute1] - [attribute2] - [attribute3]" > > as well as > > TEXT "[attribute1]-[attribute2]-[attribute3]" > > Both produce expected map/label results with shp2img. I am testing > with > MS4W 4.0.3 (MapServer 7.6.0-dev). > > You can see my mapfile (I use inline features, so you could even > paste > the feature locally to test): > https://ms4w.dev/text-multiple/text-multiple.map > > Here is the map output: > https://ms4w.dev/cgi-bin/mapserv.exe?map=/ms4w/apps/ticket-text-multiple/text-multiple.map&layers=all&mode=browse&template=openlayers > > Hope I am understanding your question properly. And good morning > from > the east coast of Canada, > > -jeff > > > From mapserver at geoworld.de Sat Mar 28 09:51:09 2020 From: mapserver at geoworld.de (Nicol Hermann) Date: Sat, 28 Mar 2020 17:51:09 +0100 Subject: [mapserver-users] MapScript PHP label with expression and linebreak In-Reply-To: <7e1f32e3-2b4d-c91c-9429-0f1436f1302b@gmail.com> References: <08eef247-f070-4c14-dc68-dc30ccabcdb7@gmail.com> <7e1f32e3-2b4d-c91c-9429-0f1436f1302b@gmail.com> Message-ID: <67aa640675264ea04029c8ae00fff9fd149b0812.camel@geoworld.de> Hello Jean-Philippe, On a different but related topic I found that WRAP parameter was not working as expected with a '|' while it was perfectly working with an '-'. Maybe you can try this instead of a '@'. Nicol Am Samstag, den 28.03.2020, 11:42 -0400 schrieb Stephen Woodbridge: > On 3/28/2020 10:48 AM, Jean-Philippe Chenel wrote: > > Hi Steve, > > > > Using MapScript PHP API, WRAP is a integer member. > That sounds like it might be a bug in PHP API because in: > > https://mapserver.org/mapfile/label.html > > MAXLENGTH [ integer] > WARP [character] > > You might want to open a ticket and put in what you have tested. > I would also try making a trivial mapfile with a feature and label it > to > see that it works without the PHP mapscript > and then reproduce that in a simple PHP script to submit as examples > of > the issue. > > Hope this helps, > -Steve > > > I've also tried this, but the map isnt rendering. > > $labelObj->set("WRAP", "@"); > > > > Thank you very much for your help > > Jean-Philippe > > ----------------------------------------------------------------- > > ------- > > *De :* mapserver-users de > > la > > part de Stephen Woodbridge > > *Envoy? :* 28 mars 2020 10:43 > > *? :* mapserver-users at lists.osgeo.org < > > mapserver-users at lists.osgeo.org> > > *Objet :* Re: [mapserver-users] MapScript PHP label with > > expression > > and linebreak > > When labeling with linebreaks, I insert an unique character like > > '@', so > > "[field1]@[field2]" and then on the label block add > > WRAP "@" > > > > Try that and see if it works for you. > > > > -Steve W > > > > On 3/28/2020 10:22 AM, Jean-Philippe Chenel wrote: > > > Hi, > > > > > > Using MapScript PHP API, I want to create a label object (using > > > tostring expression) and put 2 columns with a linebreak between > > > them. > > > The example above is working well on a single line, but I don?t > > > know > > > how to make the linebreak (carriage return). > > > > > > $text = "(tostring([vol],'%.2f')+'[vol]')"; > > > $classObj = new classObj($layer); > > > $classObj->setText($text); > > > $classObj->addLabel(CreateNewLabel($labelProperties)); > > > > > > I've tried multiple combination of \r\n but none of them work > > > (map > > > rendering work, but the label completely disappear). > > > $text = "(tostring([vol],'%.2f') + '\r\n[vol]')"; > > > $text = "(tostring([vol],'%.2f') + '\r\n' + '[vol]')"; > > > > > > If I don?t use the expression, the line break work > > > $text = "'[vol]\r\n[vol]'"; > > > > > > By the way, the TEXT property is on the classObj, the setText > > > method > > > doesn?t work on the labelObj. > > > > > > With best regards, > > > > > > MapServer 7.4.4 (under ubuntu 16.04) > > > PHP 5.6.40 > > > > > > Jean-Philippe > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jsg at internode.on.net Sun Mar 29 15:39:57 2020 From: jsg at internode.on.net (James Gardner) Date: Mon, 30 Mar 2020 06:39:57 +0800 Subject: [mapserver-users] fastcgi performance question In-Reply-To: References: Message-ID: <4b914003-cefd-7e67-9b55-14004bf8c150@internode.on.net> Hi! I have been doing some benchmarking of mapserver running through fastcgi, and an experiment with mapserver called through php through ms_iohandlerequest, running through php seems significantly faster (8x) than through fastcgi... the benchmark I am using is a log of GetMap requests from our production servers... called through a program called 'siege' with 20 concurrent connections... my setup is; ???????? ubuntu 18.04 LTS, ???????? gdal-2.4 from ubuntugis stable ???????? mapserver 7.4.1 from ubuntugis-stable ???????? php7.2 from ubuntu-stable When I hook mapproxy up to /cgi/bin/mapserv?map= i get 10000 request per 10 minutes answered... when i hook mapproxy up to /mapser/mapserv.php I get 80,000 requests per 10 minutes answered... for a 20 Mb shapefile with 70,000 points to display... mapserv.php is a php file that parses the url and calls ms_iohandlerequest mapproxy is set to not cache that particular layer... I have tried going straight to the fastcgi path /cgi-bin/mapserv?map= and straight to the php file, but the php file is always faster... if you want i can make some docker container scripts to illustrate the point... does anyone have any ideas what could be causing this difference? Thanks. ? JG. From lars.fricke at skendata.de Mon Mar 30 00:11:40 2020 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 30 Mar 2020 09:11:40 +0200 Subject: [mapserver-users] defining fallback source in WMS client definition Message-ID: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_800x100px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From jbo-ads at mailo.com Mon Mar 30 01:09:29 2020 From: jbo-ads at mailo.com (jbo-ads) Date: Mon, 30 Mar 2020 10:09:29 +0200 Subject: [mapserver-users] defining fallback source in WMS client definition In-Reply-To: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> References: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> Message-ID: Hi, Wouldn't MapCache be a better tool for that task? I think of a configuration based on fallback caches: . J?rome. Le 30/03/2020 ? 09:11, Lars Fricke a ?crit?: > Dear all, > > We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect > several WMS into one place, serving them to our application. > The task now is to define a fallback for one of the WMS source > servers. That means: > > Mapserver will have two technically identical sources for the same > output layer, only the URL is different. Is there a way to define (in > mapfile preferably) that one source is only used if the other fails > (is offline)? I thought of layer groups but then I will have a > duplicate call if both sources are available. I do know this would be > a better task for a load balancer or proxy but we do not have that > option at this time. > > Thank you for your time and thoughts. > > Best > > Lars > > Lars Fricke > Forschung & Entwicklung > > +49(0)39602-183097 > +49(0)39602-183098 > > SkenData GmbH > M?hlendamm 8B > 18055 Rostock > www.skendata.de > > > Wert14 > > > www.wert14.de > > Gesch?ftsf?hrer: Jon Meis und Sven Jantzen > Amtsgericht Rostock HRB 12937 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Mon Mar 30 01:45:09 2020 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 30 Mar 2020 08:45:09 +0000 Subject: [mapserver-users] defining fallback source in WMS client definition In-Reply-To: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> References: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> Message-ID: Hallo Lars, since you're on Ubuntu you're likely running MapServer in combination with an Apache HTTPd. So one option is to use an URL on localhost in your MapFile and let your webserver fordward it via mod_proxy using a fail over configuration. HTH -----Urspr?ngliche Nachricht----- Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Lars Fricke Gesendet: Montag, 30. M?rz 2020 09:12 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] defining fallback source in WMS client definition Dear all, We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect several WMS into one place, serving them to our application. The task now is to define a fallback for one of the WMS source servers. That means: Mapserver will have two technically identical sources for the same output layer, only the URL is different. Is there a way to define (in mapfile preferably) that one source is only used if the other fails (is offline)? I thought of layer groups but then I will have a duplicate call if both sources are available. I do know this would be a better task for a load balancer or proxy but we do not have that option at this time. Thank you for your time and thoughts. Best Lars Lars Fricke Forschung & Entwicklung +49(0)39602-183097 +49(0)39602-183098 SkenData GmbH M?hlendamm 8B 18055 Rostock www.skendata.de Wert14 www.wert14.de Gesch?ftsf?hrer: Jon Meis und Sven Jantzen Amtsgericht Rostock HRB 12937 From lars.fricke at skendata.de Mon Mar 30 02:15:29 2020 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 30 Mar 2020 11:15:29 +0200 Subject: [mapserver-users] defining fallback source in WMS client definition In-Reply-To: References: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> Message-ID: <1e8ca22a-fe30-4ea2-28cf-3ddbe8fa357e@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From lars.fricke at skendata.de Mon Mar 30 02:17:26 2020 From: lars.fricke at skendata.de (Lars Fricke) Date: Mon, 30 Mar 2020 11:17:26 +0200 Subject: [mapserver-users] defining fallback source in WMS client definition In-Reply-To: References: <9dd42acf-756c-c972-c425-8f52c05a29ef@skendata.de> Message-ID: <1d8ec0a6-1b85-225a-244c-fff84f07641c@skendata.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: email_footer_450x80px.jpg Type: image/jpeg Size: 17650 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Tue Mar 31 11:05:04 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 31 Mar 2020 15:05:04 -0300 Subject: [mapserver-users] fastcgi performance question In-Reply-To: <4b914003-cefd-7e67-9b55-14004bf8c150@internode.on.net> References: <4b914003-cefd-7e67-9b55-14004bf8c150@internode.on.net> Message-ID: Hi JG, I think your benchmarking is very useful for the MapServer community, especially the timing since with PROJ 6+ there will possibly be more of a requirement for performance through mapscript and FastCGI (that's the initial rumours anyway). So that's my first comment, is to also focus on specific PROJ versions in your testing (PROJ 6 and master versus PROJ 5.2.0 with MapServer) and how that impacts CGI, MapScript and FastCGI; and by reviewing those numbers we the community can learn and tackle the best way forward. I am sure those results would be really useful for the entire community (as well as the configuration required). PHP7 brought many speed improvements, so in that sense I'm not surprised by your numbers, plus just the number of tickets, comments, emails, posts about PHPMapScript shows that it is still heavily used for performance sites. I'm also curious as to results with using different SWIG versions as well, as that is a common question in regards to the new 'PHPNG' SWIG support for PHP7 in MapServer. Maybe consider that for your benchmarks. I think it's great that you are using GetMap requests for testing, as this is such a common question/post, regarding speed of display in a WMS service inside tools such as QGIS, by users. You mention MapProxy, but could you also please compare speeds with MapCache? (as MapCache is well maintained & part of the MapServer family) Regarding data format, instead of just Shapefile maybe also test against a GeoPackage (SQLite database), and possibly GeoJSON or also PostGIS (in other words hit all of the big demand ones for MapServer now). Obviously this will require MapServer 7.4.4 (and for recent PROJ testing MapServer-master at the moment, as well as a recent GDAL). I could see these benchmarks as really helping the MapServer dev team, just as the 'WMS Benchmarking' exercise was for so many software teams at past FOSS4G events. Please be sure to share all scripts, mapfiles, configuration etc. It would be great if you could document your files, scripts, and results on the MapServer wiki: https://github.com/mapserver/mapserver/wiki And thank you for sharing and making the effort! Please keep us posted! -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 2020-03-29 7:39 p.m., James Gardner wrote: > > Hi! > > I have been doing some benchmarking of mapserver running through > fastcgi, and an experiment with mapserver called through php through > ms_iohandlerequest, running through php seems significantly faster (8x) > than through fastcgi... > > the benchmark I am using is a log of GetMap requests from our production > servers... > > called through a program called 'siege' with 20 concurrent connections... > > my setup is; > > ???????? ubuntu 18.04 LTS, > > ???????? gdal-2.4 from ubuntugis stable > > ???????? mapserver 7.4.1 from ubuntugis-stable > > > ???????? php7.2 from ubuntu-stable > > > When I hook mapproxy up to /cgi/bin/mapserv?map= > > i get 10000 request per 10 minutes answered... > > when i hook mapproxy up to /mapser/mapserv.php > > I get 80,000 requests per 10 minutes answered... > > for a 20 Mb shapefile with 70,000 points to display... > > mapserv.php is a php file that parses the url and calls ms_iohandlerequest > > mapproxy is set to not cache that particular layer... > > I have tried going straight to the fastcgi path /cgi-bin/mapserv?map= > and straight to the php file, but the php file is always faster... if > you want i can > make some docker container scripts to illustrate the point... > > > does anyone have any ideas what could be causing this difference? > > Thanks. > > ? JG. > >