[mapserver-users] extend mapserver with a driver for atom feed

2008-07-16 Thread valerio vianello
Hi all,

my task is to render atom feed, with georss entry, on the map in the server 
side.  I know that mapserver and ogr aren't able to read this kind of data so 
I'm asking community to pointer me to same documentation that a I can read to 
write a little driver so that MapServer will be able to read, directly or 
through ogr, data from atom feed.

any help are very appreciated.

best regards
Valerio



  Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l#39;home page che piace a te!
www.yahoo.it/latuapagina___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How to use CADRG raster format in mapserver?

2008-07-16 Thread Admin
Hi, Dan
Did someone help you?
Did you now how use this format?
 what command line should I add to my map file inorder to display
 CADRG raster format?
 my RFP file is a.toc
 Thanks,
 Dan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Ritesh Ambastha

Hello Readers, 

I am facing a problem in defining the DATA path in mapserver while using
PostGIS. 

I have two schemas, lets say 'a' and 'b' in a database 'd'

Now, I want to access tables of schema 'a' in the mapserver layer. 

I define DATA path like this: 

DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 

Please pour in your thoughts for defining schema in the connection/data
parameters.

Thanks,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483547.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Venkat Rao Tammineni
Hi,
Here is my Example .I think it helps you.

Layer # Layer starts here
  Name GMM 100 #name of the layer
  ConnectionType POSTGIS #connection type
  Connection host=192.168.1.158 dbname=GIS password=administrator
user=postgres port=5432 #connection type.
  Data the_geom from rgp_gis_gmm_100_metros   #table name

Thanks and Regards
Venkat.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
Ambastha
Sent: Wednesday, July 16, 2008 2:44 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres
DB Schema


Hello Readers, 

I am facing a problem in defining the DATA path in mapserver while using
PostGIS. 

I have two schemas, lets say 'a' and 'b' in a database 'd'

Now, I want to access tables of schema 'a' in the mapserver layer. 

I define DATA path like this: 

DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 

Please pour in your thoughts for defining schema in the connection/data
parameters.

Thanks,
Ritesh Ambastha
-- 
View this message in context:
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
hema-tp18483547p18483547.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
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


RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Ritesh Ambastha

Hey Venkat,

Thanks for the details. 
I understand the standard way to write a connection parameter. 

I am sure that this table rgp_gis_gmm_100_metros is stored in public
schema of your database. 

My question is, what will you write if you keep this table in some other
schema?

Regards,


Venkatrao wrote:
 
 Hi,
 Here is my Example .I think it helps you.
 
 Layer # Layer starts here
   Name GMM 100 #name of the layer
   ConnectionType POSTGIS #connection type
   Connection host=192.168.1.158 dbname=GIS password=administrator
 user=postgres port=5432 #connection type.
   Data the_geom from rgp_gis_gmm_100_metros   #table name
 
 Thanks and Regards
 Venkat.
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
 Ambastha
 Sent: Wednesday, July 16, 2008 2:44 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres
 DB Schema
 
 
 Hello Readers, 
 
 I am facing a problem in defining the DATA path in mapserver while using
 PostGIS. 
 
 I have two schemas, lets say 'a' and 'b' in a database 'd'
 
 Now, I want to access tables of schema 'a' in the mapserver layer. 
 
 I define DATA path like this: 
 
 DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 
 
 Please pour in your thoughts for defining schema in the connection/data
 parameters.
 
 Thanks,
 Ritesh Ambastha
 -- 
 View this message in context:
 http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
 hema-tp18483547p18483547.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Venkat Rao Tammineni
Hi,

   Have you checked other schema? See you can use either public or pg_temp_1
right ? if you want to use pg_temp_1 schema u need to have some setting
while configuring at add new server connection. This is only as per
knowledge. I did not tested. And my suggestion is  Use Pulic.Because ,if
there any joining among the table ,that would be again problem.

   If I am not right ,let me know.

Thanks and Regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
Ambastha
Sent: Wednesday, July 16, 2008 3:07 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using
Postgres DB Schema


Hey Venkat,

Thanks for the details. 
I understand the standard way to write a connection parameter. 

I am sure that this table rgp_gis_gmm_100_metros is stored in public
schema of your database. 

My question is, what will you write if you keep this table in some other
schema?

Regards,


Venkatrao wrote:
 
 Hi,
 Here is my Example .I think it helps you.
 
 Layer # Layer starts here
   Name GMM 100 #name of the layer
   ConnectionType POSTGIS #connection type
   Connection host=192.168.1.158 dbname=GIS password=administrator
 user=postgres port=5432 #connection type.
   Data the_geom from rgp_gis_gmm_100_metros   #table name
 
 Thanks and Regards
 Venkat.
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
 Ambastha
 Sent: Wednesday, July 16, 2008 2:44 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres
 DB Schema
 
 
 Hello Readers, 
 
 I am facing a problem in defining the DATA path in mapserver while using
 PostGIS. 
 
 I have two schemas, lets say 'a' and 'b' in a database 'd'
 
 Now, I want to access tables of schema 'a' in the mapserver layer. 
 
 I define DATA path like this: 
 
 DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 
 
 Please pour in your thoughts for defining schema in the connection/data
 parameters.
 
 Thanks,
 Ritesh Ambastha
 -- 
 View this message in context:

http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
 hema-tp18483547p18483547.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 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
 
 

-- 
View this message in context:
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
hema-tp18483547p18483876.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
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


Re: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread ritesh ambastha
Venkat,

I am looking for that some setting :)

Cheers,
Ritesh

On Wed, Jul 16, 2008 at 3:23 PM, Venkat Rao Tammineni 
[EMAIL PROTECTED] wrote:

 Hi,

   Have you checked other schema? See you can use either public or pg_temp_1
 right ? if you want to use pg_temp_1 schema u need to have some setting
 while configuring at add new server connection. This is only as per
 knowledge. I did not tested. And my suggestion is  Use Pulic.Because ,if
 there any joining among the table ,that would be again problem.

   If I am not right ,let me know.

 Thanks and Regards
 Venkat.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
 Ambastha
 Sent: Wednesday, July 16, 2008 3:07 PM
 To: mapserver-users@lists.osgeo.org
 Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres DB Schema


 Hey Venkat,

 Thanks for the details.
 I understand the standard way to write a connection parameter.

 I am sure that this table rgp_gis_gmm_100_metros is stored in public
 schema of your database.

 My question is, what will you write if you keep this table in some other
 schema?

 Regards,


 Venkatrao wrote:
 
  Hi,
  Here is my Example .I think it helps you.
 
  Layer # Layer starts here
Name GMM 100 #name of the layer
ConnectionType POSTGIS #connection type
Connection host=192.168.1.158 dbname=GIS password=administrator
  user=postgres port=5432 #connection type.
Data the_geom from rgp_gis_gmm_100_metros   #table name
 
  Thanks and Regards
  Venkat.
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
  Ambastha
  Sent: Wednesday, July 16, 2008 2:44 PM
  To: mapserver-users@lists.osgeo.org
  Subject: [MAPSERVER-USERS] Connection parameter errors while using
  Postgres
  DB Schema
 
 
  Hello Readers,
 
  I am facing a problem in defining the DATA path in mapserver while using
  PostGIS.
 
  I have two schemas, lets say 'a' and 'b' in a database 'd'
 
  Now, I want to access tables of schema 'a' in the mapserver layer.
 
  I define DATA path like this:
 
  DATA the_geom FROM a.table_name USING UNIQUE id SRID -1
 
  Please pour in your thoughts for defining schema in the connection/data
  parameters.
 
  Thanks,
  Ritesh Ambastha
  --
  View this message in context:
 

 http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
  hema-tp18483547p18483547.html
  Sent from the Mapserver - User mailing list archive at Nabble.com.
 
  ___
  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
 
 

 --
 View this message in context:

 http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
 hema-tp18483547p18483876.htmlhttp://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.

 ___
 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


Re: [mapserver-users] extend mapserver with a driver for atom feed

2008-07-16 Thread Frank Warmerdam

valerio vianello wrote:

Hi all,

my task is to render atom feed, with georss entry, on the map in the 
server side.  I know that mapserver and ogr aren't able to read this 
kind of data so I'm asking community to pointer me to same documentation 
that a I can read to write a little driver so that MapServer will be 
able to read, directly or through ogr, data from atom feed.


any help are very appreciated.


Valerio,

I would suggest reviewing the OGR driver implementation tutorial at:

  http://www.gdal.org/ogr/ogr_drivertut.html

and then reviewing some existing XML drivers like:

  http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/kml
  http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/gpx
  http://svn.osgeo.org/gdal/trunk/gdal/ogr/ogrsf_frmts/gml

Good luck,

--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Carlos Ruiz
Ritesh,
 
There's a way to stablish the default schema to a postgres user when it 
connects, maybe this can help you to pull the data from postgres.
 
To check what's the current default user's schema, you need to execute this:
 
SHOW search_path
 
It must throw $user, public
 
So, to set the default user's schema, you execute this:
 
ALTER USER user_name SET search_path TO schema_name
 
I suggest you to create a new role to connect to the database via map file, and 
then 
change its default schema.
 
Another thing (maybe this was the first step) is to check if the user postgres 
is the owner 
of the schema, and if it's not, then check if it haves the USAGE privilege on 
it.
 
Hope this information helps

IC Carlos Ruiz
 

--- On Wed, 7/16/08, Ritesh Ambastha [EMAIL PROTECTED] wrote:

From: Ritesh Ambastha [EMAIL PROTECTED]
Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres 
DB Schema
To: mapserver-users@lists.osgeo.org
Date: Wednesday, July 16, 2008, 4:37 AM

Hey Venkat,

Thanks for the details. 
I understand the standard way to write a connection parameter. 

I am sure that this table rgp_gis_gmm_100_metros is stored in
public
schema of your database. 

My question is, what will you write if you keep this table in some other
schema?

Regards,


Venkatrao wrote:
 
 Hi,
 Here is my Example .I think it helps you.
 
 Layer # Layer starts here
   Name GMM 100 #name of the layer
   ConnectionType POSTGIS #connection type
   Connection host=192.168.1.158 dbname=GIS password=administrator
 user=postgres port=5432 #connection type.
   Data the_geom from rgp_gis_gmm_100_metros   #table name
 
 Thanks and Regards
 Venkat.
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
 Ambastha
 Sent: Wednesday, July 16, 2008 2:44 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres
 DB Schema
 
 
 Hello Readers, 
 
 I am facing a problem in defining the DATA path in mapserver while using
 PostGIS. 
 
 I have two schemas, lets say 'a' and 'b' in a database
'd'
 
 Now, I want to access tables of schema 'a' in the mapserver layer.

 
 I define DATA path like this: 
 
 DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 
 
 Please pour in your thoughts for defining schema in the connection/data
 parameters.
 
 Thanks,
 Ritesh Ambastha
 -- 
 View this message in context:

http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
 hema-tp18483547p18483547.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 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
 
 

-- 
View this message in context:
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18483876.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
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


RE: [mapserver-users] Trouble with a Share Point Portal. [SEC=UNCLASSIFIED]

2008-07-16 Thread Roppola, Antti - BRS
Hi all,

For Java bindings (about a year ago), we found that using a current
version of SWIG to re-build the pre-canned SWIG interface gave a
better result. Before this we has issues with SWIG doing things like
flattening structs.

We identified and solved the problem by intercepting and inspecting
the map objects that threw the exception to ensure they contained
what the API said they ought to contain.

Cheers,

Antti 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tamas Szekeres
Sent: Thursday, 17 July 2008 5:46 AM
To: Pietro Giannini
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Trouble with a Share Point Portal.

Pietro,

Could you provide a code sample to investigate the problem in more detail?

Best regards,

Tamas

2008/7/16 Pietro Giannini [EMAIL PROTECTED]:
 Hi all,

 I'm in serious trouble with the ambitious project of a web mapping app 
 in a Windows SharePoint Services 3.0 environment; in detail, the 
 application is embedded in a web part.
 Obviously, I'm developing in c#, that is not my preferred...

 I've recompiled myself mapserver and the mapscript_csharp assembly. In 
 a debug environment all works fine but when I deploy the web part on 
 the server I allways receive the same error:

 - Exception of type: System.TypeInitializationException;
 - with the message: The type initializer for 'OSGeo.MapServer.mapscript'
 threw an exception;
 - the source: mapscript_csharp;
 - the InnerException.StackTrace is:
  -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get()
  -- at OSGeo.MapServer.mapscript..cctor()

 If anyone has experienced the same or a similar problem, or has more 
 experience than me, can please help me?

 thanks in advance.

 ..pg

 --
 Pietro Giannini
 Bytewise srl - Area GIS
 41°50'38.58N 12°29'13.39E

 ___
 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

--IMPORTANT - This message has been issued by The Department of 
Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for 
the use of the intended recipient only and may contain sensitive and/or legally 
privileged material. It is your responsibility to check any attachments for 
viruses and defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, 
dissemination or other use of the information contained in this e-mail by 
persons or entities other than the intended recipient is prohibited. The taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you have received this e-mail in 
error please notify the sender and delete all copies of this transmission 
together with any attachments. If you have received this e-mail as part of a 
valid mailing list and no longer want to receive a message such as this one 
advise the sender by return e-mail accordingly. Only e-mail correspondence 
which includes this footer, has been authorised by DAFF 
--
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Trouble with a Share Point Portal.

2008-07-16 Thread Venkat Rao Tammineni
Hi,

   Take latest version of mapserver (Ms4W 2.7.7) and  update all the dlls
form the cgi-bin to Visual Studio  add the reference from visual studio.It
will work.There is only problem with version.Because I did the same.I think
it will help you.

Thanks and Regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pietro
Giannini
Sent: Wednesday, July 16, 2008 10:05 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Trouble with a Share Point Portal. 

Hi all,

I'm in serious trouble with the ambitious project of a web mapping app in
a Windows SharePoint Services 3.0 environment; in detail, the application
is embedded in a web part.
Obviously, I'm developing in c#, that is not my preferred...

I've recompiled myself mapserver and the mapscript_csharp assembly. In a
debug environment all works fine but when I deploy the web part on the
server I allways receive the same error:

- Exception of type: System.TypeInitializationException;
- with the message: The type initializer for 'OSGeo.MapServer.mapscript'
threw an exception;
- the source: mapscript_csharp;
- the InnerException.StackTrace is:
 -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get()
 -- at OSGeo.MapServer.mapscript..cctor()

If anyone has experienced the same or a similar problem, or has more
experience than me, can please help me?

thanks in advance.

..pg

-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E

___
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