From: James M. <jma...@gm...> - 2004-10-05 18:23:51
|
OK, this is a problem caused by me. It is down to the fact that ESRI's wkt and the 'standard' wkt do not fully agree. I have some fixes in there already to handle translation from ESRI WKT to WKT but as I don't have a complete list of all the differences its been an as and when approach. Could you open this as a JIRA bug and attach a small shapefile which illustrates the problem. (actualy, just the prj file should do it if the shape files are large) As for a short term fix... delete your .prj files :) James On Tue, 05 Oct 2004 11:16:45 -0700, Jesse Eichar <je...@re...> wrote: > Hi I've been getting this problem with a number of different data sets. > It is a bit of an issue because now a great deal of my best test data > throws and Exception. It has been going on for... not sure maybe 2-3 > weeks. I haven't had time to look until now... sorry. If you need a > shapefile that has causes the same problem let me know. > > Jesse > > java.lang.IllegalArgumentException: Standard_Parallel_1 - Could not find > the key. > at > com.sun.media.jai.util.CaselessStringArrayTable.indexOf(CaselessStringArrayTable.java:96) > at > com.sun.media.jai.util.CaselessStringArrayTable.indexOf(CaselessStringArrayTable.java:110) > at > javax.media.jai.ParameterListImpl.setParameter0(ParameterListImpl.java:130) > at > javax.media.jai.ParameterListImpl.setParameter(ParameterListImpl.java:297) > at org.geotools.cs.WKTParser.parseProjection(WKTParser.java:285) > at org.geotools.cs.WKTParser.parseProjCS(WKTParser.java:545) > at > org.geotools.cs.WKTParser.parseCoordinateSystem(WKTParser.java:603) > at > org.geotools.cs.WKTParser.parseCoordinateSystem(WKTParser.java:643) > at > org.geotools.cs.CoordinateSystemFactory.createFromWKT(CoordinateSystemFactory.java:738) > at > org.geotools.data.shapefile.prj.PrjFileReader.<init>(PrjFileReader.java:64) > at > org.geotools.data.shapefile.ShapefileDataStore.openPrjReader(ShapefileDataStore.java:401) > at > org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:508) > at > org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:486) > at > org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:481) > at > org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(ShapefileDataStore.java:624) > at > org.geotools.data.DataStoreCatalogEntry.getResource(DataStoreCatalogEntry.java:31) > at > net.refractions.udig.project.LayerFactory.getSource(LayerFactory.java:168) > at > net.refractions.udig.project.LayerFactory.createDataStoreLayerRef(LayerFactory.java:74) > at > net.refractions.udig.project.internal.ui.actions.AddToNewMap.create(AddToNewMap.java:128) > at > net.refractions.udig.project.internal.ui.actions.AddToNewMap$1.run(AddToNewMap.java:92) > at > org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) > at org.eclipse.core.runtime.Platform.run(Platform.java:747) > at > net.refractions.udig.project.internal.ui.actions.AddToNewMap.run(AddToNewMap.java:89) > at > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:298) > at > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555) > at > org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505) > at > org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:973) > at > org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2659) > at > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2362) > at > org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1443) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1414) > at > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:271) > at > org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) > at > net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:30) > at > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.eclipse.core.launcher.Main.basicRun(Main.java:185) > at org.eclipse.core.launcher.Main.run(Main.java:704) > at org.eclipse.core.launcher.Main.main(Main.java:688) > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Geotools-devel mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-devel > |