jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GeoServer
  • GEOS-1447

Windows - Unix slash directions for setting ArcSDE raster URL

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.6.0-beta3
  • Fix Version/s: None
  • Component/s: ArcSDE
  • Labels:
    None
  • Environment:
    Windows XP

Description

When I manually edit the catalog.xml and enter this info, e.g.,

<format namespace = "NDHUB" enabled = "true" id = "NDHUB_aerialphotos" >
<type>ArcSDE Raster</type>
<url>sde://bnutsch:password@myserver:5151/#NDHUB.AERIALPHOTOS_6INCH</url>
</format>

I get a crash. In the logs I see:

26 Oct 14:48:45 WARN [org.geotools.arcsde.gce] - connectiong via file-hack to ArcSDE Raster: sde:\bnutsch:pass@myserver:5151#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN [org.geotools.arcsde.gce] - connectiong via file-hack to ArcSDE Raster: sde:\bnutsch:pass@myserver:5151#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN [org.apache.struts.action.RequestProcessor] - Unhandled Exception thrown: class java.lang.IllegalArgumentException
26 Oct 14:48:45 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/geoserver].[action]] - Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: ArcSDE Raster URL must be of the form sde://user:pass@sdehost:port/[dbname]#rasterTableName – Got sde:\bnutsch:pass@myserver:5151#NDHUB.AERIALPHOTOS_6INCH

From Saul:

The problem is that in order to allow arbitrary parameter passing
from the geoserver UI to the geotools backend (which takes an Object as
a coverageStore creation parameter) everything gets turned into a File.

So on unix, the following URL gets turned into a file with the following
path:

URL("sde://saul:saul@server/#blah") -> File -> String =
sde:/saul:saul@server/#blah

On windows, the same set of translations leads to

URL("sde://saul:saul@server/#blah") -> File -> String =
sde:\saul:saul@server#blah

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    raster.patch
    03/Mar/09 12:48 PM
    2 kB
    Jared Erickson

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jared Erickson added a comment - 03/Mar/09 12:47 PM

I ran into this problem also. On windows:

sde://user:password@host:port/database#rastertable

gets turned into

sde:\user:password@host:port\database#rastertable

I worked up a patch to fix this which I will attach.

Thanks,
Jared Erickson

Show
Jared Erickson added a comment - 03/Mar/09 12:47 PM I ran into this problem also. On windows: sde://user:password@host:port/database#rastertable gets turned into sde:\user:password@host:port\database#rastertable I worked up a patch to fix this which I will attach. Thanks, Jared Erickson
Hide
Permalink
Jared Erickson added a comment - 03/Mar/09 12:48 PM

This is the patch that made GeoServer 1.7.2 work.

Show
Jared Erickson added a comment - 03/Mar/09 12:48 PM This is the patch that made GeoServer 1.7.2 work.
Hide
Permalink
Andrea Aime added a comment - 04/Dec/09 8:03 AM

Gabriel, was the patch ever applied?

Show
Andrea Aime added a comment - 04/Dec/09 8:03 AM Gabriel, was the patch ever applied?

People

  • Assignee:
    Gabriel Roldán
    Reporter:
    Bob Nutsch
Vote (0)
Watch (1)

Dates

  • Created:
    26/Oct/07 3:45 PM
    Updated:
    08/Dec/10 3:35 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.