RE: [mapserver-users] MapServer 6.0.0-beta4 release
I'm trying to build MapServer --with-xslt on CentOS 5, 64 bit and I'm not able to get the right argument for --with-xslt= Looking at ./configure, around line 12710, the tests look like: test -f $XSLT_DIR/include/libxslt/xslt.h && XSLT_INCDIR="$XSLT_DIR/include" test -f $XSLT_DIR/lib/libxslt.so && XSLT_LIBDIR="$XSLT_DIR/lib" Anyway, on a pure 64 bit machine, there won't be any lib/libxslt.so, but a lib64/libxslt.so. Indeed, changing this to lib64 it configures fine on my machine. Peter R3 GIS Srl - GmbH http://www.r3-gis.com Daniel Morissette wrote Subject: [mapserver-users] MapServer 6.0.0-beta4 release Date: 31.03.2011 03:36 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >If all goes well, the plan is to have a final 6.0 release around the end >of April. The full release plan which also includes the list of new >features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta4 (2011-03-30) > > >- Fix shp2img's -i flag to honour map level transparent, image quality >and > interlace settings. > >- Make sure command-line programs use an exit status other than 0 > when an error is encountered. (#3753) > >- Applied patch to filter unwanted fribidi characters (#3763) > >- Fixed lexer to set the proper state on URL variable substitutions > >- Fixed Memory leak in PostGIS driver (#3768) > >- Fixed PHP/MapScript symbol property setter method > >- fix memory leak in bar charts > >- fix some valgrind errors on agg rotated pixmap symbols > >- WCS 2.0: Adjusted definition of NilValues. > >- Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > >- Fixed compilation error with opengl support (#3769) > >- add support for gml:Box for spatial filters (#3789) > >- fix query map generation error introduced in beta2 when output format > initialized was made as needed. > >- fix incorrect PATTERN behavior on agg lines (#3787) > >- report SOS DescribeObservationType in Capabilities (#3777) > >- Updated lexer to detect time attribute bindings (e.g. `[item]`) in >logical > expressions > >- Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > >- KML: Output ExtendedData (#3728) > >- Fixed OWS usage of multiple layers with same name (#3778) > >- WCS implementation should not lookup wms_* metadata (#3779) > >- WCS 2.0: Adjusted definition of rangeType. > >- Fixed OWS GetCapabilities to report only requests/operations that are > enabled. > >- WCS 2.0: Report only bands in the range subset. > >- OWS requests should be completely blocked by default (#3755) > >- SLD: check for limit on dash arrays (#3772) > >- WMS: Apply sld after bbox and srs have been parsed (#3765) > > >___ >mapserver-users mailing list >mapserver-users@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer 6.0.0-beta4 release
Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: http://www.r3-gis.com/upload/mapserver-6.0.0beta4-1.0.el5.src.rpm http://www.r3-gis.com/upload/mapserver-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-proj-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-python-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-java-6.0.0beta4-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta4-1.0.el5.x86_64.rpm These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS and on the php53* packages, which might be found in http://dev.centos.org/centos/5/testing/x86_64/RPMS/php53/ , until CentOS 5.6 is out. In addition to the beta3 packages, KML support is enabled. beta3 packages were removed. Peter R3 GIS Srl - GmbH http://www.r3-gis.com Daniel Morissette wrote Subject: [mapserver-users] MapServer 6.0.0-beta4 release Date: 31.03.2011 03:36 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > >If all goes well, the plan is to have a final 6.0 release around the end >of April. The full release plan which also includes the list of new >features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > >The list of fixes since beta1 is attached at the end of this message. >For a complete list see the HISTORY.TXT file at: > > >http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HISTORY.TXT > >We have started working on a 5.6 -> 6.0 migration guide. This document >contains important notes on backwards incompatibilities or other changes >required when upgrading to 6.0. It is not complete yet but we strongly >recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > >The source for this release can be downloaded at: > > http://mapserver.org/download.html >or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > >The binary distributions listed in the download page should be updated >with binaries for the new beta release in the next day or so. > >Once again we need your help to ensure a high quality product, so please >help out by testing your applications with this new code base. > >Thanks! - The MapServer Team > > >Version 6.0.0-beta4 (2011-03-30) > > >- Fix shp2img's -i flag to honour map level transparent, image quality >and > interlace settings. > >- Make sure command-line programs use an exit status other than 0 > when an error is encountered. (#3753) > >- Applied patch to filter unwanted fribidi characters (#3763) > >- Fixed lexer to set the proper state on URL variable substitutions > >- Fixed Memory leak in PostGIS driver (#3768) > >- Fixed PHP/MapScript symbol property setter method > >- fix memory leak in bar charts > >- fix some valgrind errors on agg rotated pixmap symbols > >- WCS 2.0: Adjusted definition of NilValues. > >- Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > >- Fixed compilation error with opengl support (#3769) > >- add support for gml:Box for spatial filters (#3789) > >- fix query map generation error introduced in beta2 when output format > initialized was made as needed. > >- fix incorrect PATTERN behavior on agg lines (#3787) > >- report SOS DescribeObservationType in Capabilities (#3777) > >- Updated lexer to detect time attribute bindings (e.g. `[item]`) in >logical > expressions > >- Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > >- KML: Output ExtendedData (#3728) > >- Fixed OWS usage of multiple layers with same name (#3778) > >- WCS implementation should not lookup wms_* metadata (#3779) > >- WCS 2.0: Adjusted definition of rangeType. > >- Fixed OWS GetCapabilities to report only requests/operations that are > enabled. > >- WCS 2.0: Report only bands in the range subset. > >- OWS requests should be completely blocked by default (#3755) > >- SLD: check for limit on dash arrays (#3772) > >- WMS: Apply sld after bbox and srs have been parsed (#3765) > > >___ >mapserver-users mailing list >mapserver-users@lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___
RE: [mapserver-users] WFS Intersect with gml:box
Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaquín De: Yewondwossen Assefa [yass...@dmsolutions.ca] Enviado el: miércoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users@lists.osgeo.org; Joaquín Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at > least one point in common. Thus WFS Intersects should select the point that > is inside the "box" in the query. I made a quick test with OpenJUMP which is > using JTS and it really does select such a point with a apatial query > Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaquín, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 __ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. __ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. __ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GD BUG? Negative GAP parameter to rotate vector symbols along line
Hallo Users Indeed with AGG driver rotating of vector symbols work very well. I attached the Examle images. So is it a BUG form gd driver? The GD_GIF_mapserver5_6_1.gif image was rendered with following map sections: OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT "LINESTRING (0 0, 100 100, 200 100, 300 200, 200 300)" END CLASS STYLE ANGLE AUTO SYMBOL "zakrzewienie_k1" COLOR 0 255 0 SIZE 18 END STYLE COLOR 255 0 0 WIDTH 1 END END END SYMBOL NAME "zakrzewienie_k1" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END STYLE 1 8 1 18 END #SIZE 10 GAP -99 END The second image: GD_PNG_mapserver5_6_1.png had such IMAGETYPE: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END The AGG_PNG_mapserver5_6_1.png image displays correctly rotated vector symbols.The map file included: OUTPUTFORMAT NAME 'aggpng' DRIVER AGG/PNG IMAGEMODE RGB #PC256 RGB RGBA BYTE INT16 END SYMBOL NAME "zakrzewienie_k1" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END #STYLE 1 8 1 18 END #SIZE 10 GAP -9 END MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I must use GD driver because performance aspects. The agg images are more pretty than GD but essentially much bigger than DG images (several times). AGG doesn't work with PC256 palettet colors and DG does. The rendering time is really much longer than DG. Exaples: times: 16ms for GD and 33ms for AGG sizes: 33KB – GD nad 230KB – AGG Somebody nows how can I speed up rendering time of AGG images to make it so fast than DG? Or is it a bug of GD driver or I'm doing something wrong? Any ideas to solve or workaroud this problem? Thanks Bartek It's supposed to work. If not, you might want to file a bugreport with a screenshot of what you're getting, but in any case the GD driver in the 5.x brach won't be getting much attention. I'd highly suggest using AGG/PNG for any vector symbology rendering. regards, thomas On Thu, Mar 31, 2011 at 08:53, Bartłomiej Burkot wrote: Any idea why it doesn't work? Hi thomas what mapserver version? what outputformat/renderer? MapServer version 5.6.5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END Bartek -- thomas On Wed, Mar 30, 2011 at 15:10, Bartłomiej Burkot wrote: Hi Users I would like to render a vector symbol along the line in a layer. This vector symbol should be rotated according to orientation of linesegments (for example a arrow along one way street). When I use negative GAP with truetype symbol it work perfectly but I have probelms with vector symbols to rotate them. I use this definition of Symbol but it doesn't work: SYMBOL NAME "testsymbol" TYPE VECTOR POINTS 5 0 2 1 0 2.5 2 4 5 5 5 5 2 6 0 7.5 2 9 5 10 END STYLE 1 8 1 18 END GAP -99 # doesn't work END I read in docu http://mapserver.org/mapfile/symbol.html that: "When drawing the symbol along a line segment, a negative GAP will will add 180 degress to the angle. The TrueType and PixMap symbols are always oriented along the line." My layer definiton is: LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT "LINESTRING (0 0, 100 100, 0 100)" END CLASS STYLE #ANGLE AUTO SYMBOL "testsymbol" COLOR 0 255 0 #SIZE8 END END END Does vectorsymbol play with negative GAP parameter? Bartek ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users <><><>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osg
Re: [mapserver-users] MapServer 6.0.0-beta4 release
UbuntuGIS MapServer packages have been updated for the beta4 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 30, 2011 09:35:44 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta4 (2011-03-30) > > > - Fix shp2img's -i flag to honour map level transparent, image quality and >interlace settings. > > - Make sure command-line programs use an exit status other than 0 >when an error is encountered. (#3753) > > - Applied patch to filter unwanted fribidi characters (#3763) > > - Fixed lexer to set the proper state on URL variable substitutions > > - Fixed Memory leak in PostGIS driver (#3768) > > - Fixed PHP/MapScript symbol property setter method > > - fix memory leak in bar charts > > - fix some valgrind errors on agg rotated pixmap symbols > > - WCS 2.0: Adjusted definition of NilValues. > > - Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > > - Fixed compilation error with opengl support (#3769) > > - add support for gml:Box for spatial filters (#3789) > > - fix query map generation error introduced in beta2 when output format >initialized was made as needed. > > - fix incorrect PATTERN behavior on agg lines (#3787) > > - report SOS DescribeObservationType in Capabilities (#3777) > > - Updated lexer to detect time attribute bindings (e.g. `[item]`) in > logical expressions > > - Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > > - KML: Output ExtendedData (#3728) > > - Fixed OWS usage of multiple layers with same name (#3778) > > - WCS implementation should not lookup wms_* metadata (#3779) > > - WCS 2.0: Adjusted definition of rangeType. > > - Fixed OWS GetCapabilities to report only requests/operations that are >enabled. > > - WCS 2.0: Report only bands in the range subset. > > - OWS requests should be completely blocked by default (#3755) > > - SLD: check for limit on dash arrays (#3772) > > - WMS: Apply sld after bbox and srs have been parsed (#3765) > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS Intersect with gml:box
Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.00,-1.00 -1.00,-1.00 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml";>point 10,10 10,10 result: 10.00,10.00 10.00,10.00 10.00,10.00 10.00,10.00 10.00,10.00 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?"; ## Recommended "wfs_srs""EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net"; END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?"; ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaquín De: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] En nombre de Joaquín Rodriguez-Guerra Urcelay [jrgue...@gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users@lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaquín De: Yewondwossen Assefa [yass...@dmsolutions.ca] Enviado el: miércoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users@lists.osgeo.org; Joaquín Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at > least one point in common. Thus WFS Intersects should select the point that > is inside the "box" in the query. I made a quick test with OpenJUMP which is > using JTS and it really does select such a point with a apatial query > Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaquín, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk.
RE: [mapserver-users] WFS Intersect with gml:box
Hi, I have check the same example using Posgres and it works, so it is a problem with mysql Joaquín Rodríguez-Guerra Urcelay Unidad de Sistemas de Procesamiento de Ciencia y de Observación de la Tierra / Science and Earth Observing Processing Systems Unit GMV AEROSPACE AND DEFENCE, S.A. Isaac Newton, 11 P.T.M. Tres Cantos E-28760 Madrid Tel. +34 91 807 21 00 / 7695 Fax +34 91 807 21 99 www.gmv.com De: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] En nombre de Joaquín Rodriguez-Guerra Urcelay [jrgue...@gmv.com] Enviado el: jueves, 31 de marzo de 2011 16:42 Para: mapserver-users@lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.00,-1.00 -1.00,-1.00 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml";>point 10,10 10,10 result: 10.00,10.00 10.00,10.00 10.00,10.00 10.00,10.00 10.00,10.00 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?"; ## Recommended "wfs_srs""EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net"; END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?"; ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaquín De: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] En nombre de Joaquín Rodriguez-Guerra Urcelay [jrgue...@gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users@lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaquín De: Yewondwossen Assefa [yass...@dmsolutions.ca] Enviado el: miérco
[mapserver-users] DrawQuery problem
Hello, i'am using mapserver in ubuntu Maverick (10.10). Php version is 5-3-3-1 ubuntu 9.3. Mapscript description: MapServer Version MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) I have a project in php, with connection to postgis. When map->draw is called the image is generated correctly. When i do a querybyrect query to the map, the drawquery doesn't draw the image. If necesary i have debug information, and error log. Please help, i can't find the problem! Regards Oscar ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta4 release
Windows users can find the 6.0.0-beta4 upgrade package for MS4W at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta4 release
openSUSE packages for beta 4 are available here: http://download.opensuse.org/repositories/home:/tzotsos/openSUSE_11.4 http://software.opensuse.org/search?q=mapserver&baseproject=openSUSE%3A11.4&lang=en&include_home=true&exclude_debug=true Angelos On 03/31/2011 09:16 PM, Jeff McKenna wrote: Windows users can find the 6.0.0-beta4 upgrade package for MS4W at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] DrawQuery problem
I guess we need more information. A script snippet, confirmation the query is returning results, error messages, etc... Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Oscar Testa Sent: Thursday, March 31, 2011 12:34 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] DrawQuery problem Hello, i'am using mapserver in ubuntu Maverick (10.10). Php version is 5-3-3-1 ubuntu 9.3. Mapscript description: MapServer Version MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) I have a project in php, with connection to postgis. When map->draw is called the image is generated correctly. When i do a querybyrect query to the map, the drawquery doesn't draw the image. If necesary i have debug information, and error log. Please help, i can't find the problem! Regards Oscar ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users