Re: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-29 Thread Dan Little
not that this answers the problem... but is there any reason this cannot be 
exported to a shapefile and then served with mapserver?


- Original Message 
 From: Chuck Jungmann ch...@cpjj.net
 To: Stephen Woodbridge wood...@swoodbridge.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Fri, November 27, 2009 5:17:03 PM
 Subject: Re: [mapserver-users] PGeo (Personal Geodatabases) options under 
 Linux
 
 I've read that page several times. I have also built MDBTools, unixODBC
 and GDAL from CVS sources and applied patches, etc, so I could try to
 trace execution to the errors.  What I've found are instances where the
 code ultimately ends up in an empty function that simply returns
 SQL_SUCCESS or SQL_OK or whatever without doing anything.  That seems to
 be why MDBTools has trouble with SELECT COUNT(*) FROM xxx and why it
 can't find a primary key.
 
 While I can see that these database features are not working, it's also
 possible that they are not necessary.  I'm wondering if anyone has had
 success, either despite these errors, or by not encountering these
 errors, in which case I may find some success if I can duplicate their
 environment.
 
 Thanks for the quick reply,
 Chuck Jungmann
 
 On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:
  Chuck Jungmann wrote:
   I have a Personal Geodatabase (PGeo) from which I would like to display
   layers in MapServer on Ubuntu 9.04.  I have been fighting with MDBTools,
   unixODBC, and GDAL for what seems like forever.  The ogrinfo and isql
   fail with Segmentation Faults.
   
   I have two questions:
   
   1. Has anyone successfully used a PGeo file to display maps on MapServer
   under Linux?  Perhaps my efforts were doomed from the start.
   
   2. Since GDAL is using ODBC to read the MDB file, would using ODBC to
   access MySQL be a transparent replacement, assuming I copy all of the
   tables and indexes from the PGeo file to MySQL?  Has anyone done this?
   I don't want to waste a lot of time on this if it's another dead end.
  
  Chuck,
  
  There was a recent thread related to these problems on the GDAL list. 
  Frank posted the follow link and commented that there are also probable 
  some open bugs. Evidently, the mdbtools are not well supported and buggy 
  which makes using them problematic.
  
  http://trac.osgeo.org/gdal/wiki/mdbtools
  
  Check out this thread on the gdal-dev archives:
  [gdal-dev] mdb to shape conversion: no geometry exported
  
  -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] map_web_template

2009-11-29 Thread Lee


Greetings,

I have one mapfile and use many template files to read from the mapfile. In 
Mapserver 4, I could use templatepattern '.*'
in the mapfile, and from an html form send a variable like this;
input type='hidden' name='map_web_template' value='/topo/topo1.htm'
In Mapserver 5 it doesn't seem to work ( loadWeb(): Unknown identifier ).
Is it possible to pass the name of an HTML template in Mapserver 5 using an 
HTML form? And if it is, then how?
Thanks

Lee


  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-29 Thread Stephen Woodbridge

Dan Little wrote:

not that this answers the problem... but is there any reason this
cannot be exported to a shapefile and then served with mapserver?


Good question. I think you would have to do that on a Windows box 
because the MDBTools on Linux is just not up to the task. If you could 
export it on Linux then you could also probably serve it directly via 
mapserver and ogr.


-Steve W


- Original Message 

From: Chuck Jungmann ch...@cpjj.net To: Stephen Woodbridge
wood...@swoodbridge.com Cc: mapserver-users@lists.osgeo.org Sent:
Fri, November 27, 2009 5:17:03 PM Subject: Re: [mapserver-users]
PGeo (Personal Geodatabases) options under Linux

I've read that page several times. I have also built MDBTools,
unixODBC and GDAL from CVS sources and applied patches, etc, so I
could try to trace execution to the errors.  What I've found are
instances where the code ultimately ends up in an empty function
that simply returns SQL_SUCCESS or SQL_OK or whatever without doing
anything.  That seems to be why MDBTools has trouble with SELECT
COUNT(*) FROM xxx and why it can't find a primary key.

While I can see that these database features are not working, it's
also possible that they are not necessary.  I'm wondering if anyone
has had success, either despite these errors, or by not
encountering these errors, in which case I may find some success if
I can duplicate their environment.

Thanks for the quick reply, Chuck Jungmann

On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:

Chuck Jungmann wrote:

I have a Personal Geodatabase (PGeo) from which I would like to
display layers in MapServer on Ubuntu 9.04.  I have been
fighting with MDBTools, unixODBC, and GDAL for what seems like
forever.  The ogrinfo and isql fail with Segmentation Faults.

I have two questions:

1. Has anyone successfully used a PGeo file to display maps on
MapServer under Linux?  Perhaps my efforts were doomed from the
start.

2. Since GDAL is using ODBC to read the MDB file, would using
ODBC to access MySQL be a transparent replacement, assuming I
copy all of the tables and indexes from the PGeo file to MySQL?
Has anyone done this? I don't want to waste a lot of time on
this if it's another dead end.

Chuck,

There was a recent thread related to these problems on the GDAL
list. Frank posted the follow link and commented that there are
also probable some open bugs. Evidently, the mdbtools are not
well supported and buggy which makes using them problematic.

http://trac.osgeo.org/gdal/wiki/mdbtools

Check out this thread on the gdal-dev archives: [gdal-dev] mdb to
shape conversion: no geometry exported

-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] Mapserver 5.3.2 configure problems

2009-11-29 Thread Matthew Pettis
configure errors

Trying to make configure work for mapserver-5.4.2.  I think I'm getting
tripped up on libgd.  Here's the config I'm using:

sudo ./configure --with-freetype=/usr/ --with-gd=/usr/

I have libraries:
/usr/lib/libfreetype.so.6.3.16
/usr/lib/libgd.so.2.0.0
/usr/lib/libgd.so.2
/usr/lib/libgdbm.so.3.0.0

when I run configure, I get the following messages:



m...@votevis:~/dwnld/mapserver-5.4.2$ sudo ./configure --with-freetype=/usr/
--with-gd=/usr/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strrstr... no
checking for strcasestr... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '5.4.2'
checking if pkg-config path is provided... checking for pkg-config... no
couldn't find pkg-config in default path. Please specify full path to
pkg-config if needed
configure: checking where FreeType 2.x is installed...
checking for FT_Init_FreeType in -lfreetype... no
freetype-config or libfreetype cannot be found, possibly needed for
GD
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... no
Zlib (libz) library cannot be found, possibly needed for GD
configure: checking where PNG is installed...
checking for png_init_io in -lpng... no
PNG (libpng) library cannot be found, possibly needed for GD
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... no
libjpeg not found. JPEG support not included, possibly needed for
GD.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... no
XPM (libXpm) library cannot be found, possibly needed for GD
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
using libiconv from system libs.
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... no
configure: checking whether GD needs libiconv...
checking for gdFontCacheSetup in -lgd... no
configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/.  Make
sure GD 2.0.16 or higher is compiled before calling configure. You may also
get this error if you didn't specify the appropriate location for one of
GD's dependencies (freetype, libpng, libjpeg or libiconv).





Any ideas why it doesn't find freetype, when I tell it where it can find
freetype?  I'm not that knowledgeable on compiling/configuring...
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users