Re: [mapserver-users] php_mapscript throubleshoot

2020-03-10 Thread Richard Greenwood
Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on
Ubuntu so maybe it's different on Centos.

Also note that you have compiled two different version of mapscript so you
should have both php_mapscript.so and php_mapscriptng.so

On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo 
wrote:

> Dears
> after successully compilation of mapserver 7.4.3 on centos 8,
> I'm not able to load  php_mapscript on PHP environment, (nothing related
> to mapscript is displayed on phpinfo();
>
> some info:
> cmake
>  
> -DCMAKE_PREFIX_PATH="/usr/geos38;/usr/proj63;/usr/gdal30;/usr/pgsql-12;/usr/local"
> -DWITH_PHPNG=ON -DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON  -DWITH_CURL=ON
> -DWITH_SVGCAIRO=OFF -DWITH_PROTOBUFC=OFF -DWITH_CAIRO=OFF -DWITH_FRIBIDI=ON
> -DWITH_HARFBUZZ=ON -DWITH_GEOS=ON ../
> -- /usr/include/php/main
> -- Found PHP-Version 7.2.11 (using /usr/bin/php-config)
> -- Found SWIG: /usr/local/bin/swig (found version "4.0.1")
> -- /usr/include/php/main
> -- Found PHP-Version 7.2.11 (using /usr/bin/php-config)
> -- PHP Include Path:
> /usr/include/php;/usr/local/include/php;/usr/include/php;/usr/local/include/php;/usr/local/apache/php;/usr/include/php/Zend;/usr/include/php/main;/usr/include/php/TSRM;INTERNAL;PHP
> include paths
> -- * Summary of configured options for this build
> --  * Mandatory components
> --   * png: /usr/lib64/libpng.so
> --   * jpeg: /usr/lib64/libjpeg.so
> --   * freetype: /usr/lib64/libfreetype.so
> --  * Optional components
> --   * GDAL: /usr/gdal30/lib/libgdal.so
> --   * OGR: /usr/gdal30/lib/libgdal.so
> --   * GIF: /usr/lib64/libgif.so
> --   * MYSQL: disabled
> --   * FRIBIDI: /usr/lib64/libfribidi.so
> --   * HARFBUZZ: /usr/lib64/libharfbuzz.so
> --   * GIF: /usr/lib64/libgif.so
> --   * CAIRO: disabled
> --   * SVGCAIRO: disabled
> --   * RSVG: disabled
> --   * CURL: /usr/lib64/libcurl.so
> --   * PROJ: /usr/proj63/lib/libproj.so
> --   * PIXMAN: disabled
> --   * LIBXML2: /usr/lib64/libxml2.so
> --   * POSTGIS: /usr/pgsql-12/lib/libpq.so
> --   * GEOS: /usr/geos38/lib64/libgeos_c.so
> --   * FastCGI: /usr/lib64/libfcgi.so
> --   * PROTOBUFC: disabled
> --   * Oracle Spatial: disabled
> --   * Exempi XMP: disabled
> --  * Optional features
> --   * WMS SERVER: ENABLED
> --   * WFS SERVER: ENABLED
> --   * WCS SERVER: ENABLED
> --   * SOS SERVER: disabled
> --   * WMS CLIENT: ENABLED
> --   * WFS CLIENT: ENABLED
> --   * ICONV: ENABLED
> --   * Thread-safety support: disabled
> --   * KML output: disabled
> --   * Z+M point coordinate support: disabled
> --   * XML Mapfile support: disabled
> --  * Mapscripts
> --   * Python: disabled
> --   * PHP: ENABLED
> --   * PHPNG: ENABLED
> --   * PERL: disabled
> --   * RUBY: disabled
> --   * JAVA: disabled
> --   * C#: disabled
> --   * V8 Javascript: disabled
> --   * Apache Module (Experimental): disabled
> --
> -- Will install files to /usr/local
> -- Will install libraries to /usr/local/lib
> -- Configuring done
> -- Generating done
>
>
> after make; make install
> I can check:
> # mapserv -v
> MapServer version 7.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG
> SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> lib is in the right place:
> /usr/lib64/php/modules/php_mapscript.so
> and extension is configured:
> /etc/php.d/30-php_mapscript.ini
> ; Enable mapserver extension module
> extension=php_mapscript
>
>
> Do you have any idea how to check if the module is loaded?
>
> Regards,
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache Larger tiles, reduce number of files

2020-03-10 Thread Jean-Philippe Chenel
Dear Steve,

Thanks for your help and here is the solution.

The grid in mapcache.xml was good (same resolution as the default with 256x256, 
the only difference is the size of the tile)


-20037508.3427892480 -20037508.3427892480 20037508.3427892480 
20037508.3427892480
EPSG:3857
m
512 512
156543.0339280410 78271.51696402048 39135.75848201023 
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 
4.777314267823516 2.388657133911758 1.194328566955879 
0.5971642834779395


The problem was in the OL configuration, when you said that the tilesize is 
something else, I suppose that the resolution also changes without to do 
anything. The solution was to make another tilegrid configuration like that and 
to bind it to the source.

var projExtent = ol.proj.get('EPSG:3857').getExtent();
var startResolution = ol.extent.getWidth(projExtent) / 256;
var resolutions = new Array(22);
var tileSize = 512;
var urlTemplate = '/GoogleMaps512/{z}/{x}/{y}.png';

for (var i = 0, ii = resolutions.length; i < ii; ++i) {
  resolutions[i] = startResolution / Math.pow(2, i);
}

var tileGrid = new ol.tilegrid.TileGrid({
  extent: [-20037508.3427892480, -20037508.3427892480, 20037508.3427892480, 
20037508.3427892480],
  resolutions: resolutions,
  tileSize: [512, 512]
});

var source1 = new ol.source.XYZ({
url: urlTemplate,
tileSize: tileSize,
tileGrid: tileGrid
});

With best regards,


De : Stephen Woodbridge 
Envoyé : 9 mars 2020 16:46
À : Jean-Philippe Chenel ; mapserver-users@lists.osgeo.org 

Objet : Re: [mapserver-users] MapCache Larger tiles, reduce number of files

Are you sure you have the set the tile size correctly in OpenLayers?
Because if OL is requesting tiles that you don't have it sounds like
that is the reason.
And if you do load tile and there is a miss-match, then I would expect
the resolution of be off.

Here are a few links that might help:

https://openlayers.org/en/latest/examples/wms-custom-tilegrid-512x256.html
https://openlayers.org/en/latest/apidoc/module-ol_tilegrid_TileGrid-TileGrid.html
https://stackoverflow.com/questions/57072232/how-to-change-tilesize-in-xyz-tilelayer-from-default256-256-to-something-e

On 3/9/2020 3:21 PM, Jean-Philippe Chenel wrote:
> Steve,
>
> It is what I supposed, but when I've generated the tiles 512x512 using
> the default resolution GoogleMapCompatible, with the cache template
> {z}/{x}/{y}.{ext} and loaded it in OpenLayers using ol.source.XYZ,
> I've noticied that the x tile being tried to load was not in the good
> range.
>
> z/x/-y.png
>
> Tiles generated:
> .../8/37 and 38/64 and 65.png
>
> Tiles loaded by OpenLayers (with error 404):
> .../8/73 to 77/130 and 131.png
>
> Thanks,
> 
> *De :* mapserver-users  de la
> part de Stephen Woodbridge 
> *Envoyé :* 9 mars 2020 14:56
> *À :* mapserver-users@lists.osgeo.org 
> *Objet :* Re: [mapserver-users] MapCache Larger tiles, reduce number
> of files
> Jean-Philippe,
>
> I don't think it works like that. Resolution is determined by zoom
> factor so you generate  metatile at that resolution then you chop that
> metatile in tiles of whatever size you specify. So resolution is
> controled by zoom not tile size.
>
> -Steve W
>
> On 3/9/2020 2:45 PM, Jean-Philippe Chenel wrote:
> > Hi,
> >
> > With MapCache, I want to generate the tiles that will be copied to a
> > mobile device, on a viewer created with OpenLayers.
> >
> > When generating a large extent, with multiple levels of zoom, the
> > files count is really big, so I want to reduce the number of files by
> > increasing the tile size. I've made a test with tiles 512x512, but
> > I've realized that the resolution must be changed when changing tiles
> > size. So, the tiles are bigger, but changing the resolution make
> > generating the same number of files.
> >
> > I'm open for workaround and other tricks.
> >
> > mapcache.xml
> >
> > 
> > 
> > GoogleMaps512
> > 
> > -20037508.3427892480 -20037508.3427892480 20037508.3427892480
> > 20037508.3427892480
> > EPSG:3857
> > EPSG:900913
> > m
> > 512 512
> > 156543.0339280410 78271.51696402048 39135.75848201023
> > 19567.87924100512 9783.939620502561 4891.969810251280
> > 2445.984905125640 1222.992452562820 611.4962262814100
> > 305.7481131407048 152.8740565703525 76.43702828517624
> > 38.21851414258813 19.10925707129406 9.554628535647032
> > 4.777314267823516 2.388657133911758 1.194328566955879
> > 0.5971642834779395
> > 
> >
> > 
> >
> /data/mapcache/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}
> > 
> >
> > 
> > vmap0
> > tmpl_xyz
> > GoogleMaps512
> > PNG
> > 
> >
> > With best regards,
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > 

[mapserver-users] REMINDER: OSGeo Local Chapter (aka TCMUG) Meeting

2020-03-10 Thread Basques, Bob (CI-StPaul)
See you there.

bobb






OSGeo Local Chapter (aka TCMUG) Meeting

Scheduled: Mar 11, 2020 at 4:30 PM to 6:00 PM

Location: 644 Bayfield St, Saint Paul, MN  55107, United States

755 Prior Ave N, St Paul, MN 55104

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
X-WR-CALNAME:OSGeo Local Chapter (aka TCMUG) Meeting
METHOD:PUBLISH
PRODID:-//Apple Inc.//Mac OS X 10.15.2//EN
BEGIN:VTIMEZONE
TZID:America/Chicago
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
DTSTART:20070311T02
TZNAME:CDT
TZOFFSETTO:-0500
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0500
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
DTSTART:20071104T02
TZNAME:CST
TZOFFSETTO:-0600
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
TRANSP:TRANSPARENT
DTEND;TZID=America/Chicago:20200311T18
DTSTART;TZID=America/Chicago:20200311T163000
UID:9E2ADF62-BF4D-4C78-A0CD-4C1E3DBAFA61
DTSTAMP:20200306T214809Z
LOCATION:644 Bayfield St\, Saint Paul\, MN  55107\, United States
DESCRIPTION:755 Prior Ave N\, St Paul\, MN 55104
SEQUENCE:1
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
SUMMARY:OSGeo Local Chapter (aka TCMUG) Meeting
LAST-MODIFIED:20200306T214730Z
CREATED:20200306T214659Z
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-APPLE-MAPKIT-HANDLE=CAESgAIIrk0Q
 nqf0zKn12P6/ARoSCUcR2D+SeEZAEQAAAD4qRFfAIpIBCg1Vbml0ZWQgU3RhdGVzEgJVUxoJ
 TWlubmVzb3RhIgJNTioGUmFtc2V5MgpTYWludCBQYXVsOgU1NTEwN0IJV2VzdCBTaWRlUgtC
 YXlmaWVsZCBTdFoDNjQ0Yg82NDQgQmF5ZmllbGQgU3RyGVN0LiBQYXVsIERvd250b3duIEFp
 cnBvcnSKAQlXZXN0IFNpZGUqDkhvbG1hbidzIFRhYmxlMg82NDQgQmF5ZmllbGQgU3QyFVNh
 aW50IFBhdWwsIE1OICA1NTEwNzINVW5pdGVkIFN0YXRlczg5;X-APPLE-RADIUS=707.0673
 828125;X-TITLE="644 Bayfield St, Saint Paul, MN  55107, United States":g
 eo:44.941963,-93.065078
END:VEVENT
END:VCALENDAR
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] question on demo.mapserver.org

2020-03-10 Thread WhereGroup
Thanks Jeff!

works:
https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS=1.1.1=GetMap=-180,-90,180,90=EPSG:4326=953=480=continents==image/png=true=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ENA3DESC%3C/PropertyName%3E%3CLiteral%3EEurope%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E

not important to me at the moment, but the spatial-filter does not work
- why?

https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS=1.1.1=GetMap=-180,-90,180,90=EPSG:4326=953=480=continents==image/png=true=Geometry-60.18,46.100.05

Jörg

Am 09.03.20 um 16:06 schrieb Jeff McKenna:
> Hi Jörg,
> 
> Regarding that WMS service[1] here is the classitem syntax:
> 
>   CLASSITEM    'NA3DESC'
> 
> With an example value of 'Africa' or 'Europe  .
> 
> 
> [1]
> https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS=1.3.0=GetCapabilities
> 
> 
> 
> -jeff
> 
> 
> 


Viele Grüße,
Jörg Thomsen

-- 


QGIS Experience Day - jetzt kostenfrei anmelden!
2. April 2020 in Berlin | https://qgis-day.com/


Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thom...@wheregroup.com
www.wheregroup.com

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

---
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users