[Geoserver-users] Initial question

Hello List,

I am new to GeoServer and just set up the server to run.
I tried the WMS service requesting the topp:states layer that is included in the distribution, it works great at here:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:states&styles=population&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-126.325,12.797,-63.691,62.905

Now I want to create my own layer by providing a shapefile to GeoServer. I followed the tutorial to set up the data store and feature type.
My shapefile is in line style and in StatePlane projection. I do not know the corresponding espg code, so I use the default espg 4326 and hope geoserver can handle it.
Now my problem is that I can not see any output when request this layer via WMS.
There is no complain about errors or something, but I just get a blank page. The link is at here:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:roads&styles=line&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-126.325,12.797,-63.691,62.905

I am not sure what I should do to fix this problem. Any suggestions are appreciated.

Thank you.

Xiaopeng Xiong ha scritto:

Hello List,

I tried the WMS service requesting the topp:states layer that is included in the distribution, it works great at here:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:states&styles=population&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-126.325,12.797,-63.691,62.905
Now I want to create my own layer by providing a shapefile to GeoServer. I followed the tutorial to set up the data store and feature type.
My shapefile is in line style and in StatePlane projection. I do not know the corresponding espg code, so I use the default espg 4326 and hope geoserver can handle it.

Nope, it won't. You have to find the proper code for your state plane
projection.
State plane areas are here:
http://www.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html

The list of built in CRS supported by Geoserver is here:
http://sigma.openplans.org:8080/geoserver/srsHelp.do
(you can point it at your geoserver if you want faster response).

The state plane ones seem to be starting from code 26729, thought
I may be wrong, I do live in Italy, not very knowledgeable about
USA reference systems.

Hope this helps.
Cheers
Andrea Aime

Thanks for those replied, especially for the helpful hints from Andrea and Jukka.
The below explains my progress and my problem when using Google Map APIs.

Progress:
The layer I used is in NAD 83 projection (Indiana East), so now I found the right SRS as 26973.
This is what I got for the town shape layer:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:county&styles=polygon&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-96.325,32.797,-83.691,52.905
It looks fine in this request.

Problem:
However, when I embed it into Google Map API, it does not work well. Pleaes check this:
http://www.cs.purdue.edu/homes/xxiong/applications/googlemap/indextest.html
The image does not appear. But when you zoom out for several levels, you can see the red image as a small dot.
Basically, the WMS image only appears in several zoom levels that are small enough.

Does anyone have experience in such a problem? Thank you for sharing your ideas.

Best,
Xiaopeng

----- Original Message ----- From: "Andrea Aime" <aaime@anonymised.com>
To: "Xiaopeng Xiong" <xpxiong@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Sent: Monday, December 18, 2006 5:12 AM
Subject: Re: [Geoserver-users] Initial question

Xiaopeng Xiong ha scritto:

Hello List,
I am new to GeoServer and just set up the server to run.
I tried the WMS service requesting the topp:states layer that is included in the distribution, it works great at here:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:states&styles=population&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-126.325,12.797,-63.691,62.905
Now I want to create my own layer by providing a shapefile to GeoServer. I followed the tutorial to set up the data store and feature type.
My shapefile is in line style and in StatePlane projection. I do not know the corresponding espg code, so I use the default espg 4326 and hope geoserver can handle it.

Nope, it won't. You have to find the proper code for your state plane
projection.
State plane areas are here:
http://www.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html

The list of built in CRS supported by Geoserver is here:
http://sigma.openplans.org:8080/geoserver/srsHelp.do
(you can point it at your geoserver if you want faster response).

The state plane ones seem to be starting from code 26729, thought
I may be wrong, I do live in Italy, not very knowledgeable about
USA reference systems.

Hope this helps.
Cheers
Andrea Aime

It looks like the google layers are appearing over your dataset. Could that be the problem?
It might also be a weird projection issue with google maps and it not being quite 4326. I can't remember the issue though, and it might not cause this sort of problem.

Brent Owens
(The Open Planning Project)

Xiaopeng Xiong wrote:

Thanks for those replied, especially for the helpful hints from Andrea and Jukka.
The below explains my progress and my problem when using Google Map APIs.

Progress:
The layer I used is in NAD 83 projection (Indiana East), so now I found the right SRS as 26973.
This is what I got for the town shape layer:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:county&styles=polygon&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-96.325,32.797,-83.691,52.905
It looks fine in this request.

Problem:
However, when I embed it into Google Map API, it does not work well. Pleaes check this:
http://www.cs.purdue.edu/homes/xxiong/applications/googlemap/indextest.html
The image does not appear. But when you zoom out for several levels, you can see the red image as a small dot.
Basically, the WMS image only appears in several zoom levels that are small enough.

Does anyone have experience in such a problem? Thank you for sharing your ideas.

Best,
Xiaopeng

----- Original Message ----- From: "Andrea Aime" <aaime@anonymised.com>
To: "Xiaopeng Xiong" <xpxiong@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Sent: Monday, December 18, 2006 5:12 AM
Subject: Re: [Geoserver-users] Initial question

Xiaopeng Xiong ha scritto:
    

Hello List,
I am new to GeoServer and just set up the server to run.
I tried the WMS service requesting the topp:states layer that is included in the distribution, it works great at here:
http://128.10.16.211:8080/geoserver/wms?request=GetMap&layers=topp:states&styles=population&srs=EPSG:4326&width=600&height=600&format=image/png&bbox=-126.325,12.797,-63.691,62.905
Now I want to create my own layer by providing a shapefile to GeoServer. I followed the tutorial to set up the data store and feature type.
My shapefile is in line style and in StatePlane projection. I do not know the corresponding espg code, so I use the default espg 4326 and hope geoserver can handle it.
      

Nope, it won't. You have to find the proper code for your state plane
projection.
State plane areas are here:
http://www.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html

The list of built in CRS supported by Geoserver is here:
http://sigma.openplans.org:8080/geoserver/srsHelp.do
(you can point it at your geoserver if you want faster response).

The state plane ones seem to be starting from code 26729, thought
I may be wrong, I do live in Italy, not very knowledgeable about
USA reference systems.

Hope this helps.
Cheers
Andrea Aime

-------------------------------------------------------------------------
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-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users