Hi, Brent,
I set the SRS (2289) of my shapefiles correctly in geoserver. But the
corresponding created xml files in the "geoserver/preview" folder which
MapBuilder uses to draw the map, the SRS became 4326. I thought either
GeoServer or Mapbuilder
automatically did the conversion. So I used the same BoundingBox from xml files
in the preview folder to the xml files in my wfs-t demo folder.
After reading your message, I tried changing the SRS in xml file to 2289, the
corresponding minx, miny, maxx, maxy units as well. Then do the query again.
The two messages I got as follows:
1.A erro message box poped up with "unsupported map projection:
HTTP://WWW.OPENGIS.NET/GML/SRS/EPSG.XML#2289".
2. from Javascript Console,
Error: objRef.proj has no properties
Source File: http://localhost:8080/geoserver/mb/lib/widget/CursorTrack.js
Line: 143
Now my guess is the cursortrack widget of mapbuilder works only for 4326 or
lat/lon., and then send wfs requests with SRS defined in the local xml file,
not the one actually defined in GeoServer.
Do I need to reproject my shapefile to 4326 before uploading to geoserver?
--------------------------------------------------------------------------
Please let me know if the words above look confusing. (Still learning English)
Thanks.
Best,
Yanlin
Quoting Brent Owens <brentowens@anonymised.com>:
hmm, if the request is a getFeatureInfo request it should be
reprojecting for you. Is your data set up in geoserver with the correct
SRS value?Brent Owens
(The Open Planning Project)Yanlin Weng wrote:
> Hi, all,
>
> I guess I found the problem: the SRS setting.
>
> The coordinates from the mouse click is in lat. and lon. units, but the SRS
of
> my shapefile is using is a projected coordinate systems, here 2289.
Therefore
> this query returns no feature.
>
> I tried the WFS_getFeatureBBOX request using SRS 2289, and the returned GML
> looks good.
>
> Now the problem is how to convert the coordinates from mouse click to the
one I
> want on the fly?
>
> Thanks!
>
> Best,
> Yanlin
>
>
>