[Geoserver-devel] [Geoserver-users] Geoserver Questions (Raster Image, Server)

Andrea Aime wrote:

Brad_Mclain ha scritto:

Ok guys I'm pretty new to geoserver but I have read through most of the
documentation and tutorials and currently have managed to upload a shapefile
and have it correctly display when you go to mapPreview.do.

I have a few problems though. Firstly how do you accurately determine the
SRS value?, because I managed to get what I think is the correct value for
one shapefile but the others are failing to display anything.

Most shapefile in the wild do not come with any SRS information at all,
you're just supposed to know what SRS they are in. If you're like, you'll have a .prj file in the set that gives you that information.

I'd really like to get our gui admin doing reverse lookups based on wkt to pre-populate the SRS number. We used to have this working for PostGIS, but when I last checked it didn't work. And supposedly Martin has a way for it to work with Shapefiles as well...

Chris

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Chris Holmes ha scritto:

Andrea Aime wrote:

Brad_Mclain ha scritto:

Ok guys I'm pretty new to geoserver but I have read through most of the
documentation and tutorials and currently have managed to upload a shapefile
and have it correctly display when you go to mapPreview.do.

I have a few problems though. Firstly how do you accurately determine the
SRS value?, because I managed to get what I think is the correct value for
one shapefile but the others are failing to display anything.

Most shapefile in the wild do not come with any SRS information at all,
you're just supposed to know what SRS they are in. If you're like, you'll have a .prj file in the set that gives you that information.

I'd really like to get our gui admin doing reverse lookups based on wkt to pre-populate the SRS number. We used to have this working for PostGIS, but when I last checked it didn't work. And supposedly Martin has a way for it to work with Shapefiles as well...

Yeah, it would be nice in fact. As for WKT, in fact I asked Martin that
very question and he told me that the only way for a reverse lookup starting from WKT is to compare for equality against each single CRS we know. Quite a long process, but I never tried, so it may worth the little wait.

In fact, for shapefiles in particular, it would be nice to just add
the shapefile and be done with it if the .prj file is there, instead
of having to configure the feature type as well.

Cheers
Andrea

On 1/10/07, Andrea Aime <aaime@anonymised.com> wrote:

Chris Holmes ha scritto:
>
> Andrea Aime wrote:
>> Brad_Mclain ha scritto:
>>> Ok guys I'm pretty new to geoserver but I have read through most of the
>>> documentation and tutorials and currently have managed to upload a
>>> shapefile
>>> and have it correctly display when you go to mapPreview.do.
>>>
>>> I have a few problems though. Firstly how do you accurately determine
>>> the
>>> SRS value?, because I managed to get what I think is the correct
>>> value for
>>> one shapefile but the others are failing to display anything.
>>
>> Most shapefile in the wild do not come with any SRS information at all,
>> you're just supposed to know what SRS they are in. If you're like,
>> you'll have a .prj file in the set that gives you that information.
>>
>
> I'd really like to get our gui admin doing reverse lookups based on wkt
> to pre-populate the SRS number. We used to have this working for
> PostGIS, but when I last checked it didn't work. And supposedly Martin
> has a way for it to work with Shapefiles as well...

Yeah, it would be nice in fact. As for WKT, in fact I asked Martin that
very question and he told me that the only way for a reverse lookup
starting from WKT is to compare for equality against each single CRS we
know. Quite a long process, but I never tried, so it may worth the
little wait.

Actually there is a possible (dumb?) optimization that is create a CRS
from the WKT and ask a code to it. Sometime there is an EPSG code
mebedded into the WKT this way you will spot it.

In the more general case we would need to extend EPSG factory based on
theEPSG sql definition in order to try a query directly to the db.

The last, worst option is a full search for equality :-).

Simone.

In fact, for shapefiles in particular, it would be nice to just add
the shapefile and be done with it if the .prj file is there, instead
of having to configure the feature type as well.

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions

http://www.geo-solutions.it

-------------------------------------------------------