+ Reply to Thread
Results 1 to 2 of 2

Thread: Flex FindDataWidget only works if basemap in SpatialRef: 102100 (EPSG 3857)

  1. #1
    Brandur Sigurjonsson
    Join Date
    Aug 2010
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Question Flex FindDataWidget only works if basemap in SpatialRef: 102100 (EPSG 3857)

    I am using version ArcGIS for INSPIRE geoportal SP2 and Glassfish 3.1.1(build 12)

    I have discovered behavior that I am not sure if is a bug or by design.

    The FindDataWidget.swf sends a request to my geoportal when using the orginal config.xml for the geoportal flex viewer. The request grabbed from the browser is like this (searching for :sam*)

    http://geotest.lmi.is:8080/geoportal...3D1%26max%3D10

    and the request part that the proxy.jsp gets is like this

    http://geotest.lmi.is:8080/geoportal...start=1&max=10

    However if I switch to the Icelandic basemap using SpatialRef 3057 the browser just sends no request and the wait circle just goes on and on.

    Attached are the orginal geoportal flex viewer config.xml and also the one using 3057 basemaps (config_is.xml)

    The FindDataWidget.xml is in its original state as it came with SP2

    I guess I will have to set up the development environment for the FlexViewer source and the FindDataWidget to be able to debug this.

    PS. I created my own basemap of Iceland in EPSG 3857 and when I use that the seach is fine.
    Attached Files

  2. #2
    Brandur Sigurjonsson
    Join Date
    Aug 2010
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Default Re: Flex FindDataWidget only works if basemap in SpatialRef: 102100 (EPSG 3857)

    Update:

    FindDataWidget.mxml -
    Function : private function doSearch():void
    Line (616) : extent = projectionToGpt.reprojectExtent(extent);

    calls ProjectionHandler: public function reprojectExtent(extent:Extent):Extent
    which throws an error:
    throw new Error(
    "Geometry services will be needed for this reprojectin. TBD");

    This line throws an exception when the basemap has spatial reference 3057, using this service: http://atlas.lmi.is/lmigis/rest/serv...gatt/MapServer

    So I guess this will just have to wait for the version that uses GeometryService :-)

    Or I add a patch that uses geometry service. For now I will just not use that basemap

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts