From hardes at 3dis.de Mon Jul 3 00:49:37 2017 From: hardes at 3dis.de (Daniel Hardes) Date: Mon, 3 Jul 2017 09:49:37 +0200 (CEST) Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <30592666.N1sx6gYq4p@even-i700> References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> <30592666.N1sx6gYq4p@even-i700> Message-ID: <320896295.457993.1499068177136@communicator.strato.de> Do we need more testing or could "USE_POINT_Z_M = ON" the default in the next release? > Even Rouault hat am 30. Juni 2017 um 16:40 geschrieben: > > On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: > > On 2017-06-30 9:50 AM, Even Rouault wrote: > > > I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M > > > disabled by default. This is often annoying. > > > > > > Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by > > > performance reasons per > > > https://github.com/mapserver/mapserver/issues/1244 . But this was 12 > > > years ago. Perhaps with recent hardware the performance difference isn't > > > that big. The ticket unfortunately doesn't contain a test case to bench > > > (likely lots of lines/polygons, or large lines/polygons to render). If > > > the perf difference is still there, a more involved change would be > > > indeed to move the z and m components into separate arrays. > > > > #1244 refers to #1224 which is using the gmap demo mapfile... which is a > > relatively small dataset, so it should be easy to verify if the issue is > > still relevant on more recent hardware using gmap or probably any other > > dataset. > > > > https://github.com/mapserver/mapserver-import/issues/1224 > > OK, I downloaded > http://dl.maptools.org/dl/gmap-ms46.tar.gz > (not sure if there's a more uptodate version of it). > Added the necessary MAP and SYMBOLSET keywords in the mapfile and symbolset file. > > With master, compiled in Release (-O3) > > and the following Python mapscript bench.py > {{{ > import mapscript > > for i in range(200): > map = mapscript.mapObj('gmap75.map') > img1 = map.draw() > }}} > > I ran it 10 times consecutively with each config and took the smallest time ("real" figure) > > With USE_POINT_Z_M=OFF > > time python bench.py > > real 0m4.167s > user 0m3.964s > sys 0m0.200s > > With USE_POINT_Z_M=ON > > time python bench.py > > real 0m4.252s > user 0m3.972s > sys 0m0.260s > > So USE_POINT_Z_M=ON is 2% slower than OFF > > > On a recent (~ 1 year old) laptop with a > Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.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 Tue Jul 4 13:46:44 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 4 Jul 2017 17:46:44 -0300 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <320896295.457993.1499068177136@communicator.strato.de> References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> <30592666.N1sx6gYq4p@even-i700> <320896295.457993.1499068177136@communicator.strato.de> Message-ID: Before this past long weekend I was testing with Windows and getting about a 1% difference; but I didn't report it here because I was using the 'wallclock' time and not CPU time, on Windows. (that was with Even's 200 map draw test) I personally feel that the difference is so minimal now that yes, we should enable SUPPORTS=POINT_Z_M for the next MS4W release. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-07-03 4:49 AM, Daniel Hardes wrote: > Do we need more testing or could "USE_POINT_Z_M = ON" the default in the > next release? > >> Even Rouault hat am 30. Juni 2017 um >> 16:40 geschrieben: >> >> On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: >> >> > On 2017-06-30 9:50 AM, Even Rouault wrote: >> >> > > I'm wondering if we shouldn't revisit the decision to have >> USE_POINT_Z_M >> >> > > disabled by default. This is often annoying. >> >> > > >> >> > > Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by >> >> > > performance reasons per >> >> > > https://github.com/mapserver/mapserver/issues/1244 . But this was 12 >> >> > > years ago. Perhaps with recent hardware the performance difference >> isn't >> >> > > that big. The ticket unfortunately doesn't contain a test case to >> bench >> >> > > (likely lots of lines/polygons, or large lines/polygons to render). If >> >> > > the perf difference is still there, a more involved change would be >> >> > > indeed to move the z and m components into separate arrays. >> >> > >> >> > #1244 refers to #1224 which is using the gmap demo mapfile... which is a >> >> > relatively small dataset, so it should be easy to verify if the issue is >> >> > still relevant on more recent hardware using gmap or probably any other >> >> > dataset. >> >> > >> >> > https://github.com/mapserver/mapserver-import/issues/1224 >> >> OK, I downloaded >> >> http://dl.maptools.org/dl/gmap-ms46.tar.gz >> >> (not sure if there's a more uptodate version of it). >> >> Added the necessary MAP and SYMBOLSET keywords in the mapfile and >> symbolset file. >> >> With master, compiled in Release (-O3) >> >> and the following Python mapscript bench.py >> >> {{{ >> >> import mapscript >> >> for i in range(200): >> >> map = mapscript.mapObj('gmap75.map') >> >> img1 = map.draw() >> >> }}} >> >> I ran it 10 times consecutively with each config and took the smallest >> time ("real" figure) >> >> With USE_POINT_Z_M=OFF >> >> time python bench.py >> >> real 0m4.167s >> >> user 0m3.964s >> >> sys 0m0.200s >> >> With USE_POINT_Z_M=ON >> >> time python bench.py >> >> real 0m4.252s >> >> user 0m3.972s >> >> sys 0m0.260s >> >> So USE_POINT_Z_M=ON is 2% slower than OFF >> >> On a recent (~ 1 year old) laptop with a >> >> Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz >> >> Even >> >> -- >> >> Spatialys - Geospatial professional services >> >> http://www.spatialys.com >> > From michael.smith.erdc at gmail.com Tue Jul 4 13:57:15 2017 From: michael.smith.erdc at gmail.com (Michael Smith) Date: Tue, 4 Jul 2017 16:57:15 -0400 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> <30592666.N1sx6gYq4p@even-i700> <320896295.457993.1499068177136@communicator.strato.de> Message-ID: Is it something we should even consider removing as a compile time option? Perhaps at an v8 release? Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Jul 4, 2017, at 4:46 PM, Jeff McKenna wrote: > > Before this past long weekend I was testing with Windows and getting about a 1% difference; but I didn't report it here because I was using the 'wallclock' time and not CPU time, on Windows. (that was with Even's 200 map draw test) I personally feel that the difference is so minimal now that yes, we should enable SUPPORTS=POINT_Z_M for the next MS4W release. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > >> On 2017-07-03 4:49 AM, Daniel Hardes wrote: >> Do we need more testing or could "USE_POINT_Z_M = ON" the default in the next release? >>> Even Rouault hat am 30. Juni 2017 um 16:40 geschrieben: >>> >>> On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: >>> >>> > On 2017-06-30 9:50 AM, Even Rouault wrote: >>> >>> > > I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M >>> >>> > > disabled by default. This is often annoying. >>> >>> > > >>> >>> > > Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by >>> >>> > > performance reasons per >>> >>> > > https://github.com/mapserver/mapserver/issues/1244 . But this was 12 >>> >>> > > years ago. Perhaps with recent hardware the performance difference isn't >>> >>> > > that big. The ticket unfortunately doesn't contain a test case to bench >>> >>> > > (likely lots of lines/polygons, or large lines/polygons to render). If >>> >>> > > the perf difference is still there, a more involved change would be >>> >>> > > indeed to move the z and m components into separate arrays. >>> >>> > >>> >>> > #1244 refers to #1224 which is using the gmap demo mapfile... which is a >>> >>> > relatively small dataset, so it should be easy to verify if the issue is >>> >>> > still relevant on more recent hardware using gmap or probably any other >>> >>> > dataset. >>> >>> > >>> >>> > https://github.com/mapserver/mapserver-import/issues/1224 >>> >>> OK, I downloaded >>> >>> http://dl.maptools.org/dl/gmap-ms46.tar.gz >>> >>> (not sure if there's a more uptodate version of it). >>> >>> Added the necessary MAP and SYMBOLSET keywords in the mapfile and symbolset file. >>> >>> With master, compiled in Release (-O3) >>> >>> and the following Python mapscript bench.py >>> >>> {{{ >>> >>> import mapscript >>> >>> for i in range(200): >>> >>> map = mapscript.mapObj('gmap75.map') >>> >>> img1 = map.draw() >>> >>> }}} >>> >>> I ran it 10 times consecutively with each config and took the smallest time ("real" figure) >>> >>> With USE_POINT_Z_M=OFF >>> >>> time python bench.py >>> >>> real 0m4.167s >>> >>> user 0m3.964s >>> >>> sys 0m0.200s >>> >>> With USE_POINT_Z_M=ON >>> >>> time python bench.py >>> >>> real 0m4.252s >>> >>> user 0m3.972s >>> >>> sys 0m0.260s >>> >>> So USE_POINT_Z_M=ON is 2% slower than OFF >>> >>> On a recent (~ 1 year old) laptop with a >>> >>> Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz >>> >>> Even >>> >>> -- >>> >>> Spatialys - Geospatial professional services >>> >>> http://www.spatialys.com >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Jul 4 14:04:36 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 4 Jul 2017 18:04:36 -0300 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> <30592666.N1sx6gYq4p@even-i700> <320896295.457993.1499068177136@communicator.strato.de> Message-ID: <7d0128a3-d105-4bfb-2fcd-5a0c026d40ad@gatewaygeomatics.com> Or leaving the compile time option but enabling it by default? (maybe we are saying the same thing ha) -jeff On 2017-07-04 5:57 PM, Michael Smith wrote: > Is it something we should even consider removing as a compile time option? Perhaps at an v8 release? > > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > >> On Jul 4, 2017, at 4:46 PM, Jeff McKenna wrote: >> >> Before this past long weekend I was testing with Windows and getting about a 1% difference; but I didn't report it here because I was using the 'wallclock' time and not CPU time, on Windows. (that was with Even's 200 map draw test) I personally feel that the difference is so minimal now that yes, we should enable SUPPORTS=POINT_Z_M for the next MS4W release. >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >>> On 2017-07-03 4:49 AM, Daniel Hardes wrote: >>> Do we need more testing or could "USE_POINT_Z_M = ON" the default in the next release? >>>> Even Rouault hat am 30. Juni 2017 um 16:40 geschrieben: >>>> >>>> On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: >>>> >>>>> On 2017-06-30 9:50 AM, Even Rouault wrote: >>>> >>>>>> I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M >>>> >>>>>> disabled by default. This is often annoying. >>>> >>>>>> >>>> >>>>>> Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by >>>> >>>>>> performance reasons per >>>> >>>>>> https://github.com/mapserver/mapserver/issues/1244 . But this was 12 >>>> >>>>>> years ago. Perhaps with recent hardware the performance difference isn't >>>> >>>>>> that big. The ticket unfortunately doesn't contain a test case to bench >>>> >>>>>> (likely lots of lines/polygons, or large lines/polygons to render). If >>>> >>>>>> the perf difference is still there, a more involved change would be >>>> >>>>>> indeed to move the z and m components into separate arrays. >>>> >>>>> >>>> >>>>> #1244 refers to #1224 which is using the gmap demo mapfile... which is a >>>> >>>>> relatively small dataset, so it should be easy to verify if the issue is >>>> >>>>> still relevant on more recent hardware using gmap or probably any other >>>> >>>>> dataset. >>>> >>>>> >>>> >>>>> https://github.com/mapserver/mapserver-import/issues/1224 >>>> >>>> OK, I downloaded >>>> >>>> http://dl.maptools.org/dl/gmap-ms46.tar.gz >>>> >>>> (not sure if there's a more uptodate version of it). >>>> >>>> Added the necessary MAP and SYMBOLSET keywords in the mapfile and symbolset file. >>>> >>>> With master, compiled in Release (-O3) >>>> >>>> and the following Python mapscript bench.py >>>> >>>> {{{ >>>> >>>> import mapscript >>>> >>>> for i in range(200): >>>> >>>> map = mapscript.mapObj('gmap75.map') >>>> >>>> img1 = map.draw() >>>> >>>> }}} >>>> >>>> I ran it 10 times consecutively with each config and took the smallest time ("real" figure) >>>> >>>> With USE_POINT_Z_M=OFF >>>> >>>> time python bench.py >>>> >>>> real 0m4.167s >>>> >>>> user 0m3.964s >>>> >>>> sys 0m0.200s >>>> >>>> With USE_POINT_Z_M=ON >>>> >>>> time python bench.py >>>> >>>> real 0m4.252s >>>> >>>> user 0m3.972s >>>> >>>> sys 0m0.260s >>>> >>>> So USE_POINT_Z_M=ON is 2% slower than OFF >>>> >>>> On a recent (~ 1 year old) laptop with a >>>> >>>> Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz >>>> >>>> Even >>>> >>>> -- >>>> >>>> Spatialys - Geospatial professional services >>>> >>>> http://www.spatialys.com >>>> >> _______________________________________________ >> 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 http://www.gatewaygeomatics.com/ From steve.lime at state.mn.us Mon Jul 10 10:09:40 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 10 Jul 2017 17:09:40 +0000 Subject: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS In-Reply-To: <7d0128a3-d105-4bfb-2fcd-5a0c026d40ad@gatewaygeomatics.com> References: <181672609.404197.1498816156718@communicator.strato.de> <1955827.x8ZuCkUGdK@even-i700> <30592666.N1sx6gYq4p@even-i700> <320896295.457993.1499068177136@communicator.strato.de> <7d0128a3-d105-4bfb-2fcd-5a0c026d40ad@gatewaygeomatics.com> Message-ID: Maybe to mapserver-dev for a discussion? Could apply the patch (https://github.com/mapserver/mapserver/pull/5456) to 7.2. -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Tuesday, July 04, 2017 4:05 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] 3D / 2.5D / Coordinates with Z and GEOMETRY Type in WFS Or leaving the compile time option but enabling it by default? (maybe we are saying the same thing ha) -jeff On 2017-07-04 5:57 PM, Michael Smith wrote: > Is it something we should even consider removing as a compile time option? Perhaps at an v8 release? > > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > >> On Jul 4, 2017, at 4:46 PM, Jeff McKenna wrote: >> >> Before this past long weekend I was testing with Windows and getting about a 1% difference; but I didn't report it here because I was using the 'wallclock' time and not CPU time, on Windows. (that was with Even's 200 map draw test) I personally feel that the difference is so minimal now that yes, we should enable SUPPORTS=POINT_Z_M for the next MS4W release. >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >>> On 2017-07-03 4:49 AM, Daniel Hardes wrote: >>> Do we need more testing or could "USE_POINT_Z_M = ON" the default in the next release? >>>> Even Rouault hat am 30. Juni 2017 um 16:40 geschrieben: >>>> >>>> On vendredi 30 juin 2017 09:59:30 CEST Daniel Morissette wrote: >>>> >>>>> On 2017-06-30 9:50 AM, Even Rouault wrote: >>>> >>>>>> I'm wondering if we shouldn't revisit the decision to have USE_POINT_Z_M >>>> >>>>>> disabled by default. This is often annoying. >>>> >>>>>> >>>> >>>>>> Apparently, adding USE_POINT_Z_M defaulting to OFF was driven by >>>> >>>>>> performance reasons per >>>> >>>>>> https://github.com/mapserver/mapserver/issues/1244 . But this was 12 >>>> >>>>>> years ago. Perhaps with recent hardware the performance difference isn't >>>> >>>>>> that big. The ticket unfortunately doesn't contain a test case to bench >>>> >>>>>> (likely lots of lines/polygons, or large lines/polygons to render). If >>>> >>>>>> the perf difference is still there, a more involved change would be >>>> >>>>>> indeed to move the z and m components into separate arrays. >>>> >>>>> >>>> >>>>> #1244 refers to #1224 which is using the gmap demo mapfile... which is a >>>> >>>>> relatively small dataset, so it should be easy to verify if the issue is >>>> >>>>> still relevant on more recent hardware using gmap or probably any other >>>> >>>>> dataset. >>>> >>>>> >>>> >>>>> https://github.com/mapserver/mapserver-import/issues/1224 >>>> >>>> OK, I downloaded >>>> >>>> http://dl.maptools.org/dl/gmap-ms46.tar.gz >>>> >>>> (not sure if there's a more uptodate version of it). >>>> >>>> Added the necessary MAP and SYMBOLSET keywords in the mapfile and symbolset file. >>>> >>>> With master, compiled in Release (-O3) >>>> >>>> and the following Python mapscript bench.py >>>> >>>> {{{ >>>> >>>> import mapscript >>>> >>>> for i in range(200): >>>> >>>> map = mapscript.mapObj('gmap75.map') >>>> >>>> img1 = map.draw() >>>> >>>> }}} >>>> >>>> I ran it 10 times consecutively with each config and took the smallest time ("real" figure) >>>> >>>> With USE_POINT_Z_M=OFF >>>> >>>> time python bench.py >>>> >>>> real 0m4.167s >>>> >>>> user 0m3.964s >>>> >>>> sys 0m0.200s >>>> >>>> With USE_POINT_Z_M=ON >>>> >>>> time python bench.py >>>> >>>> real 0m4.252s >>>> >>>> user 0m3.972s >>>> >>>> sys 0m0.260s >>>> >>>> So USE_POINT_Z_M=ON is 2% slower than OFF >>>> >>>> On a recent (~ 1 year old) laptop with a >>>> >>>> Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz >>>> >>>> Even >>>> >>>> -- >>>> >>>> Spatialys - Geospatial professional services >>>> >>>> http://www.spatialys.com >>>> >> _______________________________________________ >> 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 http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From johnson.vu at canada.ca Mon Jul 10 16:31:30 2017 From: johnson.vu at canada.ca (Vu, Johnson (EC)) Date: Mon, 10 Jul 2017 23:31:30 +0000 Subject: [mapserver-users] mapserver, msProjectPoint() error Message-ID: Hi, I'm a student working on a webapp that uses mapserv 6.4.1. I've been getting this error in my ms_error.txt and I'm having trouble finding the cause. At first I thought it was a problem with my extents, so I verified all of them with my .shp files and everything was OK. I am using epsg:4326 as my projection. I've bolded the two errors I've been seeing the most. They fill the error log when I click on a region on the map. Does anyone know possible causes for the error I've posted below? I'm very new to mapserv and would appreciate any help. wxo_mapserv/tmp_output/ms_error.txt: [Mon Jul 10 23:06:29 2017].538763 msProjectPoint(): Projection library error. proj says: latitude or longitude exceeded limits [Mon Jul 10 23:06:29 2017].538797 msProjectPoint(): Projection library error. proj says: latitude or longitude exceeded limits [Mon Jul 10 23:06:29 2017].538813 msProjectRect(): some points failed to reproject, doing internal sampling. [Mon Jul 10 23:06:29 2017].539124 mapserv request processing time (msLoadMap not incl.): 0.352s [Mon Jul 10 23:06:29 2017].539162 msFreeMap(): freeing map at 0x2188de0. [Mon Jul 10 23:06:35 2017].301195 CGI Request 1 on process 31628 [Mon Jul 10 23:06:35 2017].302266 msWFSParseRequest(): WFS post request: the_geom -11383613.748454727,6924094.039571445 [Mon Jul 10 23:06:35 2017].303829 msProjectPoint(): Projection library error. proj says: tolerance condition error [Mon Jul 10 23:06:35 2017].303882 msProjectPoint(): Projection library error. proj says: tolerance condition error [Mon Jul 10 23:06:35 2017].303909 msProjectPoint(): Projection library error. proj says: tolerance condition error [Mon Jul 10 23:06:35 2017].303954 msProjectPoint(): Projection library error. proj says: tolerance condition error "msProjectPoint(): Projection library error. proj says: tolerance condition error" <- repeats several hundred lines "msProjectPoint(): Projection library error. proj says: latitude or longitude exceeded limits" <- repeats several hundred lines Post Request param: the_geom -11452101.325798245,7031717.375396973 Thanks, Johnson -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jul 10 18:11:17 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 10 Jul 2017 21:11:17 -0400 Subject: [mapserver-users] mapserver, msProjectPoint() error In-Reply-To: References: Message-ID: I think this error is caused because you have a layer with data defined in lat,lon and it has coordinatesgreater than +-85.0511287776451 degrees of latitude or > 180.0 or < -180.0 long. Coordinates outside that range will generate this error. -Steve W On 7/10/2017 7:31 PM, Vu, Johnson (EC) wrote: > Hi, > > I?m a student working on a webapp that uses mapserv 6.4.1. I?ve been > getting this error in my ms_error.txt and I?m having trouble finding the > cause. At first I thought it was a problem with my extents, so I > verified all of them with my .shp files and everything was OK. I am > using epsg:4326 as my projection. I?ve bolded the two errors I?ve been > seeing the most. They fill the error log when I click on a region on the > map. > > Does anyone know possible causes for the error I?ve posted below? I?m > very new to mapserv and would appreciate any help. > > wxo_mapserv/tmp_output/ms_error.txt: > > [Mon Jul 10 23:06:29 2017].538763 msProjectPoint(): Projection library > error. proj says: latitude or longitude exceeded limits > > [Mon Jul 10 23:06:29 2017].538797 msProjectPoint(): Projection library > error. proj says: latitude or longitude exceeded limits > > [Mon Jul 10 23:06:29 2017].538813 msProjectRect(): some points failed to > reproject, doing internal sampling. > > [Mon Jul 10 23:06:29 2017].539124 mapserv request processing time > (msLoadMap not incl.): 0.352s > > [Mon Jul 10 23:06:29 2017].539162 msFreeMap(): freeing map at 0x2188de0. > > [Mon Jul 10 23:06:35 2017].301195 CGI Request 1 on process 31628 > > [Mon Jul 10 23:06:35 2017].302266 msWFSParseRequest(): WFS post request: > > version="1.1.0" > srsName="EPSG:900913" xmlns:topp="http://www.openplan > > s.org/topp" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net > > /ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http > > ://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > typeName="clc_he_site_e" > srsName="EPSG:900913"> > > opertyName>the_geom srsName="EPSG:900913"> > > -11383613.748454727,6924094.039571445 > > > > > > [Mon Jul 10 23:06:35 2017].303829 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303882 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303909 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303954 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > *?msProjectPoint(): Projection library error. proj says: tolerance > condition error? <- repeats several hundred > lines* > > *?msProjectPoint(): Projection library error. proj says: latitude or > longitude exceeded limits? <- repeats several hundred lines* > > Post Request param: > > || > > || > > |||| > > |||| > > |||| > > |||the_geom||| > > |||| > > |||-11452101.325798245,7031717.375396973||| > > |||| > > |||| > > |||| > > |||| > > > > Thanks, > > Johnson > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From jmckenna at gatewaygeomatics.com Tue Jul 11 05:08:59 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 11 Jul 2017 09:08:59 -0300 Subject: [mapserver-users] mapserver, msProjectPoint() error In-Reply-To: References: Message-ID: Hi Johnson, Welcome to the MapServer community. Regarding those errors, here are some rules that I always follow, that may help your case: - when serving through WMS/WFS etc, always make sure to remove all errors from a GetCapabilities response first (in your case, there might be warnings of missing metadata such as "wfs_srs"). - try not to use a non-standard projection (EPSG:900913 was officially replaced by EPSG:3857 https://epsg.io/3857), you're just asking for possible trouble down the road if you do... - just to see if these errors are related to a projection, possibly setup a test case where your source data is in 4326, you serve the data through WFS in 4326, and your client-side application requests the data in 4326 (and see if those errors still exist) - possibly set the EXTENT values for the map object to the whole world: -180 -90 180 90 - test your mapfile locally with the shp2img commandline utility (http://mapserver.org/utilities/shp2img.html) Other notes: I have seen odd projection errors like yours before, somehow being caused in a client-side javascript application requesting WMS/WFS layers. In my case I believe the maps were generated fine, so I might have 'lived' with those errors, not sure. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-07-10 8:31 PM, Vu, Johnson (EC) wrote: > Hi, > > I?m a student working on a webapp that uses mapserv 6.4.1. I?ve been > getting this error in my ms_error.txt and I?m having trouble finding the > cause. At first I thought it was a problem with my extents, so I > verified all of them with my .shp files and everything was OK. I am > using epsg:4326 as my projection. I?ve bolded the two errors I?ve been > seeing the most. They fill the error log when I click on a region on the > map. > > Does anyone know possible causes for the error I?ve posted below? I?m > very new to mapserv and would appreciate any help. > > wxo_mapserv/tmp_output/ms_error.txt: > > [Mon Jul 10 23:06:29 2017].538763 msProjectPoint(): Projection library > error. proj says: latitude or longitude exceeded limits > > [Mon Jul 10 23:06:29 2017].538797 msProjectPoint(): Projection library > error. proj says: latitude or longitude exceeded limits > > [Mon Jul 10 23:06:29 2017].538813 msProjectRect(): some points failed to > reproject, doing internal sampling. > > [Mon Jul 10 23:06:29 2017].539124 mapserv request processing time > (msLoadMap not incl.): 0.352s > > [Mon Jul 10 23:06:29 2017].539162 msFreeMap(): freeing map at 0x2188de0. > > [Mon Jul 10 23:06:35 2017].301195 CGI Request 1 on process 31628 > > [Mon Jul 10 23:06:35 2017].302266 msWFSParseRequest(): WFS post request: > > version="1.1.0" > srsName="EPSG:900913" xmlns:topp="http://www.openplan > > s.org/topp" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net > > /ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http > > ://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > typeName="clc_he_site_e" > srsName="EPSG:900913"> > > opertyName>the_geom srsName="EPSG:900913"> > > -11383613.748454727,6924094.039571445 > > > > > > [Mon Jul 10 23:06:35 2017].303829 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303882 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303909 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > [Mon Jul 10 23:06:35 2017].303954 msProjectPoint(): Projection library > error. proj says: tolerance condition error > > *?msProjectPoint(): Projection library error. proj says: tolerance > condition error? <- repeats several hundred > lines* > > *?msProjectPoint(): Projection library error. proj says: latitude or > longitude exceeded limits? <- repeats several hundred lines* > > Post Request param: > > || > > || > > |||| > > |||| > > |||| > > |||the_geom||| > > |||| > > |||-11452101.325798245,7031717.375396973||| > > |||| > > |||| > > |||| > > |||| > > > > Thanks, > > Johnson > > From jmckenna at gatewaygeomatics.com Tue Jul 11 05:24:39 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 11 Jul 2017 09:24:39 -0300 Subject: [mapserver-users] mapserver, msProjectPoint() error In-Reply-To: References: Message-ID: <0d944492-f16f-e75e-da62-bb39f4db5494@gatewaygeomatics.com> Oh another tip is to set the EXTENT parameter at the LAYER level as well (this is sometimes the magical solution for PostGIS/Oracle/database layers served through WMS/WFS..). Hope one of these tips helps you, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2017-07-11 9:08 AM, Jeff McKenna wrote: > Hi Johnson, > > Welcome to the MapServer community. > > Regarding those errors, here are some rules that I always follow, that > may help your case: > > - when serving through WMS/WFS etc, always make sure to remove all > errors from a GetCapabilities response first (in your case, there might > be warnings of missing metadata such as "wfs_srs"). > > - try not to use a non-standard projection (EPSG:900913 was officially > replaced by EPSG:3857 https://epsg.io/3857), you're just asking for > possible trouble down the road if you do... > > - just to see if these errors are related to a projection, possibly > setup a test case where your source data is in 4326, you serve the data > through WFS in 4326, and your client-side application requests the data > in 4326 (and see if those errors still exist) > > - possibly set the EXTENT values for the map object to the whole world: > -180 -90 180 90 > > - test your mapfile locally with the shp2img commandline utility > (http://mapserver.org/utilities/shp2img.html) > > Other notes: > > I have seen odd projection errors like yours before, somehow being > caused in a client-side javascript application requesting WMS/WFS > layers. In my case I believe the maps were generated fine, so I might > have 'lived' with those errors, not sure. > > -jeff > > > From bob.basques at ci.stpaul.mn.us Tue Jul 11 07:39:09 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 11 Jul 2017 14:39:09 +0000 Subject: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. Message-ID: <06AE5CF2-0355-42C6-AC49-EDE15332E9C6@ci.stpaul.mn.us> All, It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. bobb From woodbri at swoodbridge.com Tue Jul 11 08:38:55 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Jul 2017 11:38:55 -0400 Subject: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <06AE5CF2-0355-42C6-AC49-EDE15332E9C6@ci.stpaul.mn.us> References: <06AE5CF2-0355-42C6-AC49-EDE15332E9C6@ci.stpaul.mn.us> Message-ID: <00046b85-2da1-5b65-dce8-47a2175732b5@swoodbridge.com> On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: > All, > > It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . > > I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. > > can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. Bobb, What are you trying to zoom? the image or the client? If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately. For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bob.basques at ci.stpaul.mn.us Tue Jul 11 09:22:00 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 11 Jul 2017 16:22:00 +0000 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> Message-ID: <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> Hi Steve, I want to send a CGI request like : ServerName?pin=202923230045 And zoom to the pin (parcel polygon) in the returned image and also add a buffer percentage. This is for a reporting application. I can do it with an intermediate service, but it?s been awhile since I did this, and was wondering if anything new in MapServer might help with this for a single pass approach. The zoom parameters would be hardcoded into the MapFILE in an ideal world, I can build an SQL for this for example, but I recall I couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory is cloudy on that capability from MapServer though, hence the question. Now that you have me talking it through though, I think the last time I asked about this it was to inquire about possibly chaining more than one MapServer call together to get the result. I think there were fears at the time about possible runaway processes being created . . . . bobb On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge > wrote: On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: All, It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. Bobb, What are you trying to zoom? the image or the client? If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately. For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "If you're going through hell, keep going. ? - Winston Churchill "Be nice to people on your way up because you meet them on your way down." - Jimmy Durante -------------- next part -------------- An HTML attachment was scrubbed... URL: From theduckylittle at gmail.com Tue Jul 11 09:23:51 2017 From: theduckylittle at gmail.com (Dan Little) Date: Tue, 11 Jul 2017 11:23:51 -0500 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> Message-ID: You're likely better off with a simple script that computes the bounding box and then uses mapserver to render the map. E.G.: /cgi-bin/parcel-view.py?PIN=[xyz] def getParcelBBOX(conn, pin): On Tue, Jul 11, 2017 at 11:22 AM, Basques, Bob (CI-StPaul) < bob.basques at ci.stpaul.mn.us> wrote: > > > Hi Steve, > > I want to send a CGI request like : ServerName?pin=202923230045 > > And zoom to the pin (parcel polygon) in the returned image and also add a > buffer percentage. This is for a reporting application. I can do it with > an intermediate service, but it?s been awhile since I did this, and was > wondering if anything new in MapServer might help with this for a single > pass approach. > > The zoom parameters would be hardcoded into the MapFILE in an ideal world, > I can build an SQL for this for example, but I recall I couldn?t use the > BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory > is cloudy on that capability from MapServer though, hence the question. > Now that you have me talking it through though, I think the last time I > asked about this it was to inquire about possibly chaining more than one > MapServer call together to get the result. I think there were fears at the > time about possible runaway processes being created . . . . > > bobb > > > On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge > wrote: > > On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: > > All, > It?s probably because it?s Tues. but I think I?ve asked this before in the > past . . . > I have a DB with PIN numbers for PARCELS and I want to be able to > auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. > can the BBOX be pulled from the DB based on the geom in one shot? I?ve > done this in the past with a Webservice that went and grabbed the BBOX > separately, then assembled the url for getting the graphic back from > Mapserver. > > > Bobb, > > What are you trying to zoom? the image or the client? > > If it is the client then how is mapserver on the server supposed to tell > the client it needs to zoom? You have to query the server to get the bbox > then make the client zoom appropriately. > > For the image, assuming you want a static image showing the parcel, then I > would write a php/python/perl script the you pass the PIN to and it does > the work to figure out the extents and return the image. > > -Steve W > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > "If you're going through hell, keep going. ? > - Winston Churchill > > > > > > "Be nice to people on your way up because you meet them on your way down." > - Jimmy Durante > > > > > _______________________________________________ > 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 woodbri at swoodbridge.com Tue Jul 11 11:06:32 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Jul 2017 14:06:32 -0400 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> Message-ID: <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> Bobb, If you using sql you can do this in one pass, just write a trivial php script that returns an image. 1. connect to db 2. sql to query expanded bbox of parcel select st_astext(st_extent(st_expand(geom, delta))) from parcels where pin=? 3. create url to mapserver based on bbox and image size 5. header('Content-type: image/png'); 4. passthru(url); Don't make it more complicated than it needs to be. You can do the same using perl, python, script language of your choice. -Steve On 7/11/2017 12:22 PM, Basques, Bob (CI-StPaul) wrote: > >> >> Hi Steve, >> >> I want to send a CGI request like : ServerName?pin=202923230045 >> >> And zoom to the pin (parcel polygon) in the returned image and also >> add a buffer percentage. This is for a reporting application. I can >> do it with an intermediate service, but it?s been awhile since I did >> this, and was wondering if anything new in MapServer might help with >> this for a single pass approach. >> >> The zoom parameters would be hardcoded into the MapFILE in an ideal >> world, I can build an SQL for this for example, but I recall I >> couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver >> parent call, my memory is cloudy on that capability from MapServer >> though, hence the question. Now that you have me talking it through >> though, I think the last time I asked about this it was to inquire >> about possibly chaining more than one MapServer call together to get >> the result. I think there were fears at the time about possible >> runaway processes being created . . . . >> >> bobb >> >> >>> On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge >>> > wrote: >>> >>> On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: >>>> All, >>>> It?s probably because it?s Tues. but I think I?ve asked this before >>>> in the past . . . >>>> I have a DB with PIN numbers for PARCELS and I want to be able to >>>> auto-zoom(with buffer) to a PARCEL by just sending in a PIN number >>>> via CGI. >>>> can the BBOX be pulled from the DB based on the geom in one shot? >>>> I?ve done this in the past with a Webservice that went and grabbed >>>> the BBOX separately, then assembled the url for getting the graphic >>>> back from Mapserver. >>> >>> Bobb, >>> >>> What are you trying to zoom? the image or the client? >>> >>> If it is the client then how is mapserver on the server supposed to >>> tell the client it needs to zoom? You have to query the server to get >>> the bbox then make the client zoom appropriately. >>> >>> For the image, assuming you want a static image showing the parcel, >>> then I would write a php/python/perl script the you pass the PIN to >>> and it does the work to figure out the extents and return the image. >>> >>> -Steve W >>> >>> --- >>> This email has been checked for viruses by Avast antivirus software. >>> https://www.avast.com/antivirus >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> "If you're going through hell, keep going. ? >> - Winston Churchill >> >> > > > > "Be nice to people on your way up because you meet them on your way down." > - Jimmy Durante > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From bob.basques at ci.stpaul.mn.us Tue Jul 11 11:43:28 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Tue, 11 Jul 2017 18:43:28 +0000 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> Message-ID: <41968F82-DE49-487C-A207-820F5B6AD89C@ci.stpaul.mn.us> Steve, Yeah, my poison is Perl. Was just trying to make it simpler is all. I have a few services already in place like this. A separate service it is then . . . bobb On Jul 11, 2017, at 1:06 PM, Stephen Woodbridge > wrote: Bobb, If you using sql you can do this in one pass, just write a trivial php script that returns an image. 1. connect to db 2. sql to query expanded bbox of parcel select st_astext(st_extent(st_expand(geom, delta))) from parcels where pin=? 3. create url to mapserver based on bbox and image size 5. header('Content-type: image/png'); 4. passthru(url); Don't make it more complicated than it needs to be. You can do the same using perl, python, script language of your choice. -Steve On 7/11/2017 12:22 PM, Basques, Bob (CI-StPaul) wrote: Hi Steve, I want to send a CGI request like : ServerName?pin=202923230045 And zoom to the pin (parcel polygon) in the returned image and also add a buffer percentage. This is for a reporting application. I can do it with an intermediate service, but it?s been awhile since I did this, and was wondering if anything new in MapServer might help with this for a single pass approach. The zoom parameters would be hardcoded into the MapFILE in an ideal world, I can build an SQL for this for example, but I recall I couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory is cloudy on that capability from MapServer though, hence the question. Now that you have me talking it through though, I think the last time I asked about this it was to inquire about possibly chaining more than one MapServer call together to get the result. I think there were fears at the time about possible runaway processes being created . . . . bobb On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge > wrote: On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: All, It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. Bobb, What are you trying to zoom? the image or the client? If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately. For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "If you're going through hell, keep going. ? - Winston Churchill "Be nice to people on your way up because you meet them on your way down." - Jimmy Durante _______________________________________________ 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 ?There is nothing quite so useless as doing with great efficiency something that should not be done at all.? - Peter Drucker -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Tue Jul 11 14:30:27 2017 From: andy at squeakycode.net (Andy Colson) Date: Tue, 11 Jul 2017 16:30:27 -0500 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <41968F82-DE49-487C-A207-820F5B6AD89C@ci.stpaul.mn.us> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> <41968F82-DE49-487C-A207-820F5B6AD89C@ci.stpaul.mn.us> Message-ID: <8e049c98-404b-2aca-f4ad-5810d7ea296c@squeakycode.net> On 7/11/2017 1:43 PM, Basques, Bob (CI-StPaul) wrote: > Steve, > > Yeah, my poison is Perl. Was just trying to make it simpler is all. > > I have a few services already in place like this. > > A separate service it is then . . . > > bobb You want something like this: http://maps.camavision.com/map/jasperia?pin=08.34.204.012 I use perl with mapscript, the request looks like: my $xpin = $req->param('pin'); # pin can only contain letters and numbers ($xpin) = $xpin =~ /(\w+)/; my $map = new mapscript::mapObj($filename); $q = $db->prepare( "select * from $schema.getpoint where pin = \$1", {pg_server_prepare => 0} ); getPoint returns box2d(st_expand(the_geom, 100)) for a single pin. Then we generate some javascript: if ($zoom =~ /BOX\(([-0-9\.]+)\s+([-0-9\.]+),([-0-9\.]+)\s+([-0-9\.]+)\)/) { $zoom = "zoomToBound($1, $2, $3, $4);\n"; } That variable is included in the html, and I have a javascript library function: function zoomToBound(x1, y1, x2, y2) { var bb = new OpenLayers.Bounds.fromArray([x1, y1, x2, y2]); map.zoomToExtent(bb, true); } -Andy From steve.lime at state.mn.us Tue Jul 11 14:55:52 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 11 Jul 2017 21:55:52 +0000 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> Message-ID: You can also do pure mapserver with a query layer and a URL template. It's doing a dynamic redirect but it's a single call from your perspective. You'd have a layer like so: LAYER NAME 'parcel_query' TYPE QUERY DATA 'parcels' VALIDATION qstring '^[0-9]{16}$' # 16-digit pin number END TEMPLATE 'http://{url to display service}&mapext=[shpext]' END and then a query URL like so: http://.../cgi-bin/mapserv?map=mymap.map?mode=itemquery&qlayer=parcels&qitem=pin&qstring=202923230045 Assumes one feature per pin... It's not a pretty URL, if that's needed use a script as Steve suggests or something like mod_rewrite in front. Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, July 11, 2017 1:07 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Bobb, If you using sql you can do this in one pass, just write a trivial php script that returns an image. 1. connect to db 2. sql to query expanded bbox of parcel select st_astext(st_extent(st_expand(geom, delta))) from parcels where pin=? 3. create url to mapserver based on bbox and image size 5. header('Content-type: image/png'); 4. passthru(url); Don't make it more complicated than it needs to be. You can do the same using perl, python, script language of your choice. -Steve On 7/11/2017 12:22 PM, Basques, Bob (CI-StPaul) wrote: > >> >> Hi Steve, >> >> I want to send a CGI request like : ServerName?pin=202923230045 >> >> And zoom to the pin (parcel polygon) in the returned image and also >> add a buffer percentage. This is for a reporting application. I can >> do it with an intermediate service, but it?s been awhile since I did >> this, and was wondering if anything new in MapServer might help with >> this for a single pass approach. >> >> The zoom parameters would be hardcoded into the MapFILE in an ideal >> world, I can build an SQL for this for example, but I recall I >> couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver >> parent call, my memory is cloudy on that capability from MapServer >> though, hence the question. Now that you have me talking it through >> though, I think the last time I asked about this it was to inquire >> about possibly chaining more than one MapServer call together to get >> the result. I think there were fears at the time about possible >> runaway processes being created . . . . >> >> bobb >> >> >>> On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge >>> > wrote: >>> >>> On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: >>>> All, >>>> It?s probably because it?s Tues. but I think I?ve asked this before >>>> in the past . . . >>>> I have a DB with PIN numbers for PARCELS and I want to be able to >>>> auto-zoom(with buffer) to a PARCEL by just sending in a PIN number >>>> via CGI. >>>> can the BBOX be pulled from the DB based on the geom in one shot? >>>> I?ve done this in the past with a Webservice that went and grabbed >>>> the BBOX separately, then assembled the url for getting the graphic >>>> back from Mapserver. >>> >>> Bobb, >>> >>> What are you trying to zoom? the image or the client? >>> >>> If it is the client then how is mapserver on the server supposed to >>> tell the client it needs to zoom? You have to query the server to get >>> the bbox then make the client zoom appropriately. >>> >>> For the image, assuming you want a static image showing the parcel, >>> then I would write a php/python/perl script the you pass the PIN to >>> and it does the work to figure out the extents and return the image. >>> >>> -Steve W >>> >>> --- >>> This email has been checked for viruses by Avast antivirus software. >>> https://www.avast.com/antivirus >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> "If you're going through hell, keep going. ? >> - Winston Churchill >> >> > > > > "Be nice to people on your way up because you meet them on your way down." > - Jimmy Durante > > > > > > _______________________________________________ > 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 bob.basques at ci.stpaul.mn.us Wed Jul 12 06:36:39 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 12 Jul 2017 13:36:39 +0000 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> Message-ID: <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> Steve (L), That?s really close to what I was looking for. I vaguely remembered something going on enhancement wise, related to URL requests inside of a MapServer request. I?ll try this out and get back here with the results. bobb On Jul 11, 2017, at 4:55 PM, Lime, Steve D (MNIT) > wrote: You can also do pure mapserver with a query layer and a URL template. It's doing a dynamic redirect but it's a single call from your perspective. You'd have a layer like so: LAYER NAME 'parcel_query' TYPE QUERY DATA 'parcels' VALIDATION qstring '^[0-9]{16}$' # 16-digit pin number END TEMPLATE 'http://{url to display service}&mapext=[shpext]' END and then a query URL like so: http://.../cgi-bin/mapserv?map=mymap.map?mode=itemquery&qlayer=parcels&qitem=pin&qstring=202923230045 Assumes one feature per pin... It's not a pretty URL, if that's needed use a script as Steve suggests or something like mod_rewrite in front. Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, July 11, 2017 1:07 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Bobb, If you using sql you can do this in one pass, just write a trivial php script that returns an image. 1. connect to db 2. sql to query expanded bbox of parcel select st_astext(st_extent(st_expand(geom, delta))) from parcels where pin=? 3. create url to mapserver based on bbox and image size 5. header('Content-type: image/png'); 4. passthru(url); Don't make it more complicated than it needs to be. You can do the same using perl, python, script language of your choice. -Steve On 7/11/2017 12:22 PM, Basques, Bob (CI-StPaul) wrote: Hi Steve, I want to send a CGI request like : ServerName?pin=202923230045 And zoom to the pin (parcel polygon) in the returned image and also add a buffer percentage. This is for a reporting application. I can do it with an intermediate service, but it?s been awhile since I did this, and was wondering if anything new in MapServer might help with this for a single pass approach. The zoom parameters would be hardcoded into the MapFILE in an ideal world, I can build an SQL for this for example, but I recall I couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory is cloudy on that capability from MapServer though, hence the question. Now that you have me talking it through though, I think the last time I asked about this it was to inquire about possibly chaining more than one MapServer call together to get the result. I think there were fears at the time about possible runaway processes being created . . . . bobb On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge > wrote: On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: All, It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. Bobb, What are you trying to zoom? the image or the client? If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately. For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "If you're going through hell, keep going. ? - Winston Churchill "Be nice to people on your way up because you meet them on your way down." - Jimmy Durante _______________________________________________ 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 "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." - Edsgar Dijkstra -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Wed Jul 12 08:41:42 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 12 Jul 2017 15:41:42 +0000 Subject: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. In-Reply-To: <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> Message-ID: The shpext tag can re-project, format and buffer a shapes extent if that helps. From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Wednesday, July 12, 2017 8:37 AM To: Lime, Steve D (MNIT) Cc: Stephen Woodbridge ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Steve (L), That?s really close to what I was looking for. I vaguely remembered something going on enhancement wise, related to URL requests inside of a MapServer request. I?ll try this out and get back here with the results. bobb On Jul 11, 2017, at 4:55 PM, Lime, Steve D (MNIT) > wrote: You can also do pure mapserver with a query layer and a URL template. It's doing a dynamic redirect but it's a single call from your perspective. You'd have a layer like so: LAYER NAME 'parcel_query' TYPE QUERY DATA 'parcels' VALIDATION qstring '^[0-9]{16}$' # 16-digit pin number END TEMPLATE 'http://{url to display service}&mapext=[shpext]' END and then a query URL like so: http://.../cgi-bin/mapserv?map=mymap.map?mode=itemquery&qlayer=parcels&qitem=pin&qstring=202923230045 Assumes one feature per pin... It's not a pretty URL, if that's needed use a script as Steve suggests or something like mod_rewrite in front. Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, July 11, 2017 1:07 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Bobb, If you using sql you can do this in one pass, just write a trivial php script that returns an image. 1. connect to db 2. sql to query expanded bbox of parcel select st_astext(st_extent(st_expand(geom, delta))) from parcels where pin=? 3. create url to mapserver based on bbox and image size 5. header('Content-type: image/png'); 4. passthru(url); Don't make it more complicated than it needs to be. You can do the same using perl, python, script language of your choice. -Steve On 7/11/2017 12:22 PM, Basques, Bob (CI-StPaul) wrote: Hi Steve, I want to send a CGI request like : ServerName?pin=202923230045 And zoom to the pin (parcel polygon) in the returned image and also add a buffer percentage. This is for a reporting application. I can do it with an intermediate service, but it?s been awhile since I did this, and was wondering if anything new in MapServer might help with this for a single pass approach. The zoom parameters would be hardcoded into the MapFILE in an ideal world, I can build an SQL for this for example, but I recall I couldn?t use the BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory is cloudy on that capability from MapServer though, hence the question. Now that you have me talking it through though, I think the last time I asked about this it was to inquire about possibly chaining more than one MapServer call together to get the result. I think there were fears at the time about possible runaway processes being created . . . . bobb On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge > wrote: On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote: All, It?s probably because it?s Tues. but I think I?ve asked this before in the past . . . I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI. can the BBOX be pulled from the DB based on the geom in one shot? I?ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver. Bobb, What are you trying to zoom? the image or the client? If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately. For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users "If you're going through hell, keep going. ? - Winston Churchill "Be nice to people on your way up because you meet them on your way down." - Jimmy Durante _______________________________________________ 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 "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." - Edsgar Dijkstra -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Jul 13 06:54:02 2017 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Jul 2017 09:54:02 -0400 Subject: [mapserver-users] Mapcache - How to assemble multiple layser into single image? Message-ID: <0ca9423f-abb9-77b7-ac6d-2e1f125facd1@swoodbridge.com> Hi all, I seem to remember that it is possible to assemble multiple existing mapcache layers into a single image request, but my google-foo is failing me this morning. I need to assemble this on the server not the client. Any pointers or examples would be appreciated. -Steve W --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From bob.basques at ci.stpaul.mn.us Thu Jul 13 08:24:04 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Thu, 13 Jul 2017 15:24:04 +0000 Subject: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. In-Reply-To: References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> Message-ID: Working on this, but not quite there yet . . . My initial request looks like: http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map? mode=itemquery& qlayer=Parcels-Map-Query& qitem=parcelid&qstring=162823340026& WIDTH=1069&HEIGHT=917 I get a ?no matching records? found . . . and with DEBUG 5 on the query layer . . . CONNECTIONTYPE PostGIS CONNECTION ?host=localhost dbname=postgres user=mapserv password=****? DATA "wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '%qstring%') as subquery using unique objectid srid=200068" VALIDATION 'pin' '^[0-9]{12}$' 'qstring' '^[0-9]{12}$' END [Thu Jul 13 09:30:00 2017].645602 msPostGISGetPaging called. [Thu Jul 13 09:30:00 2017].645665 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].645672 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].645675 msPostGISLayerClose called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:00 2017].645680 msPostGISLayerOpen called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:00 2017].645686 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Thu Jul 13 09:30:00 2017].654626 msConnPoolRegister(Parcels-Map-Query,host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:00 2017].659333 msPostGISLayerOpen: Got PostGIS version 20200. [Thu Jul 13 09:30:00 2017].659343 msPostGISLayerOpen: Forcing 2D geometries: yes. [Thu Jul 13 09:30:00 2017].659347 msPostGISEnablePaging called. [Thu Jul 13 09:30:00 2017].659349 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].659354 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].659359 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].659364 msPostGISLayerGetItems called. [Thu Jul 13 09:30:00 2017].659368 msPostGISParseData called. [Thu Jul 13 09:30:00 2017].659378 msPostGISParseData: unique_column=objectid, srid=, geom_column_name=wkb_geometry, table_name=( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery [Thu Jul 13 09:30:00 2017].659384 msPostGISLayerGetItems executing SQL: select * from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery where false limit 0 [Thu Jul 13 09:30:00 2017].666373 msPostGISLayerInitItemInfo called. [Thu Jul 13 09:30:00 2017].666385 msPostGISLayerInitItemInfo called. [Thu Jul 13 09:30:00 2017].666397 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].666403 msPostGISLayerWhichShapes called. [Thu Jul 13 09:30:00 2017].666406 msPostGISParseData called. [Thu Jul 13 09:30:00 2017].666413 msPostGISParseData: unique_column=objectid, srid=, geom_column_name=wkb_geometry, table_name=( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery [Thu Jul 13 09:30:00 2017].666417 msPostGISBuildSQL called. [Thu Jul 13 09:30:00 2017].666419 msPostGISBuildSQLItems called. [Thu Jul 13 09:30:00 2017].666422 msPostGISBuildSQLItems: 2 items requested. [Thu Jul 13 09:30:00 2017].666426 msPostGISBuildSQLFrom called. [Thu Jul 13 09:30:00 2017].666429 msPostGISBuildSQLWhere called. [Thu Jul 13 09:30:00 2017].666432 msPostGISBuildSQLSRID called. [Thu Jul 13 09:30:00 2017].666435 msPostGISBuildSQLSRID: Building find_srid line. [Thu Jul 13 09:30:00 2017].666438 msPostGISBuildSQLBox called. [Thu Jul 13 09:30:00 2017].666459 msPostGISLayerWhichShapes query: select "objectid","parcelid",encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') as geom,"objectid" from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery where wkb_geometry && ST_GeomFromText('POLYGON((573387 162092,573387 162555,574211 162555,574211 162092,573387 162092))',find_srid('','cache.rc_parcel_poly','wkb_geometry')) and ("parcelid"::text = '162823340026') [Thu Jul 13 09:30:01 2017].114391 msPostGISLayerWhichShapes query status: PGRES_TUPLES_OK (2) [Thu Jul 13 09:30:01 2017].114407 msPostGISLayerWhichShapes got 0 records in result. [Thu Jul 13 09:30:01 2017].114412 msPostGISLayerNextShape called. [Thu Jul 13 09:30:01 2017].114416 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:01 2017].114419 msPostGISLayerClose called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:01 2017].114443 msConnPoolRelease(Parcels-Map-Query,host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:01 2017].114447 msConnPoolClose(host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:01 2017].114546 msQueryByFilter(): Search returned no results. No matching record(s) found. [Thu Jul 13 09:30:01 2017].114657 freeLayer(): freeing layer at 0x18e8a40. [Thu Jul 13 09:30:01 2017].114661 msPostGISLayerIsOpen called. The subquery works fine from sql and returns a single record. One thing I noticed, is that the POLYGON BBOX is way off to the west a few thousand feet. There is no default image size in the Mapfile either so I don?t know where that number is coming from other than shpext . . . are there other parameters that need to be added to the shpext call? the TEMPLATE link looks like: TEMPLATE 'http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map?pin=162823340026&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=all&_OLSALT=0.7873164216111053&SRS=EPSG%3A200068&BBOX=[shpext format="$minx,$miny,$maxx,$maxy"]&WIDTH=1069&HEIGHT=917' This will (should) return an image, should it be some sort of text return instead? I?m trying to keep it WMS too . . . is this still doable?? bobb On Jul 12, 2017, at 10:41 AM, Lime, Steve D (MNIT) > wrote: The shpext tag can re-project, format and buffer a shapes extent if that helps. From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Wednesday, July 12, 2017 8:37 AM To: Lime, Steve D (MNIT) > Cc: Stephen Woodbridge >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Steve (L), That?s really close to what I was looking for. I vaguely remembered something going on enhancement wise, related to URL requests inside of a MapServer request. I?ll try this out and get back here with the results. bobb "I like nonsense; it wakes up the brain cells." - Dr. Seuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jul 13 09:06:10 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 13 Jul 2017 13:06:10 -0300 Subject: [mapserver-users] MS4W version 3.2.2 available In-Reply-To: References: Message-ID: <742b461d-34d0-8eb1-7be9-e92bc2230196@gatewaygeomatics.com> Hello everyone, MS4W version 3.2.2 is now available at http://www.ms4w.com This contains security releases of Apache, PHP, and upgrades to the MapServer 7.0.6 & GDAL 2.2.1 releases. Several changes were also made to libraries for performance improvements (such as libjpeg-turbo and SQLite). Several packages were upgraded for the installer including GeoMOOSE 3.0.0-beta (new backend engine, give it a try!), Mapbender 3.0.6.1 (now super fast), OpenLayers 4.2.0 (when you goto the OpenLayers examples page and search for "mapserver" you can find a local MS4W example). This a substantial MS4W release. Here is the full list of changes: - upgraded MapServer and MapScript (CSharp, Java, Python, PHP) to 7.0.6 - upgraded GDAL to 2.2.1 (trac ticket 111) - upgraded PHP to 5.6.31 (trac ticket 122) - upgraded Apache to 2.4.27 (trac ticket 119) - enabled OPcache PHP extension for Mapbender performance (trac ticket 63) - built MapServer with support for Z geometry values (trac ticket 120) - updated cURL certificates bundle - rebuilt mod_fcgid - rebuilt Apache H264 Streaming Module - rebuilt MapCache - rebuilt TinyOWS - changed JPEG library to libjpeg-turbo (trac ticket 121) - upgraded libPNG support to 1.6.29 - upgraded libTIFF support to 4.0.8 (trac ticket 114) - upgraded GeoTIFF support to SVN-trunk-20170623 - rebuilt HDF4 support - upgraded HDF5 support to 1.10.1 - upgraded PostgreSQL support to 9.6.3 - upgraded MySQL support to 5.7.18 - upgraded SQLite support to 3.19.3 (trac ticket 107) - rebuilt SpatiaLite support - upgraded OpenSSL support to 1.0.2l (trac ticket 116) - upgraded cURL support to 7.54.1 - added curl.exe utility into /tools - rebuilt NetCDF support - upgraded Freetype support to 2.8 - upgraded Cairo support to 1.14.10 - rebuilt Poppler support - upgraded to Esri File Geodatabase 1.5 API support (trac ticket 109) - upgraded to Oracle SDK 12.2.0.1.0 - upgraded PCRE support to 8.40 - upgraded HarfBuzz support to 1.4.6 - rebuilt libSVG support - rebuilt libSVG-Cairo support - upgraded Shapelib support to 1.4.0 (trac ticket 72) - rebuilt shp2tile utility - renamed Apache access and error log files Please note that (if you are using the .zip) your server must have the C++ Redistributable installed on it beforehand: execute the local file /ms4w/tmp/vcredist_x86.exe Please don't be afraid to also provide feedback and requests through the MS4W tracker (so the comments and requests are not lost or forgotten): http://www.ms4w.com/trac/ Thank you all for sharing your spatial information with MS4W. And happy MapServing! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From steve.lime at state.mn.us Fri Jul 14 09:15:48 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 14 Jul 2017 16:15:48 +0000 Subject: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. In-Reply-To: References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> Message-ID: You don?t need to do runtime substitution with an itemquery, MapServer will extend the where clause automatically. You data statement just needs to look like: DATA "wkb_geometry from (select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly) as subquery using unique objectid srid=200068" Steve From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Thursday, July 13, 2017 10:24 AM To: Lime, Steve D (MNIT) Cc: Stephen Woodbridge ; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. Working on this, but not quite there yet . . . My initial request looks like: http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map? mode=itemquery& qlayer=Parcels-Map-Query& qitem=parcelid&qstring=162823340026& WIDTH=1069&HEIGHT=917 I get a ?no matching records? found . . . and with DEBUG 5 on the query layer . . . CONNECTIONTYPE PostGIS CONNECTION ?host=localhost dbname=postgres user=mapserv password=****? DATA "wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '%qstring%') as subquery using unique objectid srid=200068" VALIDATION 'pin' '^[0-9]{12}$' 'qstring' '^[0-9]{12}$' END [Thu Jul 13 09:30:00 2017].645602 msPostGISGetPaging called. [Thu Jul 13 09:30:00 2017].645665 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].645672 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].645675 msPostGISLayerClose called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:00 2017].645680 msPostGISLayerOpen called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:00 2017].645686 msPostGISLayerOpen: No connection in pool, creating a fresh one. [Thu Jul 13 09:30:00 2017].654626 msConnPoolRegister(Parcels-Map-Query,host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:00 2017].659333 msPostGISLayerOpen: Got PostGIS version 20200. [Thu Jul 13 09:30:00 2017].659343 msPostGISLayerOpen: Forcing 2D geometries: yes. [Thu Jul 13 09:30:00 2017].659347 msPostGISEnablePaging called. [Thu Jul 13 09:30:00 2017].659349 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].659354 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].659359 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:00 2017].659364 msPostGISLayerGetItems called. [Thu Jul 13 09:30:00 2017].659368 msPostGISParseData called. [Thu Jul 13 09:30:00 2017].659378 msPostGISParseData: unique_column=objectid, srid=, geom_column_name=wkb_geometry, table_name=( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery [Thu Jul 13 09:30:00 2017].659384 msPostGISLayerGetItems executing SQL: select * from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery where false limit 0 [Thu Jul 13 09:30:00 2017].666373 msPostGISLayerInitItemInfo called. [Thu Jul 13 09:30:00 2017].666385 msPostGISLayerInitItemInfo called. [Thu Jul 13 09:30:00 2017].666397 msPostGISLayerIsOpen called. [Thu Jul 13 09:30:00 2017].666403 msPostGISLayerWhichShapes called. [Thu Jul 13 09:30:00 2017].666406 msPostGISParseData called. [Thu Jul 13 09:30:00 2017].666413 msPostGISParseData: unique_column=objectid, srid=, geom_column_name=wkb_geometry, table_name=( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery [Thu Jul 13 09:30:00 2017].666417 msPostGISBuildSQL called. [Thu Jul 13 09:30:00 2017].666419 msPostGISBuildSQLItems called. [Thu Jul 13 09:30:00 2017].666422 msPostGISBuildSQLItems: 2 items requested. [Thu Jul 13 09:30:00 2017].666426 msPostGISBuildSQLFrom called. [Thu Jul 13 09:30:00 2017].666429 msPostGISBuildSQLWhere called. [Thu Jul 13 09:30:00 2017].666432 msPostGISBuildSQLSRID called. [Thu Jul 13 09:30:00 2017].666435 msPostGISBuildSQLSRID: Building find_srid line. [Thu Jul 13 09:30:00 2017].666438 msPostGISBuildSQLBox called. [Thu Jul 13 09:30:00 2017].666459 msPostGISLayerWhichShapes query: select "objectid","parcelid",encode(ST_AsBinary(ST_Force2D("wkb_geometry"),'NDR'),'hex') as geom,"objectid" from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery where wkb_geometry && ST_GeomFromText('POLYGON((573387 162092,573387 162555,574211 162555,574211 162092,573387 162092))',find_srid('','cache.rc_parcel_poly','wkb_geometry')) and ("parcelid"::text = '162823340026') [Thu Jul 13 09:30:01 2017].114391 msPostGISLayerWhichShapes query status: PGRES_TUPLES_OK (2) [Thu Jul 13 09:30:01 2017].114407 msPostGISLayerWhichShapes got 0 records in result. [Thu Jul 13 09:30:01 2017].114412 msPostGISLayerNextShape called. [Thu Jul 13 09:30:01 2017].114416 msPostGISLayerFreeItemInfo called. [Thu Jul 13 09:30:01 2017].114419 msPostGISLayerClose called: wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '162823340026') as subquery using unique objectid srid=200068 [Thu Jul 13 09:30:01 2017].114443 msConnPoolRelease(Parcels-Map-Query,host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:01 2017].114447 msConnPoolClose(host=localhost dbname=postgres user=mapserv password=****,0x191b510) [Thu Jul 13 09:30:01 2017].114546 msQueryByFilter(): Search returned no results. No matching record(s) found. [Thu Jul 13 09:30:01 2017].114657 freeLayer(): freeing layer at 0x18e8a40. [Thu Jul 13 09:30:01 2017].114661 msPostGISLayerIsOpen called. The subquery works fine from sql and returns a single record. One thing I noticed, is that the POLYGON BBOX is way off to the west a few thousand feet. There is no default image size in the Mapfile either so I don?t know where that number is coming from other than shpext . . . are there other parameters that need to be added to the shpext call? the TEMPLATE link looks like: TEMPLATE 'http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map?pin=162823340026&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=all&_OLSALT=0.7873164216111053&SRS=EPSG%3A200068&BBOX=[shpext format="$minx,$miny,$maxx,$maxy"]&WIDTH=1069&HEIGHT=917' This will (should) return an image, should it be some sort of text return instead? I?m trying to keep it WMS too . . . is this still doable?? bobb On Jul 12, 2017, at 10:41 AM, Lime, Steve D (MNIT) > wrote: The shpext tag can re-project, format and buffer a shapes extent if that helps. From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Wednesday, July 12, 2017 8:37 AM To: Lime, Steve D (MNIT) > Cc: Stephen Woodbridge >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Steve (L), That?s really close to what I was looking for. I vaguely remembered something going on enhancement wise, related to URL requests inside of a MapServer request. I?ll try this out and get back here with the results. bobb "I like nonsense; it wakes up the brain cells." - Dr. Seuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Jul 14 09:34:01 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 14 Jul 2017 16:34:01 +0000 Subject: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. References: <7A4CFC9E-6A7E-48D3-9BCC-0790C76529F2@ci.stpaul.mn.us> <9E154110-FF3A-45B6-8655-9282B55667BB@ci.stpaul.mn.us> <1fed5e59-c689-95a2-2947-2c106fc933e0@swoodbridge.com> <28EB105A-2097-4401-9445-870377788963@ci.stpaul.mn.us> Message-ID: I should say that I?m assuming you?re using version 7.0, that?s where the filter normalization work was done so that you could execute the same filter (item queries are just dynamic filters) against any data source. Oh, and your last question, your URL template can use whatever protocol you want. All you?re doing is seeding it with feature properties ? an extent, centroid and/or attributes? Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT) Sent: Friday, July 14, 2017 11:16 AM To: Basques, Bob (CI-StPaul) > Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. You don?t need to do runtime substitution with an itemquery, MapServer will extend the where clause automatically. You data statement just needs to look like: DATA "wkb_geometry from (select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly) as subquery using unique objectid srid=200068" Steve From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Thursday, July 13, 2017 10:24 AM To: Lime, Steve D (MNIT) > Cc: Stephen Woodbridge >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Zoom to something and display in one shot from MapServer CGI. Working on this, but not quite there yet . . . My initial request looks like: http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map? mode=itemquery& qlayer=Parcels-Map-Query& qitem=parcelid&qstring=162823340026& WIDTH=1069&HEIGHT=917 I get a ?no matching records? found . . . and with DEBUG 5 on the query layer . . . CONNECTIONTYPE PostGIS CONNECTION ?host=localhost dbname=postgres user=mapserv password=****? DATA "wkb_geometry from ( select objectid, parcelid, wkb_geometry from cache.rc_parcel_poly where parcelid = '%pin%' or parcelid = '%qstring%') as subquery using unique objectid srid=200068" VALIDATION 'pin' '^[0-9]{12}$' 'qstring' '^[0-9]{12}$' END ? log entries removed for brevity? The subquery works fine from sql and returns a single record. One thing I noticed, is that the POLYGON BBOX is way off to the west a few thousand feet. There is no default image size in the Mapfile either so I don?t know where that number is coming from other than shpext . . . are there other parameters that need to be added to the shpext call? the TEMPLATE link looks like: TEMPLATE 'http://gis.ci.stpaul.mn.us/datasets/PUBLIC/LAND_OWNERSHIP/PARCELS/rc_parcels_assessment.map?pin=162823340026&FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=all&_OLSALT=0.7873164216111053&SRS=EPSG%3A200068&BBOX=[shpext format="$minx,$miny,$maxx,$maxy"]&WIDTH=1069&HEIGHT=917' This will (should) return an image, should it be some sort of text return instead? I?m trying to keep it WMS too . . . is this still doable?? bobb On Jul 12, 2017, at 10:41 AM, Lime, Steve D (MNIT) > wrote: The shpext tag can re-project, format and buffer a shapes extent if that helps. From: Basques, Bob (CI-StPaul) [mailto:bob.basques at ci.stpaul.mn.us] Sent: Wednesday, July 12, 2017 8:37 AM To: Lime, Steve D (MNIT) > Cc: Stephen Woodbridge >; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI. Steve (L), That?s really close to what I was looking for. I vaguely remembered something going on enhancement wise, related to URL requests inside of a MapServer request. I?ll try this out and get back here with the results. bobb "I like nonsense; it wakes up the brain cells." - Dr. Seuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jul 22 01:49:12 2017 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 22 Jul 2017 10:49:12 +0200 Subject: [mapserver-users] new official twitter account Message-ID: Hello from the OSGeo code sprint at FOSS4G paris! The MapServer team here has created a new twitter account for updates from the MapServer project: please share! https://twitter.com/mapserver_osgeo (this is from overwhelming feedback at FOSS4G this week from the community, for more public updates from the project) Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ram.chandra at vizexperts.com Tue Jul 25 04:14:18 2017 From: ram.chandra at vizexperts.com (ramchandra) Date: Tue, 25 Jul 2017 04:14:18 -0700 (MST) Subject: [mapserver-users] Using OGL rendering instead of AGG Message-ID: <1500981258419-5329120.post@n6.nabble.com> Hi All, I am trying to color classify a DEM by adding multiple styles to the layer entry in the map file using the PIXEL value as the EXPRESSION. I am trying to speedup the rendering of the styled layer. I tried using the Hardware accelerated rendering through OpenGL. I have added the cmake flags so that OpenGL binaries are loaded when building Mapserver. I also made changes in the source code to enable the OGL Rendering by setting the MACRO #USE_OGL to 1. I have also changed my OUTPUTFORMAT as follows to trigger opengl rendering. OUTPUTFORMAT NAME "OGL_PNG24" DRIVER "OGL/PNG" IMAGEMODE RGB END # OUTPUTFORMAT In-spite of doing all these when i am sending the request it appends a new OUTPUTFORMAT object with AGG Driver as follows. OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT It also changes my OGL OUTPUTFORMAT by adding the additional fields MIMETYPE and EXTENSION. OUTPUTFORMAT NAME "OGL_PNG24" MIMETYPE "image/png; mode=24bit" DRIVER "OGL/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT When I debug the code I see an error when the OGL output format block is parsed. The error says "OGL_PNG24 driver is not configured". Can anyone point out what might me causing this error or how to enable OpenGL based rendering. Regards, Ram -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-OGL-rendering-instead-of-AGG-tp5329120.html Sent from the Mapserver - User mailing list archive at Nabble.com. From martin.icking at bentley.com Thu Jul 27 07:28:20 2017 From: martin.icking at bentley.com (Martin Icking) Date: Thu, 27 Jul 2017 07:28:20 -0700 (MST) Subject: [mapserver-users] Oracle Layer: how to set context prior to fetching the data In-Reply-To: References: <1458813542659-5258155.post@n6.nabble.com> Message-ID: <1501165700522-5329515.post@n6.nabble.com> Hi Mike, I've tried this and in principle this works but sometimes it seems to me that the context setting in the function happens AFTER the query has been executed so that only a second call to the query gives the correnct number of rows. Any idea on how to enforce that the context setting will be the first step in the query execution? Tx Martin -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Oracle-Layer-how-to-set-context-prior-to-fetching-the-data-tp5258155p5329515.html Sent from the Mapserver - User mailing list archive at Nabble.com. From steve.lime at state.mn.us Fri Jul 28 12:54:04 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 28 Jul 2017 19:54:04 +0000 Subject: [mapserver-users] Using OGL rendering instead of AGG In-Reply-To: <1500981258419-5329120.post@n6.nabble.com> References: <1500981258419-5329120.post@n6.nabble.com> Message-ID: The OpenGL render is quite old and hasn't been maintained properly - especially in light of the major graphics refactoring done with 6.x. We should probably deprecate it at this point. Anyway, I don't think you'll have much luck with OpenGL without a good bit of work. I'm not sure that would speed thing up in your case. The pixel-by-pixel expression processing is probably what's killing you. It would make more sense to work on other types of optimizations. Perhaps pre-processing or re-organizing the DEM data or using lookup tables instead of expressions. Lots of good information here: http://mapserver.org/input/raster.html. Steve -----Original Message----- From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ramchandra Sent: Tuesday, July 25, 2017 6:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Using OGL rendering instead of AGG Hi All, I am trying to color classify a DEM by adding multiple styles to the layer entry in the map file using the PIXEL value as the EXPRESSION. I am trying to speedup the rendering of the styled layer. I tried using the Hardware accelerated rendering through OpenGL. I have added the cmake flags so that OpenGL binaries are loaded when building Mapserver. I also made changes in the source code to enable the OGL Rendering by setting the MACRO #USE_OGL to 1. I have also changed my OUTPUTFORMAT as follows to trigger opengl rendering. OUTPUTFORMAT NAME "OGL_PNG24" DRIVER "OGL/PNG" IMAGEMODE RGB END # OUTPUTFORMAT In-spite of doing all these when i am sending the request it appends a new OUTPUTFORMAT object with AGG Driver as follows. OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT It also changes my OGL OUTPUTFORMAT by adding the additional fields MIMETYPE and EXTENSION. OUTPUTFORMAT NAME "OGL_PNG24" MIMETYPE "image/png; mode=24bit" DRIVER "OGL/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT When I debug the code I see an error when the OGL output format block is parsed. The error says "OGL_PNG24 driver is not configured". Can anyone point out what might me causing this error or how to enable OpenGL based rendering. Regards, Ram -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-OGL-rendering-instead-of-AGG-tp5329120.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From ahmettemiz88 at gmail.com Fri Jul 28 21:11:52 2017 From: ahmettemiz88 at gmail.com (Ahmet Temiz) Date: Sat, 29 Jul 2017 04:11:52 +0000 Subject: [mapserver-users] Wrong about cgi feature parameter Message-ID: Hi, I want to create a feature dynamically for point layer. But,What am I doing wrong ? It must be about feature parameter. But I was not able to solve it. This request generates nothing. curl --trace -i -g -X GET -H "Content-Type: image/png" " http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/slptrRGB3857.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&Layers=poor &map_layer[polf]=FEATURE+POINTS+3559569+5042506+END+END&STYLES=&SRS=EPSG:3857&BBOX=2857613.741389,4274927.875099,4989229.633477,5176940.449967&WIDTH=400&HEIGHT=300&FORMAT=image/png" > out.png If you can help, I will appreciate. regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jul 31 11:38:23 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 31 Jul 2017 18:38:23 +0000 Subject: [mapserver-users] rotating a label 90 degrees. Message-ID: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> All, Is there and way to label a line with the ANGLE value set to AUTO, but to rotate the label by 90 degrees? I want to label a line by crossing perpendicular to the line vs aligned parallel. Thanks bobb "In the end, it's not the years in your life that count. It's the life in your years.? - Abraham Lincoln -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Mon Jul 31 12:41:00 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 31 Jul 2017 19:41:00 +0000 Subject: [mapserver-users] Wrong about cgi feature parameter In-Reply-To: References: Message-ID: I was able to get something very similar working, albeit via a straight MapServer CGI call ? didn?t try WMS. I noticed in your example you reference two layers poor and polf, is that intended? Request: http://maps1.dnr.state.mn.us/cgi-bin/mapserv72?map=/usr/local/mapserver/apps/test/temiz/test.map&mode=map&layer=polf&map_layer[polf]=FEATURE+POINTS+3559569+5042506+END+END Mapfile: MAP NAME 'ahmet temiz test mapfile' EXTENT 2857613.741389 4274927.875099 4989229.633477 5176940.449967 SIZE 400 300 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'polf' TYPE POINT STATUS OFF CLASS STYLE COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END END END END --Steve From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz Sent: Friday, July 28, 2017 11:12 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Wrong about cgi feature parameter Hi, I want to create a feature dynamically for point layer. But,What am I doing wrong ? It must be about feature parameter. But I was not able to solve it. This request generates nothing. curl --trace -i -g -X GET -H "Content-Type: image/png" "http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/slptrRGB3857.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&Layers=poor &map_layer[polf]=FEATURE+POINTS+3559569+5042506+END+END&STYLES=&SRS=EPSG:3857&BBOX=2857613.741389,4274927.875099,4989229.633477,5176940.449967&WIDTH=400&HEIGHT=300&FORMAT=image/png" > out.png If you can help, I will appreciate. regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Bilgi ??lem Dairesi Ba?kanl???-CBS Grubu ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Mon Jul 31 13:52:24 2017 From: steve.lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 31 Jul 2017 20:52:24 +0000 Subject: [mapserver-users] rotating a label 90 degrees. In-Reply-To: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> References: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> Message-ID: I can?t think of anything offhand. If using PostGIS could you compute the angle and add 90? I think you could then use attribute binding on the result. Could pre-process data too. Otherwide we?d need an ?angleoffset? parameters or something like that. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, July 31, 2017 1:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] rotating a label 90 degrees. All, Is there and way to label a line with the ANGLE value set to AUTO, but to rotate the label by 90 degrees? I want to label a line by crossing perpendicular to the line vs aligned parallel. Thanks bobb "In the end, it's not the years in your life that count. It's the life in your years.? - Abraham Lincoln -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Mon Jul 31 13:56:30 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 31 Jul 2017 20:56:30 +0000 Subject: [mapserver-users] rotating a label 90 degrees. In-Reply-To: References: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> Message-ID: <0770BBF1-7855-4CB0-A226-BCD432630DA8@ci.stpaul.mn.us> Steve, I?m pretty sure I can get to what I need via SQL, but it would be rather convoluted. It?s doable though. I was hoping for doing something like ?auto+/-90? as an option for a value. bobb On Jul 31, 2017, at 3:52 PM, Lime, Steve D (MNIT) > wrote: I can?t think of anything offhand. If using PostGIS could you compute the angle and add 90? I think you could then use attribute binding on the result. Could pre-process data too. Otherwide we?d need an ?angleoffset? parameters or something like that. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, July 31, 2017 1:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] rotating a label 90 degrees. All, Is there and way to label a line with the ANGLE value set to AUTO, but to rotate the label by 90 degrees? I want to label a line by crossing perpendicular to the line vs aligned parallel. Thanks bobb "In the end, it's not the years in your life that count. It's the life in your years.? - Abraham Lincoln "I've had a wonderful time, but this wasn't it." - Groucho Marx -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GeoAnalytic.com Mon Jul 31 14:00:50 2017 From: bfraser at GeoAnalytic.com (Brent Fraser) Date: Mon, 31 Jul 2017 15:00:50 -0600 Subject: [mapserver-users] rotating a label 90 degrees. In-Reply-To: <0770BBF1-7855-4CB0-A226-BCD432630DA8@ci.stpaul.mn.us> References: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> <0770BBF1-7855-4CB0-A226-BCD432630DA8@ci.stpaul.mn.us> Message-ID: <062a40ff76994fa4906403c4c0090d93@GeoAnalytic.com> Bob, Maybe using Javascript style GEOMTRANSFORM in the mapfle? http://www.mapserver.org/mapfile/geomtransform.html#javascript-transformation Best Regards, Brent Fraser ---------------------------------------- From: "Basques, Bob (CI-StPaul)" Sent: Monday, July 31, 2017 2:56 PM To: "Steve D Lime (MNIT)" Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] rotating a label 90 degrees. Steve, I'm pretty sure I can get to what I need via SQL, but it would be rather convoluted. It's doable though. I was hoping for doing something like "auto+/-90" as an option for a value. bobb On Jul 31, 2017, at 3:52 PM, Lime, Steve D (MNIT) wrote: I can't think of anything offhand. If using PostGIS could you compute the angle and add 90? I think you could then use attribute binding on the result. Could pre-process data too. Otherwide we'd need an "angleoffset" parameters or something like that. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, July 31, 2017 1:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] rotating a label 90 degrees. All, Is there and way to label a line with the ANGLE value set to AUTO, but to rotate the label by 90 degrees? I want to label a line by crossing perpendicular to the line vs aligned parallel. Thanks bobb "In the end, it's not the years in your life that count. It's the life in your years." - Abraham Lincoln "I've had a wonderful time, but this wasn't it." - Groucho Marx -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Attachment 1 Type: application/octet-stream Size: 7074 bytes Desc: not available URL: From bob.basques at ci.stpaul.mn.us Mon Jul 31 14:07:30 2017 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Mon, 31 Jul 2017 21:07:30 +0000 Subject: [mapserver-users] rotating a label 90 degrees. In-Reply-To: <062a40ff76994fa4906403c4c0090d93@GeoAnalytic.com> References: <07B15A5A-0AAC-4F76-85C8-6A640750E12F@ci.stpaul.mn.us> <0770BBF1-7855-4CB0-A226-BCD432630DA8@ci.stpaul.mn.us> <062a40ff76994fa4906403c4c0090d93@GeoAnalytic.com> Message-ID: <110DBEA9-6E4C-4E52-8B06-48654778A3B7@ci.stpaul.mn.us> That?s defintly an intreresting approach . . . bobb On Jul 31, 2017, at 4:00 PM, Brent Fraser > wrote: Bob, Maybe using Javascript style GEOMTRANSFORM in the mapfle? http://www.mapserver.org/mapfile/geomtransform.html#javascript-transformation Best Regards, Brent Fraser ________________________________ From: "Basques, Bob (CI-StPaul)" > Sent: Monday, July 31, 2017 2:56 PM To: "Steve D Lime (MNIT)" > Cc: "mapserver-users at lists.osgeo.org" > Subject: Re: [mapserver-users] rotating a label 90 degrees. Steve, I?m pretty sure I can get to what I need via SQL, but it would be rather convoluted. It?s doable though. I was hoping for doing something like ?auto+/-90? as an option for a value. bobb On Jul 31, 2017, at 3:52 PM, Lime, Steve D (MNIT) > wrote: I can?t think of anything offhand. If using PostGIS could you compute the angle and add 90? I think you could then use attribute binding on the result. Could pre-process data too. Otherwide we?d need an ?angleoffset? parameters or something like that. From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Monday, July 31, 2017 1:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] rotating a label 90 degrees. All, Is there and way to label a line with the ANGLE value set to AUTO, but to rotate the label by 90 degrees? I want to label a line by crossing perpendicular to the line vs aligned parallel. Thanks bobb "In the end, it's not the years in your life that count. It's the life in your years.? - Abraham Lincoln "I've had a wonderful time, but this wasn't it." - Groucho Marx It is the mark of an educated mind to be able to entertain a thought without accepting it. ?Aristotle -------------- next part -------------- An HTML attachment was scrubbed... URL: