Re: [mapserver-users] Any thoughts on combining 3 regional maps into one?
-- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com De: Stephen Woodbridge wood...@swoodbridge.com Para: mapserver-users mapserver-users@lists.osgeo.org Enviado: Miércoles, 2 de octubre, 2013 10:52:51 Asunto: [mapserver-users] Any thoughts on combining 3 regional maps into one? Hi all, I have 3 regional mapfiles for US, Canada and Mexico and I want to create a single North America map. Since the data comes from separate vendors and they refresh on different cycles, I'm trying to figure out the best way to structure this in a mapfile. I also need to maintain each region as a separate mapfile. (I'm ignoring issues like data alignment over borders.) The reginal mapfile data is structure like: .../us/data/shapefiles .../us/us.map .../mx/data/shapefiles .../mx/mx.map .../ca/data/shapefiles .../ca/ca.map The shapepath for each mapfile is set to the local data directory. What I would like to avoid is having to change all the paths in the mapfiles to accomodate a change like: .../na/us/data/ .../na/mx/data/ .../na/ca/data/ .../na/na.map It would be cool if I can change the shapepath in the middle of the mapfile so layers beyond the change would use the new shapepath, but I suspect that will not work. So it looks like my options are: 1. rewrite all the mapfile data pathes as I combine them into one new mapfile and maintain two copies, regional and na versions. 2. maybe create a new mapfile that loads each of the regions as a WMS client and overlays the adjacent regions. This will get served via mapcache so that might add some options for tile assembly. 3. other ideas This can be done with postgis!!! create a database with all layers you have, then create views joining the similar layers, and in your map LAYER NAME states STATUS ON DATA the_geom from (select * from view_from_postgis) as foo using unique gid using srid=4326 TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION user=xyz password=* dbname=postgis_database_name host=127.0.0.1 port=5432 UNITS METERS SIZEUNITS PIXELS LABELITEM name LABELMINSCALE 75 TRANSFORM TRUE TEMPLATE void METADATA LAYER_ENCODING UTF-8 END projection init=epsg:32614 end CLASS NAME estados LABEL TYPE TRUETYPE FONT trebuchet SIZE 12 POSITION cc FORCE true OUTLINECOLOR 255 255 255 COLOR 0 0 255 ANTIALIAS TRUE END STYLE OUTLINECOLOR 130 131 140 BACKGROUNDCOLOR 0 0 0 ANTIALIAS TRUE END END END Thanks, -Steve ___ 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] Compiling mapserver 6.4
Hello all Says Fridibi is incompatible? Which version is compatible? I have 0.19.2 Linking CXX shared library libmapserver.so /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libfribidi.so when searching for -lfribidi /usr/bin/ld: skipping incompatible /usr/lib/libfribidi.so when searching for -lfribidi /usr/bin/ld: cannot find -lfribidi collect2: ld devolvió el estado de salida 1 make[2]: *** [libmapserver.so.6.4.0] Error 1 make[1]: *** [CMakeFiles/mapserver.dir/all] Error 2 make: *** [all] Error 2 Thanks. Please add this lines to: FindPostgreSQL.cmake Not all of us use Ubuntu :) # - Find PostgreSQL # Find the PostgreSQL includes and client library # This module defines # POSTGRESQL_INCLUDE_DIR, where to find POSTGRESQL.h # POSTGRESQL_LIBRARY, the libraries needed to use POSTGRESQL. # POSTGRESQL_FOUND, If false, do not try to use PostgreSQL. # # Copyright (c) 2013 Thomas Bonfort # find_path(POSTGRESQL_INCLUDE_DIR libpq-fe.h /usr/include/server /usr/include/postgresql /usr/include/pgsql/server /usr/local/pgsql/include /usr/local/include/pgsql/server /usr/include/postgresql/server /usr/include/postgresql/*/server /usr/local/include/postgresql/server /usr/local/include/postgresql/*/server $ENV{ProgramFiles}/PostgreSQL/*/include/server $ENV{SystemDrive}/PostgreSQL/*/include/server ) find_library(POSTGRESQL_LIBRARY NAMES pq libpq PATHS /usr/lib /usr/local/pgsql/lib /usr/local/lib /usr/lib/postgresql /usr/lib64 /usr/local/lib64 /usr/lib64/postgresql $ENV{ProgramFiles}/PostgreSQL/*/lib/ms $ENV{SystemDrive}/PostgreSQL/*/lib/ms ) set(POSTGRESQL_INCLUDE_DIRS ${POSTGRESQL_INCLUDE_DIR}) set(POSTGRESQL_LIBRARIES ${POSTGRESQL_LIBRARY}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(POSTGRESQL DEFAULT_MSG POSTGRESQL_LIBRARY POSTGRESQL_INCLUDE_DIR) mark_as_advanced(POSTGRESQL_LIBRARY POSTGRESQL_INCLUDE_DIR) Thanks. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8)
--- Frank Warmerdam [EMAIL PROTECTED] escribió: Ningchuan Xiao wrote: Dear All, I was wondering if anyone could please help me solve this problem. I compiled MapServer 5.0.2 on Fedora 7 and 8. I installed all required libraries/packages. If I configure MapServer without any options (i.e., just use ./configure), the resulting file mapserv works fine if I copy it to the cgi-bin folder. However, if I configure it using any other options (such as --with-proj, with proj4 successfully installed), I can compile MapServer with no problem and can run mapserv -v. However, if I copy it to the cgi-bin folder, it will not work. All I get is a blank page in the web browser with no error messages. Ningchuan, I would guess this is because the extra options have shared libraries in places that aren't searched under apache. For instance, if libproj.so is installed in /usr/local/lib and you haven't managed that properly via ldconfig or LD_LIBRARY_PATH. Best regards, -- create a file named mapserver.conf in /etc/ld.so.conf.d/ and add the next lines: /path/to/proj4/libs /path/to/gdal/libs /path/to/geos/libs mine is /usr/local/lib /usr/local/pgsql/lib because i compiled from source postgresql+postgis, gdal, proj4 and geos If you will use php-mapscript install #yum -y install php-devel Use ./configure --help for more parameters Nahum. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ¡Capacidad ilimitada de almacenamiento en tu correo! No te preocupes más por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there?
--- Stephen Woodbridge [EMAIL PROTECTED] escribió: Hi, If you are a Fedora fc8 64 bit mapserver user (or close to that), can you please contact me off list. I'm having mapserver runtime issues and just need to compare notes and see what your experiences have been. Many thanks in advance, -Steve Woodbridge ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users I have mapserver installed on fc8 x86_64 with no problems. I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. All other software was from fedora repositories. I have 2 installations one with intel and the other with AMD both fc8 64. Nahum. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ¡Capacidad ilimitada de almacenamiento en tu correo! No te preocupes más por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users