John Preston ha scritto: >> When you create a datastore with GeoServer a property map is built >> with the parameters, and then a finder scans the SPI for all the datastores, >> and asks each if it can handle the provided parameters. > This is the call to the canProcess(map) method which should return > true if the SPI can process the url. Yes?
Correct >> Given you used shapefile datastore as a template, your datastore >> probably asks only for a URL, meaning that both the shapefile datastore >> and yours do respond "true" to the request on whether they can handle >> the parameter. > My datastore only asks for a url which ends in .spl. Since this is > different from the .shp extention used by shape files, I was thinking > that the regular shapefile datastore would ignore my url. However if > this is not so, are you saying that I need a unique parameter that is > only available in my datastore definition, to force the datastore > finder to only return one datastore for my url. I that it? I checked the shapefile factory and indeed it should only catch URL that do end with "shp". What I can suggest is that you setup GeoServer for debugging and check what's going on when the datastore is looked up. The web module contains a "Start" class that can be used to startup GeoServer + embedded Jetty, you can use it from an IDE to run GeoServer like a normal java app and thus easily debug it. This part of the developer guide should give you some clue: http://geoserver.org/display/GEOSDOC/3+Eclipse+Quickstart Cheers Andrea ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
