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