[mapserver-users] Serving Shapefiles via NFS, Protocol Version?

2009-07-09 Thread Nolte, Tim
I'm looking to put our map data on a storage device using NFS. I'm
curious if there are any NFS settings to tweak for best performance and
if I should be using NFSv3 or NFSv4?

- Tim


Timothy J Nolte - tno...@ilpcs.com
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:616-706-2438
Fax:616-554-6484
Web: www.ipcswirelessinc.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver or MS4W package on Windows x64

2009-07-09 Thread John Callahan
I started working with the x64 binaries from Tamas' site at 
http://vbkto.dyndns.org:1280/sdk/Default.aspx.  MSVC2005 (Win64) seemed 
most appropriate for me.  However, I did not see php mapscript support.  
Is that true?  I did see mapscript for java, python, and csharp. 

Can php mapscript run at all with x64 versions of Apache/PHP and/or 
Mapserver?   If not, then I'll have to give up x64 or PHP.  Bummer.



I've also been reading that I should run Mapserver in fastcgi mode, in 
either Win32 or Win64 versions. Does that mean to use PHP mapscript that 
I need to run PHP in cgi/fastcgi mode and NOT as an apache module?



Thanks for any advice.  It's a bit confusing.

- John

**
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**



John Callahan wrote:
I have an existing server running x64 Windows Server 2008.  I've been 
running x64 version sof Apache 2.2.10 and PHP 5.2.5 as downloaded and 
described here: 
http://www.elxis.org/guides/developers-guides/64bit-apache-php-mysql-windows.html   
(PHP is currently running as an apache module)



My question is could I use MS4W and follow the instructions under 
Installing for other Environments 
(http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#j-installing-the-ms4w-mapserver-binaries-in-other-environments) 



Or, should I install the pieces (mapserver, gdal, etc...) separately, 
and possibly got the x64 versions from 
http://vbkto.dyndns.org:1280/sdk/Default.aspx ?



At the start, I'll be using Mapserver for viewing of basic WMS 
services, nothing fancy.  Not too far in the future though, I'll be 
using PHP or Python mapscript code, and/or implementing a package like 
GeoMoose. My data will be shapefiles, PostGIs features, and a few 
raster formats.  

Any suggestions on where I should start with setting up my server?  
Thanks.


- John

**
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**

___
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] An example of GeoPDF output (not from Mapserver... yet)

2009-07-09 Thread Brent Fraser
This post likely belongs in Geowanking (http://geowanking.org), but since 
we're getting close to releasing Mapserver with Cairo/PDF, I thought I'd stir 
the pot.


The Canadian federal government's mapping department released a new 
rendered map product CanTopo 
(http://geogratis.cgdi.gc.ca/geogratis/en/collection/detail.do?id=37505) last 
week.  So far they've only released about 50 of a possible 13,000 1:50k map sheets.


Some interesting points:
  - The PDF info is vector (not simply a scanned map stuffed into a PDF)
  - they are GeoPDFs (if you use Acrobat Reader on Windows there will be a 
dynamic Lat/Lon/MGRS readout)

  - the info is organized onto layers you can switch on/off
  - the map is based on their CanVec GIS data 
(http://geogratis.cgdi.gc.ca/geogratis/en/product/search.do?id=28954)

but the feature name label placement must have been done by hand!

You can download them from the .ca link above, but here's one I've made 
available on my server:

http://139.142.13.163/Download/Mapserver/092b12_0601_geo.pdf

  It will be interesting to see how close we can get to similar output with 
Mapserver 6.0...


Best Regards,
Brent Fraser
GeoAnalytic Inc.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Object reference not set to an instance of an object

2009-07-09 Thread Suman Chatterjee
Hi,

I corrected my problem. Actually, I changed the code a little bit. 

 

Const string MAP_FILE = c:/inetpub/wwwroot/Addison.map

Map= new mapObj(MAP_FILE)

 

The line
System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Apache/ht
docs/mapservertest/Addison.map]  

 Is throwing error. No idea what it is trying to do.

 

Now my application is working fine in IIS and C#.

 

Suman

 

-Original Message-
From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Wednesday, July 08, 2009 6:22 PM
To: Suman Chatterjee
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Object reference not set to an instance
of an object

 

Hi Suman,

I suspect
System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Apache/ht
docs/mapservertest/Addison.map]  evaluates to null in your case, and
therefore the ToString() operation on the null reference is failing
which problem is not related to the MapScript library itself.

Best regards,

Tamas



2009/7/8 Suman Chatterjee schatter...@addisontx.gov

Hi all,

I am trying to develop an application in C# (VS2005) with mapscript. I
saw the material of Paolo. But I am facing a problem 

 

In the line 

 

mapObj map= new
mapObj(System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Ap
ache/htdocs/mapservertest/Addison.map].toString())

 

It is generating the error  Object reference not set to an instance of
an object

 

How can I correct this? If anyone helps me in correcting it, it will be
great.

 

Suman

 

 


*** 

This e-mail and any files or attachments transmitted with it contains
Information that is confidential and privileged. This document may
contain Protected Health Information (PHI) or other information that is
intended only for the use of the individual(s) and entity(ies) to whom
it is addressed. If you are the intended recipient, further disclosures
are prohibited without proper authorization. If you are not the intended
recipient, any disclosure, copying, printing, or use of this information
is strictly prohibited and possibly a violation of federal or state law
and regulations. If you have received this information in error, please
delete it and notify Hamid Khaleghipour at 972-450-2868 immediately.
Thank you. 


*** 


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

 


***
This e-mail and any files or attachments transmitted with it contains 
Information that is confidential and privileged. This document may contain 
Protected Health Information (PHI) or other information that is intended only 
for the use of the individual(s) and entity(ies) to whom it is addressed. If 
you are the intended recipient, further disclosures are prohibited without 
proper authorization. If you are not the intended recipient, any disclosure, 
copying, printing, or use of this information is strictly prohibited and 
possibly a violation of federal or state law and regulations. If you have 
received this information in error, please delete it and notify Hamid 
Khaleghipour at 972-450-2868 immediately. Thank you.

***


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


Re: [mapserver-users] mapserver or MS4W package on Windows x64

2009-07-09 Thread Tamas Szekeres
2009/7/9 John Callahan john.calla...@udel.edu

 I started working with the x64 binaries from Tamas' site at
 http://vbkto.dyndns.org:1280/sdk/Default.aspx.  MSVC2005 (Win64) seemed
 most appropriate for me.  However, I did not see php mapscript support.  Is
 that true?  I did see mapscript for java, python, and csharp.
 Can php mapscript run at all with x64 versions of Apache/PHP and/or
 Mapserver?   If not, then I'll have to give up x64 or PHP.  Bummer.


Hi John,

PHP support is lacking at the moment. I think if libphp could be compiled
for x64 then it wouldn't be a problem to compile php mapscript against it.
I'll give it a try this weekend if I have enough time.



 I've also been reading that I should run Mapserver in fastcgi mode, in
 either Win32 or Win64 versions. Does that mean to use PHP mapscript that I
 need to run PHP in cgi/fastcgi mode and NOT as an apache module?


I think that's not a strong requirement, you could either use fastcgi and
cgi equally well, however fastcgi will perform better.

Best regards,

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


Re: [mapserver-users] Object reference not set to an instance of an object

2009-07-09 Thread Tamas Szekeres
2009/7/9 Suman Chatterjee schatter...@addisontx.gov


 The line
 System.Configuration.ConfigurationManager.AppSettings[“C:/ms4w/Apache/htdocs/mapservertest/Addison.map”]


  Is throwing error. No idea what it is trying to do.

 You probably have to give the variable name of the application
configuration in the indexer to the value.

Best regards,

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


RE: [mapserver-users] Object reference not set to an instance of an object

2009-07-09 Thread Pano Voudouris
Hi Suman,

Check your web.config file- You probably have an entry similar to:

appSettings

add key=mapfile value=C:\ms4w\Apache\htdocs\...addison.map/

.

 

In your code you want to create the mapfile object by reading the mapfile
path from web.config. So what you need to do is:

 

mapObj map= new
mapObj(System.Configuration.ConfigurationManager.AppSettings[mapfile].toSt
ring())

(or whatever the variable in the web.config is called)

 

You don't really want to use a constant to point to the mapfile...

 

Pano

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Suman
Chatterjee
Sent: 09 July 2009 17:50
To: Tamas Szekeres
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Object reference not set to an instance of an
object

 

Hi,

I corrected my problem. Actually, I changed the code a little bit. 

 

Const string MAP_FILE = c:/inetpub/wwwroot/Addison.map

Map= new mapObj(MAP_FILE)

 

The line
System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Apache/htdocs
/mapservertest/Addison.map]  

 Is throwing error. No idea what it is trying to do.

 

Now my application is working fine in IIS and C#.

 

Suman

 

-Original Message-
From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Wednesday, July 08, 2009 6:22 PM
To: Suman Chatterjee
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Object reference not set to an instance of an
object

 

Hi Suman,

I suspect
System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Apache/htdocs
/mapservertest/Addison.map]  evaluates to null in your case, and therefore
the ToString() operation on the null reference is failing which problem is
not related to the MapScript library itself.

Best regards,

Tamas

2009/7/8 Suman Chatterjee schatter...@addisontx.gov

Hi all,

I am trying to develop an application in C# (VS2005) with mapscript. I saw
the material of Paolo. But I am facing a problem 

 

In the line 

 

mapObj map= new
mapObj(System.Configuration.ConfigurationManager.AppSettings[C:/ms4w/Apache
/htdocs/mapservertest/Addison.map].toString())

 

It is generating the error  Object reference not set to an instance of an
object

 

How can I correct this? If anyone helps me in correcting it, it will be
great.

 

Suman

 

 


*** 

This e-mail and any files or attachments transmitted with it contains
Information that is confidential and privileged. This document may contain
Protected Health Information (PHI) or other information that is intended
only for the use of the individual(s) and entity(ies) to whom it is
addressed. If you are the intended recipient, further disclosures are
prohibited without proper authorization. If you are not the intended
recipient, any disclosure, copying, printing, or use of this information is
strictly prohibited and possibly a violation of federal or state law and
regulations. If you have received this information in error, please delete
it and notify Hamid Khaleghipour at 972-450-2868 immediately. Thank you. 


*** 


___
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] GetCapabilities response being truncated

2009-07-09 Thread John Callahan
This seems to be a strange problem...  I can generate maps fine through 
the browser and mode=map.   However, responses to GetCapabilities 
requests are being truncated.  They are being truncated to 4053 
characters.  I've tried this using two separate map files, using 
different data, both WMS 1.1.0 and 1.1.1 versions, and the same result 
every time. 

I found some references to old posts but they didn't seem to apply 
here.  My data in each map file is just one shapefile.  My map file 
symbology is also very simple; it's listed below.


When run from the command line (mapserv 
QUERY_STRING=map=...REQUEST=GetCapabilities), it works perfectly.



I'm using the x64 stable build from 
http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64)  Apache 
2.2.10 and PHP 5.2.5 (x64 versions) if that matters.



I just don't know what's going on.  Sounds like a problem with my server 
setup.  Has anyone experienced this before?  Any suggestions on what I 
can check?  Thanks.


- John


* start of mapfile
# Map file created from QGIS project file 
C:/Apache2.2/cgi-bin/maps/geomap12.qgs

# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
 NAME 'geomap12'
 # Map image size
 SIZE 600 600
 UNITS meters

 CONFIG PROJ_LIB C:/programs/proj/nad/

 EXTENT 213919.523729 80938.404739 236765.007609 99539.050324
 PROJECTION
   init=epsg:26957
 END

 # Background color for the map canvas -- change as desired
 TRANSPARENT ON
 IMAGECOLOR 192 192 192
 IMAGEQUALITY 95
 IMAGETYPE png
 OUTPUTFORMAT
   NAME png
   DRIVER 'GD/PNG'
   MIMETYPE 'image/png'
   #IMAGEMODE PC256
   EXTENSION 'png'
 END

 # Web interface definition. Only the template parameter
 # is required to display a map. See MapServer documentation
 WEB
   # Set IMAGEPATH to the path where MapServer should
   # write its output.
   IMAGEPATH 'C:/Apache2.2/htdocs/output/'

   # Set IMAGEURL to the url that points to IMAGEPATH
   # as defined in your web server configuration
   IMAGEURL '/output/'

   # WMS server settings
   METADATA
 'wms_title'   'geomap12'
 'wms_onlineresource'  
'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map;'

 'wms_srs' 'EPSG:26957 EPSG:4326'
   END

   #Scale range at which web interface will operate
   # Template and header/footer settings
   # Only the template parameter is required to display a map. See 
MapServer documentation

 END

 LAYER
   NAME 'geounits'
   TYPE POLYGON
   DATA 'C:\webgis\data\geomap_pubs\geomap12.shp'
   METADATA
 'wms_title' 'geounits'
   END
   STATUS DEFAULT
   TRANSPARENCY 100
   PROJECTION
 init=epsg:26957
   END
   CLASS
  NAME 'geomap12'
  STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 0 0
COLOR 144 50 207
  END
   END   
 END

END
* end of mapfile

**
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**

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


Re: [mapserver-users] GetCapabilities response being truncated

2009-07-09 Thread John Callahan

Update:  I should rephrase my statements...

When run from the command line, c:\apache2.2\cgi-bin\mapserv 
QUERY_STRING=map=...REQUEST=GetCapabilities only works when output is 
to the screen. 

When directing the output to a file, like c:\apache2.2\cgi-bin\mapserv 
QUERY_STRING=map=...REQUEST=GetCapabilities  geomap.xml, then the 
output is again truncated. 

The limit is not 4053 characters but rather 4096 characters.  At least 
the number makes more sense.


Using MapServer 5.4.1, x64 in Windows 2008 Server.   More details on the 
environment is: 
http://vbkto.dyndns.org:1280/sdk/PackageInfo.aspx?file=release-1400-x64-gdal-1-6-mapserver-5-4.zip



- John




John Callahan wrote:
This seems to be a strange problem...  I can generate maps fine 
through the browser and mode=map.   However, responses to 
GetCapabilities requests are being truncated.  They are being 
truncated to 4053 characters.  I've tried this using two separate map 
files, using different data, both WMS 1.1.0 and 1.1.1 versions, and 
the same result every time.
I found some references to old posts but they didn't seem to apply 
here.  My data in each map file is just one shapefile.  My map file 
symbology is also very simple; it's listed below.


When run from the command line (mapserv 
QUERY_STRING=map=...REQUEST=GetCapabilities), it works perfectly.



I'm using the x64 stable build from 
http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64)  Apache 
2.2.10 and PHP 5.2.5 (x64 versions) if that matters.



I just don't know what's going on.  Sounds like a problem with my 
server setup.  Has anyone experienced this before?  Any suggestions on 
what I can check?  Thanks.


- John


* start of mapfile
# Map file created from QGIS project file 
C:/Apache2.2/cgi-bin/maps/geomap12.qgs

# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
 NAME 'geomap12'
 # Map image size
 SIZE 600 600
 UNITS meters

 CONFIG PROJ_LIB C:/programs/proj/nad/

 EXTENT 213919.523729 80938.404739 236765.007609 99539.050324
 PROJECTION
   init=epsg:26957
 END

 # Background color for the map canvas -- change as desired
 TRANSPARENT ON
 IMAGECOLOR 192 192 192
 IMAGEQUALITY 95
 IMAGETYPE png
 OUTPUTFORMAT
   NAME png
   DRIVER 'GD/PNG'
   MIMETYPE 'image/png'
   #IMAGEMODE PC256
   EXTENSION 'png'
 END

 # Web interface definition. Only the template parameter
 # is required to display a map. See MapServer documentation
 WEB
   # Set IMAGEPATH to the path where MapServer should
   # write its output.
   IMAGEPATH 'C:/Apache2.2/htdocs/output/'

   # Set IMAGEURL to the url that points to IMAGEPATH
   # as defined in your web server configuration
   IMAGEURL '/output/'

   # WMS server settings
   METADATA
 'wms_title'   'geomap12'
 'wms_onlineresource'  
'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map;' 


 'wms_srs' 'EPSG:26957 EPSG:4326'
   END

   #Scale range at which web interface will operate
   # Template and header/footer settings
   # Only the template parameter is required to display a map. See 
MapServer documentation

 END

 LAYER
   NAME 'geounits'
   TYPE POLYGON
   DATA 'C:\webgis\data\geomap_pubs\geomap12.shp'
   METADATA
 'wms_title' 'geounits'
   END
   STATUS DEFAULT
   TRANSPARENCY 100
   PROJECTION
 init=epsg:26957
   END
   CLASS
  NAME 'geomap12'
  STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 0 0 0
COLOR 144 50 207
  END
   ENDEND
END
* end of mapfile

**
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**

___
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