AsGML and AsKML not working in 1.3.2?

View: New views
7 Messages — Rating Filter:   Alert me  

AsGML and AsKML not working in 1.3.2?

by davidj2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get this error when trying to use AsGML

"ERROR: XX000: Only GML 2 and GML 3 are supported"

The documentations says it is defined like this
AsGML([version], geometry, [precision])
But in the functions I see

AsGML(geometry, int, int)
I have tried calling it with and without a version number all seem to do the same thing.


Then I want to also call AsKML but that function does not appear to exist.
I get this error
"ERROR: 42883: function askml(geometry) does not exist"
and I do not see it in the list of functions

Re: AsGML and AsKML not working in 1.3.2?

by Paul Ramsey-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try ST_AsGML and ST_AsKML

P

On 3/17/08, davidj2k <davidj2k@...> wrote:

>
>  I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get this
>  error when trying to use AsGML
>
>  "ERROR: XX000: Only GML 2 and GML 3 are supported"
>
>  The documentations says it is defined like this
>  AsGML([version], geometry, [precision])
>  But in the functions I see
>
>  AsGML(geometry, int, int)
>  I have tried calling it with and without a version number all seem to do the
>  same thing.
>
>
>  Then I want to also call AsKML but that function does not appear to exist.
>  I get this error
>  "ERROR: 42883: function askml(geometry) does not exist"
>  and I do not see it in the list of functions
>
> --
>  View this message in context: http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
>  Sent from the PostGIS - User mailing list archive at Nabble.com.
>
>  _______________________________________________
>  postgis-users mailing list
>  postgis-users@...
>  http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

Re: AsGML and AsKML not working in 1.3.2?

by davidj2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I try that I get
ERROR: 42883: function st_asgml(geometry) does not exist

Paul Ramsey <pramsey@...> wrote:
Try ST_AsGML and ST_AsKML

P

On 3/17/08, davidj2k wrote:

>
> I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get this
> error when trying to use AsGML
>
> "ERROR: XX000: Only GML 2 and GML 3 are supported"
>
> The documentations says it is defined like this
> AsGML([version], geometry, [precision])
> But in the functions I see
>
> AsGML(geometry, int, int)
> I have tried calling it with and without a version number all seem to do the
> same thing.
>
>
> Then I want to also call AsKML but that function does not appear to exist.
> I get this error
> "ERROR: 42883: function askml(geometry) does not exist"
> and I do not see it in the list of functions
>
> --
> View this message in context: http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

Re: AsGML and AsKML not working in 1.3.2?

by Paul Ramsey-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

select postgis_full_version().

I am seeing it work just fine on my installation...

pramsey=# select st_asgml(test_geom) from test;


On 3/17/08, David Jordan <davidj2k@...> wrote:

> If I try that I get
> ERROR: 42883: function st_asgml(geometry) does not exist
>
> Paul Ramsey <pramsey@...> wrote:
> Try ST_AsGML and ST_AsKML
>
> P
>
> On 3/17/08, davidj2k wrote:
> >
> > I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get
> this
> > error when trying to use AsGML
> >
> > "ERROR: XX000: Only GML 2 and GML 3 are supported"
> >
> > The documentations says it is defined like this
> > AsGML([version], geometry, [precision])
> > But in the functions I see
> >
> > AsGML(geometry, int, int)
> > I have tried calling it with and without a version number all seem to do
> the
> > same thing.
> >
> >
> > Then I want to also call AsKML but that function does not appear to exist.
> > I get this error
> > "ERROR: 42883: function askml(geometry) does not exist"
> > and I do not see it in the list of functions
> >
> > --
> > View this message in context:
> http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
> > Sent from the PostGIS - User mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
>  ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
>
>
> _______________________________________________
>  postgis-users mailing list
>  postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

Re: AsGML and AsKML not working in 1.3.2?

by davidj2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think I might know what the problem is, I am using a database that was created in an older version of PostGIS and I restored from a file, is there a simple way to update the functions in this database?  I can see the correct function in another database that was created in this version.

Paul Ramsey <pramsey@...> wrote:
select postgis_full_version().

I am seeing it work just fine on my installation...

pramsey=# select st_asgml(test_geom) from test;


On 3/17/08, David Jordan wrote:

> If I try that I get
> ERROR: 42883: function st_asgml(geometry) does not exist
>
> Paul Ramsey wrote:
> Try ST_AsGML and ST_AsKML
>
> P
>
> On 3/17/08, davidj2k wrote:
> >
> > I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get
> this
> > error when trying to use AsGML
> >
> > "ERROR: XX000: Only GML 2 and GML 3 are supported"
> >
> > The documentations says it is defined like this
> > AsGML([version], geometry, [precision])
> > But in the functions I see
> >
> > AsGML(geometry, int, int)
> > I have tried calling it with and without a version number all seem to do
> the
> > same thing.
> >
> >
> > Then I want to also call AsKML but that function does not appear to exist.
> > I get this error
> > "ERROR: 42883: function askml(geometry) does not exist"
> > and I do not see it in the list of functions
> >
> > --
> > View this message in context:
> http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
> > Sent from the PostGIS - User mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
> ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users


Never miss a thing. Make Yahoo your homepage.
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

Re: AsGML and AsKML not working in 1.3.2?

by Paul Ramsey-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Run lwpostgis_upgrade.sql on your old database, that should refresh
the function signatures to match the underlying .so.

P

On 3/17/08, David Jordan <davidj2k@...> wrote:

> I think I might know what the problem is, I am using a database that was
> created in an older version of PostGIS and I restored from a file, is there
> a simple way to update the functions in this database?  I can see the
> correct function in another database that was created in this version.
>
> Paul Ramsey <pramsey@...> wrote:
> select postgis_full_version().
>
> I am seeing it work just fine on my installation...
>
> pramsey=# select st_asgml(test_geom) from test;
>
>
> On 3/17/08, David Jordan wrote:
> > If I try that I get
> > ERROR: 42883: function st_asgml(geometry) does not exist
> >
> > Paul Ramsey wrote:
> > Try ST_AsGML and ST_AsKML
> >
> > P
> >
> > On 3/17/08, davidj2k wrote:
> > >
> > > I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get
> > this
> > > error when trying to use AsGML
> > >
> > > "ERROR: XX000: Only GML 2 and GML 3 are supported"
> > >
> > > The documentations says it is defined like this
> > > AsGML([version], geometry, [precision])
> > > But in the functions I see
> > >
> > > AsGML(geometry, int, int)
> > > I have tried calling it with and without a version number all seem to do
> > the
> > > same thing.
> > >
> > >
> > > Then I want to also call AsKML but that function does not appear to
> exist.
> > > I get this error
> > > "ERROR: 42883: function askml(geometry) does not exist"
> > > and I do not see it in the list of functions
> > >
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
> > > Sent from the PostGIS - User mailing list archive at Nabble.com.
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users@...
> > >
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> > >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> >
> > ________________________________
> > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> > now.
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
>  ________________________________
> Never miss a thing. Make Yahoo your homepage.
>
>
> _______________________________________________
>  postgis-users mailing list
>  postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

Re: AsGML and AsKML not working in 1.3.2?

by davidj2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That did the trick, thank you again

Paul Ramsey <pramsey@...> wrote:
Run lwpostgis_upgrade.sql on your old database, that should refresh
the function signatures to match the underlying .so.

P

On 3/17/08, David Jordan wrote:

> I think I might know what the problem is, I am using a database that was
> created in an older version of PostGIS and I restored from a file, is there
> a simple way to update the functions in this database? I can see the
> correct function in another database that was created in this version.
>
> Paul Ramsey wrote:
> select postgis_full_version().
>
> I am seeing it work just fine on my installation...
>
> pramsey=# select st_asgml(test_geom) from test;
>
>
> On 3/17/08, David Jordan wrote:
> > If I try that I get
> > ERROR: 42883: function st_asgml(geometry) does not exist
> >
> > Paul Ramsey wrote:
> > Try ST_AsGML and ST_AsKML
> >
> > P
> >
> > On 3/17/08, davidj2k wrote:
> > >
> > > I am trying to use the AsGML and AsKML functions in PostGIS 1.3.2 I get
> > this
> > > error when trying to use AsGML
> > >
> > > "ERROR: XX000: Only GML 2 and GML 3 are supported"
> > >
> > > The documentations says it is defined like this
> > > AsGML([version], geometry, [precision])
> > > But in the functions I see
> > >
> > > AsGML(geometry, int, int)
> > > I have tried calling it with and without a version number all seem to do
> > the
> > > same thing.
> > >
> > >
> > > Then I want to also call AsKML but that function does not appear to
> exist.
> > > I get this error
> > > "ERROR: 42883: function askml(geometry) does not exist"
> > > and I do not see it in the list of functions
> > >
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/AsGML-and-AsKML-not-working-in-1.3.2--tp16098350p16098350.html
> > > Sent from the PostGIS - User mailing list archive at Nabble.com.
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users@...
> > >
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> > >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> >
> > ________________________________
> > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> > now.
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@...
> >
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
>
> ________________________________
> Never miss a thing. Make Yahoo your homepage.
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users


Looking for last minute shopping deals? Find them fast with Yahoo! Search.
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users