Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] Shapefiles on a network drive fail

The IndexedShapefile can in theory do this... But obviously a bug has been introduced. I will try to find the time to fix this but I am just settling into a new job so it may be a little tricky.

Jesse

On 9-Apr-08, at 3:00 PM, Carr, Angus (MNR) wrote:

I've clipped out the log to get the error message. It's an access denied
exception on the .fix file. It's pasted in below.

The file can be loaded by the wizard, but then fails at rendering.

I submitted my log file to the bug reporting system just now, if you
want to look at it in more detail.

Y:\ is a mapped network drive.

Thanks,
Angus.

-----Original Message-----
From: Jody Garnett [mailto:jgarnett@xxxxxxxxxxxxxxx]
Sent: April 8, 2008 8:06 PM
To: Carr, Angus (MNR)
Cc: udig-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [udig-users] Shapefiles on a network drive fail

Hi Carr,

For a while we used different shapefile reading code when something is
located on a network share (since the windows "memory mapped" idea does not work when working on a network shared file). That is the reason why
the index files are not being used on network share.

What kind of errors are you getting?
Jody

Hi, List.

Has anyone else had errors with getting non-local files to read
properly?

I have a file WTRSHTER.shp (and all it's extra bits) which I cannot
read on the network drive (YJ but which when I copy it to a local
drive, it reads fine.

Has anyone else had such a problem?

Udig downloaded today, so v1.1-RC14

The file can be read quite happily by other GIS products, in either
location.

UDig creates the index files .fix and .qix in the directory when I
copy it locally, and does not on the network drive.

I presume that the creation of these spatial index files is much of
the problem. Is there any way to read from a write-only directory?

=============

Angus Carr

NWR Planning Analyst, OMNR
(807) 473-3175

angus.carr@xxxxxxxxxx <mailto:angus.carr@xxxxxxxxxx>


------------------------------------------------------------------------

_______________________________________________
udig-users mailing list
udig-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.refractions.net/mailman/listinfo/udig-users


!ENTRY net.refractions.udig.project 2 0 2008-04-09 08:50:47.861
!MESSAGE Problem rendering: Exception rendering layer DefaultMapLayer[
Test, VISIBLE, style=StyleImpl<NO_PARENT>[ name=Default Styler],
data =net.refractions.udig.project.internal.impl.UDIGFeatureStore@1685e30
, query=Query: [Request All Features]
  feature type: null
  filter: Filter.NONE
  [properties:  ALL ]]
!STACK 0
net.refractions.udig.project.render.RenderException: Problem rendering:
Exception rendering layer DefaultMapLayer[ Test, VISIBLE,
style=StyleImpl<NO_PARENT>[ name=Default Styler],
data =net.refractions.udig.project.internal.impl.UDIGFeatureStore@1685e30
, query=Query: [Request All Features]
  feature type: null
  filter: Filter.NONE
  [properties:  ALL ]]
	at
net .refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.
render(Unknown Source)
	at
net .refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.
render(Unknown Source)
	at
net .refractions.udig.project.internal.render.impl.RenderJob.startRenderi
ng(Unknown Source)
	at
net .refractions.udig.project.internal.render.impl.RenderJob.run(Unknown
Source)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: Exception rendering layer
DefaultMapLayer[ Test, VISIBLE, style=StyleImpl<NO_PARENT>[ name=Default
Styler],
data =net.refractions.udig.project.internal.impl.UDIGFeatureStore@1685e30
, query=Query: [Request All Features]
  feature type: null
  filter: Filter.NONE
  [properties:  ALL ]]
	at
org .geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.jav
a:467)
	at
org .geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.jav
a:374)
	... 5 more
Caused by: java.io.FileNotFoundException:
Y:\NDD\ThunderBayDistrict\WTRSHTER.fix (Access is denied)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
	at
org .geotools.data.shapefile.indexed.FidIndexer.getWriteChannel(FidIndexe
r.java:165)
	at
org .geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:
71)
	at
org .geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeat
ureReader(IndexedShapefileDataStore.java:428)
	at
org .geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeature
Reader(IndexedShapefileDataStore.java:404)
	at
org .geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.j
ava:366)
	at
org .geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.jav
a:147)
	at
org .geotools.renderer.lite.StreamingRenderer.getReader(StreamingRenderer
.java:1178)
	at
org .geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRen
derer.java:1275)
	at
org .geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.jav
a:464)
	... 6 more
_______________________________________________
udig-users mailing list
udig-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.refractions.net/mailman/listinfo/udig-users



Back to the top