[Geoserver-devel] Unable to transform referenced envelope, crs has not yet been provided

Hi,

I'm trying the rest examples and the following error is shown:

:Unable to transform referenced envelope, crs has not yet been provided.

The command line i'm running is:

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d
'<featureType><name>barrios</name></featureType>'
http://localhost:8080/geoserver/rest/workspaces/Montevideo/datastores/BasePostgis/featuretypes

The Barrios table is a postgis table, the data was transformed from a
shapefile to a sql file in order to insert them into the database.

I try to use the following functions :

select updategeometrysrid('barrios', 'the_geom', 2163);
select setsrid(the_geom, 2163) from barrios;

And then, create the check :

ALTER TABLE barrios
  ADD CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 2163);

But the error is still there...

I think the SRS is 2163 but i'm not really sure.

What can be the problem? Anyone can helpme ?

Thanks, Santiago.
--
View this message in context: http://www.nabble.com/Unable-to-transform-referenced-envelope%2C-crs-has-not-yet-been-provided-tp24541907p24541907.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Santiago Montico ha scritto:

Hi,

I'm trying the rest examples and the following error is shown:

:Unable to transform referenced envelope, crs has not yet been provided.

The command line i'm running is:

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d
'<featureType><name>barrios</name></featureType>'
http://localhost:8080/geoserver/rest/workspaces/Montevideo/datastores/BasePostgis/featuretypes

The Barrios table is a postgis table, the data was transformed from a
shapefile to a sql file in order to insert them into the database.

I try to use the following functions :

select updategeometrysrid('barrios', 'the_geom', 2163);
select setsrid(the_geom, 2163) from barrios;

And then, create the check :

ALTER TABLE barrios
  ADD CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 2163);

But the error is still there...

I think the SRS is 2163 but i'm not really sure.

What can be the problem? Anyone can helpme ?

It is hard to tell. Do you have a full stack trace? Also, can you
share sample data to reproduce the issue (by private mail possibly
so that the list is not flooded).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea,

I can share the data with you.
Please send me the email address so i can attach the information (sql
script, can be? ).

Related to the full stack trace you are asking, in the console it shows the
following error:

17 jul 18:10:37 INFO [org.geoserver] - Loaded feature type 'barrios',
disabled
17 jul 18:10:37 ERROR [geoserver.rest] - :Unable to transform referenced
envelope, crs has not yet been provided.

There's another log file where i cant get more information?

Thanks, Santiago.

Andrea Aime-4 wrote:

Santiago Montico ha scritto:

Hi,

I'm trying the rest examples and the following error is shown:

:Unable to transform referenced envelope, crs has not yet been provided.

The command line i'm running is:

curl -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d
'<featureType><name>barrios</name></featureType>'
http://localhost:8080/geoserver/rest/workspaces/Montevideo/datastores/BasePostgis/featuretypes

The Barrios table is a postgis table, the data was transformed from a
shapefile to a sql file in order to insert them into the database.

I try to use the following functions :

select updategeometrysrid('barrios', 'the_geom', 2163);
select setsrid(the_geom, 2163) from barrios;

And then, create the check :

ALTER TABLE barrios
  ADD CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 2163);

But the error is still there...

I think the SRS is 2163 but i'm not really sure.

What can be the problem? Anyone can helpme ?

It is hard to tell. Do you have a full stack trace? Also, can you
share sample data to reproduce the issue (by private mail possibly
so that the list is not flooded).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Unable-to-transform-referenced-envelope%2C-crs-has-not-yet-been-provided-tp24541907p24568904.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Santiago Montico ha scritto:

Andrea,

I can share the data with you.
Please send me the email address so i can attach the information (sql
script, can be? ).

This mail address is good, just make sure not to cc the mailing list.

Related to the full stack trace you are asking, in the console it shows the
following error:

17 jul 18:10:37 INFO [org.geoserver] - Loaded feature type 'barrios',
disabled
17 jul 18:10:37 ERROR [geoserver.rest] - :Unable to transform referenced
envelope, crs has not yet been provided.

There's another log file where i cant get more information?

$GEOSERVER_DATA_DIR/logs/geoserver.log, but it should contain the
same information as the console

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea,

Problem solved.

Now i generate the sql file using a specific srid and i could create the
feature type correctly.

./shp2pgsql -s 2163 barrios barrios2 > barrios2.sql

Thanks, Santiago.

Andrea Aime-4 wrote:

Santiago Montico ha scritto:

Andrea,

I can share the data with you.
Please send me the email address so i can attach the information (sql
script, can be? ).

This mail address is good, just make sure not to cc the mailing list.

Related to the full stack trace you are asking, in the console it shows
the
following error:

17 jul 18:10:37 INFO [org.geoserver] - Loaded feature type 'barrios',
disabled
17 jul 18:10:37 ERROR [geoserver.rest] - :Unable to transform referenced
envelope, crs has not yet been provided.

There's another log file where i cant get more information?

$GEOSERVER_DATA_DIR/logs/geoserver.log, but it should contain the
same information as the console

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Unable-to-transform-referenced-envelope%2C-crs-has-not-yet-been-provided-tp24541907p24570983.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.