Leehan | 12 Nov 16:21 2014
Picon

no featurecount in cluster

I am experiencing an issue using cluster with mapserver 6.
I am using "Cluster: FeatureCount" as label in the layer but depending on
the scale, some clusters are empty.
I can't find the reason why.
Look in the center and on bottom left of the image.
Thx

<http://osgeo-org.1560.x6.nabble.com/file/n5172621/cluster.png> 

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/no-featurecount-in-cluster-tp5172621.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Dietmar Stolz | 12 Nov 13:28 2014
Picon

change kml style output

Hi, is it possible to change kml style output?
Mapserver writes only fix style information in the kml result file:

    <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>

It seems that the problem only occurs with wfs requests. wms request works fine.

MapServer version 6.4.1

 OUTPUTFORMAT
  NAME "kml"
  DRIVER "OGR/KML" # wms without OGR
  MIMETYPE "application/vnd.google-earth.kml+xml"
  EXTENSION "kml"
  FORMATOPTION "STORAGE=memory"
  FORMATOPTION "FORM=simple"
 END

 LAYER
  NAME "electricity"
  TYPE LINE
  DATA "electricity.shp"
  METADATA
   "ows_title" "electricity"
   "ows_abstract" "electricity"
   "ows_include_items" "all"
   "OWS_SRS" "EPSG:25832"
   "wfs_getfeature_formatlist" "text/csv,gml,geojson,xml,kml"
  END
  DUMP TRUE
  TEMPLATE "../templates/void.html"
  CLASS
   STYLE
    COLOR 0 255 0
    OUTLINECOLOR 0 0 255
    WIDTH 4
   END
  END
 END
Thx,
Dietmar
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Till Adams | 12 Nov 08:30 2014
Picon

FOSSGIS 2015: Call for Papers FOSSGIS 2015 verl?ngert bis zum 29.11.2014

Hallo FOSSGIS-Aktive, OSM-Mitstreiter und alle Open Source GIS und Data 
Aktive,

wir verlängern den Call for Papers für die #FOSSGIS2015 bis zum 
29.11.2014. [http://www.fossgis.de/konferenz/2015/callforpapers/].
Direkt zur Abstrakteinreichung geht es hier: 
[http://pb.fossgis.de/submission/FOSSGIS2015].

Wir freuen uns auf Eure Beiträge, die benötigt werden, um auch für die 
FOSSGIS 2015 ein interessantes, vielseitiges und spannendes Programm für 
alle Teilnehmer zu erstellen.

Wer mehr über Münster erfahren möchte, schaut in den nächsten Tagen auf 
der Konferenzhomepage vorbei.

Natürlich dürft Ihr diese Nachricht in die entsprechenden Mailinglisten, 
in denen Ihr kommuniziert verteilen. Vielen Dank dafür.

Die Aktivitäten und News zur FOSSGIS 2015 gibt es auch auf Twitter - 
[https://twitter.com/FOSSGIS2015].

Freundliche Grüße
vom FOSSGIS-Orgateam
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

samuelmesa@gmail.com | 11 Nov 19:15 2014
Picon

Configuring TinyOWS with a standard Mapfile in OSGeo4W

I've tried to create a WFS-T service configuring TinyOWS with a standard Mapfile in OSGeo4W, following the instructions in [1].

The connection is correct but does not enable transccionales operations, example using QGIS Desktop.

Has anyone been able start up the WFS-T service from Mapfile and TinyOWS in OSGeo4W?  There are limitations on OSGeo4W to publish the WFS-T service with Mapfile?

regards,

Samuel Mesa.

[1]. http://mapserver.org/tinyows/mapfileconfig.html
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Martin Hoegh | 11 Nov 10:10 2014

PostGIS raster connection is not closed by MapServer

I'm using PostGIS raster in MapServer like this:

TYPE RASTER
DATA “PG:port=5432 dbname='mydb' user='postgres' password='1234' schema='public'
table='truemarble' mode='2'"
PROCESSING "CLOSE_CONNECTION=ALWAYS"

My problem is that the database connection is not closed after a request, which leads to connection leak. It
works fine with PostGIS vectors in the same database.

Any ideas?

I've tested with:
python_mapscript in a mod_python application
php_mapscript in a php-fpm application (Fastcgi)
Both on apache2-mpm-worker

MapServer 6.2 and 6.4, GDAL 1.10 and GDAL 1.11, Ubuntu 12.04 and 14.04

For now I’ve fixed it with pgbouncer.

Martin Høgh

mapcentia.com
+45 26277810
Skype: mhoegh1
about.me/mhoegh

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
samuelmesa@gmail.com | 10 Nov 22:44 2014
Picon

Re: Σχετ: Σχετ: Installation of Mapserver 6.4.1

Then try the next installation:

sudo apt-get install  cgi-mapserver mapserver-bin

Generally, the installation is in /usr. So, the CGI Mapserver is in /usr/lib/cgi-bin/mapserv.

2014-11-10 15:40 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Indeed Mint's repositiories are based on Ubuntu's. I just tried the method you proposed by adding UbuntuGIS. I get the following:

Couldn't find package "mapserver".  However, the following
packages contain "mapserver" in their name:
  mapserver-doc cgi-mapserver qgis-mapserver mapserver-bin libmapserver1-dev libmapserver1 
Couldn't find package "mapserver".  However, the following
packages contain "mapserver" in their name:
  mapserver-doc cgi-mapserver qgis-mapserver mapserver-bin libmapserver1-dev libmapserver1 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 87 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.


From what I've seen the same packages are on the repositories of Mint 17. Should I install what it proposes above? In which folder will it be installed..?  I was trying to compile it because I though it's necessary to be installed in /usr/local/src

Stefanos


Στις 9:51 μ.μ. Δευτέρα, 10 Νοεμβρίου 2014, ο/η Samuel Mesa <samuelmesa <at> gmail.com> έγραψε:


I understand that the Ubuntu repositories are compatible with Linux Mint. Have you tried the following solution to install MapServer binaries from UbuntuGIS?:


For Mapserver:

sudo aptitude install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo aptitude update
sudo aptitude install mapserver


El lun, 10 de nov 2014 a las 2:40 PM, Stefanos Anastasiou <emperor_stef <at> yahoo.gr> escribió:
Hi Samuel,

I'm using Linux Mint 17. Indeed I installed all libraries through the repos and I presume it took care of the dependencies. And that was my initial qusestion actually: if i should use the synaptic or compile it from scratch. Probably the problem is in the paths of the libraries that cmake can't find them but I think the paths are the default paths that the synaptic installed them.

Stefanos


Στις 9:34 μ.μ. Δευτέρα, 10 Νοεμβρίου 2014, ο/η Samuel Mesa <samuelmesa <at> gmail.com> έγραψε:


What distribution of Linux you are using Stefanos?. I think you could use a package manager to install dependencies and Mapserver.

El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou <emperor_stef <at> yahoo.gr> escribió:
Hello Samuel..!!!

No I'm getting the following error: 

CMake Error at CMakeLists.txt:49 (message):
  GEOS library/component/dependency could not be found.

-- Could NOT find SVG (missing:  SVG_LIBRARY SVG_INCLUDE_DIR) 
-- Could NOT find SVGCAIRO (missing:  SVGCAIRO_LIBRARY SVGCAIRO_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:49 (message):
  SVGCAIRO library/component/dependency could not be found.

 Could NOT find GDAL (missing:  GDAL_LIBRARY GDAL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:567 (message):
  GDAL library could not be found and is needed for OGR support.

Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version "7.35.0") 
CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WMS support requires GDAL support, however GDAL support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WFS support requires OGR support, however OGR support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  WFS support requires OGR support, however OGR support has been disabled.


CMake Error at CMakeLists.txt:60 (message):
  KML support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  SOS support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:49 (message):
  GIF library/component/dependency could not be found.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)



Does is have to do with the compiling of the libraries?  I installed all libraries and their .dev through the repositories. Does it have to do anything? 

Thanks a lot.

Stefanos







Στις 10:10 μ.μ. Σάββατο, 8 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Try again decompressing the src and ignore step 2:

2. rm CMakeCache.txt CMakeFiles

regards,

Samuel Mesa.

2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hi Samuel,

Thank you for the reply..!!!  I'm getting the following error : CMake Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

If I use CMake GUI I get permission error. I've placed the folder in /usr/local/src.     What should I do ? 

Stefanos


Στις 3:12 π.μ. Πέμπτη, 6 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Hi Stefanos, the next is the instructions for compiling Mapserver in Arch Linux [1]:

1. cd to src mapserver
2. rm CMakeCache.txt CMakeFiles
3. mkdir build
4. cd build
5. compiling as:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARIES=/usr/lib/python2.7 \
-DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ -DWITH_CAIRO=ON \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CSHARP=OFF \ -DWITH_CURL=ON \ -DWITH_EXEMPI=OFF \ -DWITH_FCGI=ON \ -DWITH_FRIBIDI=ON \ -DWITH_GD=OFF \ -DWITH_GDAL=ON \ -DWITH_GENERIC_NINT=OFF \ -DWITH_GEOS=ON \ -DWITH_GIF=ON \ -DWITH_ICONV=ON \ -DWITH_JAVA=OFF \ -DWITH_KML=ON \ -DWITH_LIBXML2=ON \ -DWITH_MSSQL2008=OFF \ -DWITH_MYSQL=OFF \ -DWITH_OGR=ON \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_ORACLE_PLUGIN=OFF \ -DWITH_PERL=OFF \ -DWITH_PHP=ON \ -DWITH_POINT_Z_M=OFF \ -DWITH_POSTGIS=ON \ -DWITH_PROJ=ON \ -DWITH_PYTHON=ON \ -DWITH_RSVG=OFF \ -DWITH_RUBY=OFF \ -DWITH_SDE=OFF \ -DWITH_SDE_PLUGIN=OFF \ -DWITH_SOS=ON \ -DWITH_SVGCAIRO=ON \ -DWITH_THREAD_SAFETY=ON \ -DWITH_WCS=ON \ -DWITH_WFS=ON \ -DWITH_WMS=ON \ -DWITH_XMLMAPFILE=OFF \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
6. make clean &&  make
7. make install

regards,

Samuel Mesa.

2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hello.!!

I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ?  I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy.

Thanks

Stefanos

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^





--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^









--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Samuel Mesa | 10 Nov 20:51 2014
Picon

Re: Σχετ: Σχετ: Installation of Mapserver 6.4.1

I understand that the Ubuntu repositories are compatible with Linux Mint. Have you tried the following solution to install MapServer binaries from UbuntuGIS?:



For Mapserver:

sudo aptitude install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo aptitude update
sudo aptitude install mapserver


El lun, 10 de nov 2014 a las 2:40 PM, Stefanos Anastasiou <emperor_stef <at> yahoo.gr> escribió:
Hi Samuel,

I'm using Linux Mint 17. Indeed I installed all libraries through the repos and I presume it took care of the dependencies. And that was my initial qusestion actually: if i should use the synaptic or compile it from scratch. Probably the problem is in the paths of the libraries that cmake can't find them but I think the paths are the default paths that the synaptic installed them.

Stefanos


Στις 9:34 μ.μ. Δευτέρα, 10 Νοεμβρίου 2014, ο/η Samuel Mesa <samuelmesa <at> gmail.com> έγραψε:


What distribution of Linux you are using Stefanos?. I think you could use a package manager to install dependencies and Mapserver.

El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou <emperor_stef <at> yahoo.gr> escribió:
Hello Samuel..!!!

No I'm getting the following error: 

CMake Error at CMakeLists.txt:49 (message):
  GEOS library/component/dependency could not be found.

-- Could NOT find SVG (missing:  SVG_LIBRARY SVG_INCLUDE_DIR) 
-- Could NOT find SVGCAIRO (missing:  SVGCAIRO_LIBRARY SVGCAIRO_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:49 (message):
  SVGCAIRO library/component/dependency could not be found.

 Could NOT find GDAL (missing:  GDAL_LIBRARY GDAL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:567 (message):
  GDAL library could not be found and is needed for OGR support.

Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version "7.35.0") 
CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WMS support requires GDAL support, however GDAL support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WFS support requires OGR support, however OGR support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  WFS support requires OGR support, however OGR support has been disabled.


CMake Error at CMakeLists.txt:60 (message):
  KML support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  SOS support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:49 (message):
  GIF library/component/dependency could not be found.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)



Does is have to do with the compiling of the libraries?  I installed all libraries and their .dev through the repositories. Does it have to do anything? 

Thanks a lot.

Stefanos







Στις 10:10 μ.μ. Σάββατο, 8 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Try again decompressing the src and ignore step 2:

2. rm CMakeCache.txt CMakeFiles

regards,

Samuel Mesa.

2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hi Samuel,

Thank you for the reply..!!!  I'm getting the following error : CMake Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

If I use CMake GUI I get permission error. I've placed the folder in /usr/local/src.     What should I do ? 

Stefanos


Στις 3:12 π.μ. Πέμπτη, 6 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Hi Stefanos, the next is the instructions for compiling Mapserver in Arch Linux [1]:

1. cd to src mapserver
2. rm CMakeCache.txt CMakeFiles
3. mkdir build
4. cd build
5. compiling as:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARIES=/usr/lib/python2.7 \
-DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ -DWITH_CAIRO=ON \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CSHARP=OFF \ -DWITH_CURL=ON \ -DWITH_EXEMPI=OFF \ -DWITH_FCGI=ON \ -DWITH_FRIBIDI=ON \ -DWITH_GD=OFF \ -DWITH_GDAL=ON \ -DWITH_GENERIC_NINT=OFF \ -DWITH_GEOS=ON \ -DWITH_GIF=ON \ -DWITH_ICONV=ON \ -DWITH_JAVA=OFF \ -DWITH_KML=ON \ -DWITH_LIBXML2=ON \ -DWITH_MSSQL2008=OFF \ -DWITH_MYSQL=OFF \ -DWITH_OGR=ON \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_ORACLE_PLUGIN=OFF \ -DWITH_PERL=OFF \ -DWITH_PHP=ON \ -DWITH_POINT_Z_M=OFF \ -DWITH_POSTGIS=ON \ -DWITH_PROJ=ON \ -DWITH_PYTHON=ON \ -DWITH_RSVG=OFF \ -DWITH_RUBY=OFF \ -DWITH_SDE=OFF \ -DWITH_SDE_PLUGIN=OFF \ -DWITH_SOS=ON \ -DWITH_SVGCAIRO=ON \ -DWITH_THREAD_SAFETY=ON \ -DWITH_WCS=ON \ -DWITH_WFS=ON \ -DWITH_WMS=ON \ -DWITH_XMLMAPFILE=OFF \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
6. make clean &&  make
7. make install

regards,

Samuel Mesa.

2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hello.!!

I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ?  I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy.

Thanks

Stefanos

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^





--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^




_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Samuel Mesa | 10 Nov 20:34 2014
Picon

Re: Σχετ: Installation of Mapserver 6.4.1

What distribution of Linux you are using Stefanos?. I think you could use a package manager to install dependencies and Mapserver.

El lun, 10 de nov 2014 a las 1:04 PM, Stefanos Anastasiou <emperor_stef <at> yahoo.gr> escribió:

Hello Samuel..!!!

No I'm getting the following error: 

CMake Error at CMakeLists.txt:49 (message):
  GEOS library/component/dependency could not be found.

-- Could NOT find SVG (missing:  SVG_LIBRARY SVG_INCLUDE_DIR) 
-- Could NOT find SVGCAIRO (missing:  SVGCAIRO_LIBRARY SVGCAIRO_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:49 (message):
  SVGCAIRO library/component/dependency could not be found.

 Could NOT find GDAL (missing:  GDAL_LIBRARY GDAL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:567 (message):
  GDAL library could not be found and is needed for OGR support.

Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version "7.35.0") 
CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WMS support requires GDAL support, however GDAL support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  CLIENT_WFS support requires OGR support, however OGR support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  WFS support requires OGR support, however OGR support has been disabled.


CMake Error at CMakeLists.txt:60 (message):
  KML support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:60 (message):
  SOS support requires LIBXML2 support, however LIBXML2 support has been
  disabled.

CMake Error at CMakeLists.txt:49 (message):
  GIF library/component/dependency could not be found.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)



Does is have to do with the compiling of the libraries?  I installed all libraries and their .dev through the repositories. Does it have to do anything? 

Thanks a lot.

Stefanos







Στις 10:10 μ.μ. Σάββατο, 8 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Try again decompressing the src and ignore step 2:

2. rm CMakeCache.txt CMakeFiles

regards,

Samuel Mesa.

2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hi Samuel,

Thank you for the reply..!!!  I'm getting the following error : CMake Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

If I use CMake GUI I get permission error. I've placed the folder in /usr/local/src.     What should I do ? 

Stefanos


Στις 3:12 π.μ. Πέμπτη, 6 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Hi Stefanos, the next is the instructions for compiling Mapserver in Arch Linux [1]:

1. cd to src mapserver
2. rm CMakeCache.txt CMakeFiles
3. mkdir build
4. cd build
5. compiling as:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARIES=/usr/lib/python2.7 \
-DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ -DWITH_CAIRO=ON \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CSHARP=OFF \ -DWITH_CURL=ON \ -DWITH_EXEMPI=OFF \ -DWITH_FCGI=ON \ -DWITH_FRIBIDI=ON \ -DWITH_GD=OFF \ -DWITH_GDAL=ON \ -DWITH_GENERIC_NINT=OFF \ -DWITH_GEOS=ON \ -DWITH_GIF=ON \ -DWITH_ICONV=ON \ -DWITH_JAVA=OFF \ -DWITH_KML=ON \ -DWITH_LIBXML2=ON \ -DWITH_MSSQL2008=OFF \ -DWITH_MYSQL=OFF \ -DWITH_OGR=ON \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_ORACLE_PLUGIN=OFF \ -DWITH_PERL=OFF \ -DWITH_PHP=ON \ -DWITH_POINT_Z_M=OFF \ -DWITH_POSTGIS=ON \ -DWITH_PROJ=ON \ -DWITH_PYTHON=ON \ -DWITH_RSVG=OFF \ -DWITH_RUBY=OFF \ -DWITH_SDE=OFF \ -DWITH_SDE_PLUGIN=OFF \ -DWITH_SOS=ON \ -DWITH_SVGCAIRO=ON \ -DWITH_THREAD_SAFETY=ON \ -DWITH_WCS=ON \ -DWITH_WFS=ON \ -DWITH_WMS=ON \ -DWITH_XMLMAPFILE=OFF \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
6. make clean &&  make
7. make install

regards,

Samuel Mesa.

2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hello.!!

I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ?  I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy.

Thanks

Stefanos

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^





--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^


_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
samuelmesa@gmail.com | 8 Nov 21:10 2014
Picon

Re: Installation of Mapserver 6.4.1

Try again decompressing the src and ignore step 2:

2. rm CMakeCache.txt CMakeFiles

regards,

Samuel Mesa.

2014-11-08 14:31 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hi Samuel,

Thank you for the reply..!!!  I'm getting the following error : CMake Error: The source directory "/usr/local/src/mapserver-6.4.1/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

If I use CMake GUI I get permission error. I've placed the folder in /usr/local/src.     What should I do ? 

Stefanos


Στις 3:12 π.μ. Πέμπτη, 6 Νοεμβρίου 2014, ο/η "samuelmesa <at> gmail.com" <samuelmesa <at> gmail.com> έγραψε:


Hi Stefanos, the next is the instructions for compiling Mapserver in Arch Linux [1]:

1. cd to src mapserver
2. rm CMakeCache.txt CMakeFiles
3. mkdir build
4. cd build
5. compiling as:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_LIBRARIES=/usr/lib/python2.7 \
-DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ -DWITH_CAIRO=ON \ -DWITH_CLIENT_WFS=ON \ -DWITH_CLIENT_WMS=ON \ -DWITH_CSHARP=OFF \ -DWITH_CURL=ON \ -DWITH_EXEMPI=OFF \ -DWITH_FCGI=ON \ -DWITH_FRIBIDI=ON \ -DWITH_GD=OFF \ -DWITH_GDAL=ON \ -DWITH_GENERIC_NINT=OFF \ -DWITH_GEOS=ON \ -DWITH_GIF=ON \ -DWITH_ICONV=ON \ -DWITH_JAVA=OFF \ -DWITH_KML=ON \ -DWITH_LIBXML2=ON \ -DWITH_MSSQL2008=OFF \ -DWITH_MYSQL=OFF \ -DWITH_OGR=ON \ -DWITH_ORACLESPATIAL=OFF \ -DWITH_ORACLE_PLUGIN=OFF \ -DWITH_PERL=OFF \ -DWITH_PHP=ON \ -DWITH_POINT_Z_M=OFF \ -DWITH_POSTGIS=ON \ -DWITH_PROJ=ON \ -DWITH_PYTHON=ON \ -DWITH_RSVG=OFF \ -DWITH_RUBY=OFF \ -DWITH_SDE=OFF \ -DWITH_SDE_PLUGIN=OFF \ -DWITH_SOS=ON \ -DWITH_SVGCAIRO=ON \ -DWITH_THREAD_SAFETY=ON \ -DWITH_WCS=ON \ -DWITH_WFS=ON \ -DWITH_WMS=ON \ -DWITH_XMLMAPFILE=OFF \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
6. make clean &&  make
7. make install

regards,

Samuel Mesa.

2014-11-04 17:44 GMT-05:00 Stefanos Anastasiou <emperor_stef <at> yahoo.gr>:
Hello.!!

I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ?  I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy.

Thanks

Stefanos

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^





--
---
    .~.
   / v \
  //    \\
 /(      )\
   ^`~'^
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
scott159 | 6 Nov 07:13 2014
Picon

Install MapCache


I'm trying to install the mapcache. I've downloaded the zip file from
github but i got an error when i was installing :

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for symlink
-- Looking for symlink - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49") 
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.26.0") 
-- Found APR: /usr/lib/libapr-1.so  
-- Found APU: /usr/lib/libaprutil-1.so  
-- Looking for apr_memcache_hash
-- Looking for apr_memcache_hash - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'pixman'
--   package 'pixman' not found
-- checking for module 'pixman-1'
--   found pixman-1, version 0.26.0
-- Found PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so  
-- Found PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so  
-- Found SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so  
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "3.9.6") 
-- * Configured options for the mapcache library
--  * Mandatory components
--   * png: /usr/lib/x86_64-linux-gnu/libpng.so
--   * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
--   * Curl: /usr/lib/x86_64-linux-gnu/libcurl.so
--   * Apr: /usr/lib/libapr-1.so
--  * Optional components
--   * PIXMAN: /usr/lib/x86_64-linux-gnu/libpixman-1.so
--   * SQLITE: /usr/lib/x86_64-linux-gnu/libsqlite3.so
--   * Berkeley DB: disabled
--   * Memcache: /usr/lib/libaprutil-1.so
--   * TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so
--   * GeoTIFF: disabled
--   * Experimental TIFF write support: disabled
--   * PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so
--   * Experimental mapserver support: disabled
-- Found GDAL: /usr/lib/libgdal.so  
-- Found GEOS: /usr/lib/libgeos_c.so  
-- * Seeder Configuration Options:
--   * GEOS: /usr/lib/libgeos_c.so
--   * OGR: /usr/lib/libgdal.so
-- Found FCGI: /usr/lib/libfcgi.so  
-- * CGI Configuration Options:
--   * FastCGI: /usr/lib/libfcgi.so
-- Found APACHE: /usr/include/apache2  
-- * Apache Module support status:
--   * Mapcache Version String: mod_mapcache/1.2.1
--   * Module will be installed to : Use of uninitialized value $includedir in concatenation (.) or string at
(eval 9) line 1.
/usr/lib/apache2/modules
-- Configuring done
-- Generating done
-- Build files have been written to: /var/www/mapcache-1-2-1/build
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Jelmer Baas | 5 Nov 16:30 2014
Picon

Annotation label with styleitem auto uses bitmap font

Hi all,

I have some converted AutoCAD files in MapInfo format that I'm showing via MapScript (up-to-date, via apt
get). To show all components, each TAB file has both a 'line' layer (styleitem "auto") and an 'annotation'
layer (also set to styleitem "auto"). This has worked fine for ages, but there are two issues:

- Special characters aren't displayed
- We now have a new file, which has an odd font size

Because of this new file, I'm beging flooded with this message:
msGetRasterTextBBox(): General error message. selected renderer does not support bitmap font size 13

Both issues obviously mean MapServer is using its built-in bitmap font. Is there a way to override this?
I've tried a few options already:
- Switching to PNG instead of GIF output format
- Setting class.label properties; this has been removed in 6.2
- Creating a new labelObj, and adding it via class.addLabel; this manages to crash my python script (not
getting caught in try/catch) without leaving any logs when styleitem is still set to "auto"
- Adding a default and Arial entry in my fontlist file. This seems to be ignored.

Furthermore, I can't seem to get ANY logging from MapScript. I've tried setting debug to MS_TRUE in the
layer, mapfile, class, etc. Log file is being created (in /tmp) but remains empty.

Am I doing something wrong? Missing something? Any help would be greatly appreciated! 

Regards,
Jelmer

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Gmane