[mapserver-users] Hi

2012-02-23 Thread Özgür Arslan

My name is Ozgur and I would like to be in mailing list so I can send mails. My 
email address is below:

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


[mapserver-users] Help

2012-02-23 Thread Özgür Arslan

Hi Everyone,
I am new in mapserver and I need help. Please help!

If I want people to access files that are on my computer by my Web Server what 
would I add to the httpd.conf file in order for this to happen given the 
following information?

- The files are in c:\Internet_ Mapping\webfiles

-  You want people to access them by entering 
http://servername/contentfiles/index.html into their web browser
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserver / gdal draw failure

2012-02-23 Thread Aaron Sims
We are using an openlayers frontend to utilize mapserver via 
phpmapscript to read some colorized tif files we have made, and then 
render a png file on a webpage via gdal.This process seems to work about 
95% of the time, The other 5%, we are getting no images and errors 
kicked out to the httpd error log. Based on the errors below, it seems 
to be occurring when mapserver issues the $map-draw() command, and 
kicks out some GDAL errors.When this happens, there is no png image that 
gets created. Ive included the following directives in the map file to 
help with debugging CONFIG CPL_DEBUG ON, andCONFIG MS_ERRORFILE = 
/home/logfile

Any help on what may be happening here?

*When it succeeds I see a message like this in the httpd error logs:***
GDAL: GDALOpen(/home/cache/2012021913-2012022013.tif, 
this=0x2b5e6a5abda0) succeeds as GTiff


*When it fails, I see a string of errors, such as:***
GDAL: GDALClose(/home/cache/2012021913-2012022013.tif, this=0x2b5e6fd12890)
[Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP 
Warning:[MapServer Error]: msDrawMap(): Failed to draw layer named 
'map_data'.\n in /home/www/testmscross.php on line 231
[Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP 
Warning:[MapServer Error]: GetBlockRef failed at X block offset 0, Y 
block offset 0: GDALDatasetRasterIO() failed: drawGDAL()\n in 
/home/www/testmscross.php on line 231
[Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP 
Warning:[MapServer Error]: msDrawMap(): Failed to draw layer named 
'map_data'.\n in /home/www/testmscross.php on line 231
[Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP 
Warning:[MapServer Error]: GetBlockRef failed at X block offset 0, Y 
block offset 0: GDALDatasetRasterIO() failed: drawGDAL()\n in 
/home/www/testmscross.php on line 231
[Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal 
error:Call to a member function saveImage() on a non-object in 
/home/www/testmscross.php on line 270


*gdalinfo on the tiff files yields**:*
Driver: GTiff/GeoTIFFC
Files: /home/cache/2012021913-2012022013.tif
Size is 181, 132
Coordinate System is `'
Origin = (2172891.87999888241,-5178906.3374506)
Pixel Size = (4772.703535911604376,-4764.676212121210483)
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left( 2172891.880,-5178906.330)
Lower Left( 2172891.880,-5807843.590)
Upper Right ( 3036751.220,-5178906.330)
Lower Right ( 3036751.220,-5807843.590)
Center( 2604821.550,-5493374.960)
Band 1 Block=181x15 Type=Byte, ColorInterp=Red
NoData Value=-1
Band 2 Block=181x15 Type=Byte, ColorInterp=Green
NoData Value=-1
Band 3 Block=181x15 Type=Byte, ColorInterp=Blue
NoData Value=-1

*and mapserv -v yields:***
MapServer version 5.6.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 
INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE


*Mapserver compiled with:***
./configure --with-zlib --with-png --with-jpeg --with-gd --with-proj 
--with-threads --with-ogr=/usr/local/gdal-config 
--with-gdal=/usr/local/gdal-config --with-tiff --with-mygis --with-wfs 
--with-wcs --with-wmsclient --with-wfsclient 
--with-httpd=/usr/sbin/httpd --with-php=/usr/include/php


*gdal information:***
[root]#./gdal-config --version
1.7.3

[root]# ./gdal-config --dep-libs --version
-L/usr/local/lib -lgeos_c -L/usr/lib -lsqlite3 -L/usr/lib64 
-L/usr/lib64/lib -lodbc -lodbcinst -L/usr/lib64 -L/usr/lib64/lib -lgif 
-L/usr/lib64 -L/usr/lib64/lib -ljpeg -L/usr/lib64/lib -ltiff 
-L/usr/lib64 -L/usr/lib64/lib -lpng -L/usr/local/ -L/usr/local//lib 
-lnetcdf -L/usr/local/lib -L/usr/local/lib/lib -lcfitsio -lz 
-L/usr/lib64/ -L/usr/lib64//lib -lm -lrt -ldl -L/usr/kerberos/lib64 
-lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl 
-lcrypto -lz -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt 
-lnsl -lm -L/usr/lib64 -lssl --lcrypto


[root]# ./gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem 
jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis 
rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar 
pds adrg coasp tsx terragen blx msgn til r northwood saga wcs wms grib 
bsb gif jpeg png netcdf pcraster fits rik rasterlite
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Trouble querying PostGIS layer

2012-02-23 Thread Bistrais, Bob
I'm having trouble doing an attribute query on a PostGIS layer.  The
data in this layer was formerly in shapefile, and the query worked fine
with it.  But with the PostGIS layer, I get no results.

 

The PHP MapScript query uses a setFilter on the layer, then does a
queryByRect, again, with no results.

 

The problem appears to be connected to the extent and/or projection.
With the original shapefile, I can echo back the extent rectangle:

[minx] = 342764.988407 [miny] = 4759515.50711 [maxx] = 647042.41629
[maxy] = 5245337.46493 )

 

--Which is what I'd expect.  But with the PostGIS layer, if I echo back
the extent, here is what I get:

 

[minx] = -3.40282346639E+38 [miny] = -3.40282346639E+38 [maxx] =
3.40282346639E+38 [maxy] = 3.40282346639E+38

 

The PostGIS layer is set for the proper SRID, and the correct EPSG and
extent are in the map file.

 

What is going wrong here?

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


Re: [mapserver-users] mapserver / gdal draw failure

2012-02-23 Thread Frank Warmerdam
On Thu, Feb 23, 2012 at 7:05 AM, Aaron Sims aps...@ncsu.edu wrote:
 gdalinfo on the tiff files yields:

Aaron,

You might want to try:

  gdalinfo -mm /home/cache/2012021913-2012022013.tif

This will force actual reading of the imagery blocks to compute
a min/max for each band and will help determine if there is any
problem with the imagery.  I don't really understand your overall
process well, but I am suspicious there might be an issue where
whatever is writing the .tif file is not quite finished flushing it out
before you are trying to read it with mapserver.  The error is what
I might expect from reading an unflushed TIFF file.

Best regards,
-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Help

2012-02-23 Thread Matt McClelland
Hi

I am not exactly sure, but it sounds like this is not a mapserver question
but an apache?? question about how to make raw files downloadable.

If so head to an forum about your webserver, if it is apache then then you
are probably looking for something like this


VirtualHost 123.123.321.01
DocumentRoot c:\\Internet_ Mapping
   ServerName  www.example.com
/VirtualHost

then www.example.com/webfiles/index.html

should work

Matt  :)



On Thu, Feb 23, 2012 at 8:51 PM, Özgür Arslan ozgurarsla...@hotmail.comwrote:

  Hi Everyone,
 I am new in mapserver and I need help. Please help!

 If I want people to access files that are on my computer by my Web Server
 what would I add to the httpd.conf file in order for this to happen given
 the following information?

 - The files are in c:\Internet_ Mapping\webfiles

 -  You want people to access them by entering
 http://servername/contentfiles/index.html into their web browser

 ___
 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