[udig-devel] Indexed Shapefile
Jesse Eichar
jeichar at refractions.net
Thu Jun 8 09:21:32 PDT 2006
You can take just the one plugin from the nightly build and replace
the one you are using and it will integrate with no problems. (Just
an idea)
Jesse
On 8-Jun-06, at 5:22 AM, Ivan Zerlotti wrote:
> Jesse Eichar ha scritto:
>> So I've just added 2 ways to do this.
>>
>> In order to use these methods you either have to get the latest
>> sdk from the nightly build:
>> http://udig.refractions.net/nightly/udig/latest/udig-SDK-win32-
>> x86.zip (do this AFTER 10:00 PST )
>>
>> or check out the repository and run using that. Here are some
>> instructions.
>> http://udig.refractions.net/confluence/display/UDIG/Project
>> +Quickstart
>>
>> Once you have these it is really easy:
>>
>> 1) ShpPlugin.getPlugin().setUseSpatialIndex() will set it so
>> spatial indices will not be created for the shapefiles.
>>
>> 2) If you are creating the ShpService object programmatically you
>> can create it using a parameter map that has the
>> createShapefileIndex set to false:
>> Map<String, Serializable> params=new HashMap<String, Serializable>()
>> params.put
>> (IndexedShapefileDataStoreFactory.CREATE_SPATIAL_INDEX.key,false);
>> params.put(IndexedShapefileDataStoreFactory.URLP, new URL("file://
>> pathtoshapefile.shp"));
>>
>> Hope this gets you on the right path.
>>
>> Jesse
>>
> Excuse me.
> I found the ShpPlugin in the
> net.refractions.udig.catalog.internal.shp
> plugin.
> Obviuously there is no one of the method you are using at the point 1)
> So the previous message is still valid.
> Thank you
>
> ivan
> --
> Ivan Zerlotti
> ============================
> ART Ambiente Risorse Territorio S.r.l.
> Strada Pietro Del Prato, 15/A
> 43100 PARMA
> Tel 0521 030 911 - Fax 0521 030 999
> www.artambiente.org
>
> Ai sensi del D.Lgs. 196/03, le informazioni contenute nel presente
> messaggio di posta elettronica e dei relativi allegati, sono da
> considerarsi strettamente riservate. Il loro utilizzo è consentito
> esclusivamente al solo destinatario. Qualora riceveste questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente
> di cancellare lo stesso dal Vostro sistema. Costituisce
> comportamento contrario ai principi dettati dal D. Lgs. 196/03 il
> trattenere il messaggio stesso, divulgarlo anche in parte,
> distribuirlo ad altri soggetti, copiarlo od utilizzarlo per
> finalità diverse.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20060608/2097e595/attachment-0001.html
More information about the udig-devel
mailing list