ESRI SHAPE FILES
I would be pleasently surprized if someone out there knows
how to run a "program" which
converts a ESRI "SHAPE" file into a "SWF" file.
If this could be done, I could store "SWF" files on my MX7
server and use my database
to point to what ever a user selects.
Of course, this may not be possible, but it sure would be
cool. Feasible ???
> I would be pleasently surprized if someone out there
knows how to run a
> "program" which
> converts a ESRI "SHAPE" file into a "SWF" file.
VanPool,
Try MapPublisher from Avenza:
http://www.avenza.com/products.mapub.html
You would also need an intermediary program like FreeHand or
Illustrator,
but it can be done.
-John
Similar Messages
-
Esri Shape-File to Geo-Spatial Image Search
Dear All
I am developing a c# desktop application in which user have to provide a Shape-File for geo-spatial image search. I have a back-end database in SQL server 2012 in which I am saving metadata of each image, that also includes lat/ long of corner point of each
image. Now the user will provide its shape-file from the desktop application and it will searches SQL database geo-spatial images repository to fetch all images that comes inside provided shape-file. Ad I am new to SQL spatial data handling feature and just
read about STIntersection method available through which this task can be performed.
The main problem that I am facing is that how can handle shape-file passing from front end application in SQL to make a query that will check each geo-spatial images that whether it comes inside shape-file or not?
I have also a KML file of each image, will I have to make a shape file of each image and store them in database and then query STIntersection to check whether the shape-files overlap/ intercept each other or not?
Thanks in Advance
Engr. Mudassar Ali Software Engineerok thats nice. I have meta data of my geo-spacial images in sql database. i will get the corner points(latt/long) from there and use the following query to check whether it resides in provided shapefile of not
DECLARE @g geography;
DECLARE @h geography;
SET @g = geography::STGeomFromText('POLYGON((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))', 4326);
SET @h = geography::STGeomFromText('POLYGON(-122.360 47.656, -122.343 47.656,-122.348 47.658, -122.358 47.658, -122.358 47.653)', 4326);SELECT CASE @g.STIntersects(@h)WHEN 1 THEN '@g intersects @h'ELSE '@g does not intersect @h'END;Now the problem is this how can I get lat/long from Esri Shape-file and pass them to this SQL query to check each image?
Engr. Mudassar Ali Software Engineer -
Can someone tell me how I can create shape files from spatial tables. I see a lot of examples for the reverse, but not for create shape files from spatial tables. The federal government has requested this, so I'm kind of stuck. Thanks.
Hi Tomek,
I am new to Oracle spatial and ESRI. I have read conversion to and from ESRI shape file. What I need to do is to convert Oracle spatial coordinate to ESRI coordinate and output ESRI coordinate to external third party software.
I have registered ESRI to Oracle as below:
INSERT INTO SDO_COORD_REF_SYSTEM
SRID, COORD_REF_SYS_NAME, COORD_REF_SYS_KIND,
COORD_SYS_ID, DATUM_ID, GEOG_CRS_DATUM_ID,
SOURCE_GEOG_SRID, PROJECTION_CONV_ID, CMPD_HORIZ_SRID,
CMPD_VERT_SRID, INFORMATION_SOURCE,
DATA_SOURCE, IS_LEGACY,
LEGACY_CODE,
LEGACY_WKTEXT,
LEGACY_CS_BOUNDS,
IS_VALID,
SUPPORTS_SDO_GEOMETRY
VALUES
1000000, 'USGS Albers Conical Equal Area NAD83', 'PROJECTED',
4400, NULL, 10076,
2000006 , NULL, NULL,
NULL, 'USGS',
NULL, 'TRUE',
NULL,
'PROJCS["Equal-Area Projection (United States)",
GEOGCS[ "NAD 83", DATUM ["NAD 83",
SPHEROID ["GRS 80",6378137,298.2572221010002]],
PRIMEM ["Greenwich",0], UNIT["Decimal degree",0.0174532925199433]],
PROJECTION ["Albers Conical Equal Area"],
PARAMETER ["Standard_Parallel_1",29.5],
PARAMETER ["Standard_Parallel_2",45.5], PARAMETER ["Latitude_of_Origin",23],
PARAMETER ["Central_Meridian",-96], UNIT ["Meter",1]]',
NULL,
'TRUE',
'TRUE'
I ran the following:
select MDSYS.SDO_CS.TRANSFORM(
MDSYS.SDO_GEOMETRY(2001,
82473,
MDSYS.SDO_POINT_TYPE(2510416,
2413881,NULL
NULL,NULL
1000000
) from dual
The output is:
(-14497847,5126972)
Is the output in valid ESRI coordinate?
How do you do the conversion otherwise?
Please advise,
Thanks,
Regards,
Michael -
View a shape file (ArcView-Esri) in J2ME
I 've made a project to view a map (use data from ArcView- Esri ) . But i don't know how to read data from a shape file (ArcView-Esri) and draw it into the Display . Can someone tell me how to ???
Thanks in advandce .
[email protected]Please help me ! It's very important to me !!!!
-
Import a shape file to oracle spatial format within an oracle pl/sql proced
hi,
My task is to import an esri sde shape file to oracle sdo format within pl/sql procedure.
i am using oracle 10g, arcgis 9 and arcsdo, geometry type is line, please anyone could help how can i achieve this task, would be very thankful
Best Regards,There are no "in database" tools around that do this AFAIK. Most/all tools are external to the database and have to be invoked externally.
If you created an external "batch file" that did the right processing, you would still have to work out how to execute this batch file from within Oracle. AFAIK the standard method is to use create custom code that uses DBMS_PIPE to communicate with the operating system to execute the batch file. DBAs hate this approach and it does require programming.
The other method could be to write a trivial piece of Java that when passed the full path to the batch file executes the file. You would then load the compiled Java class into the Oracle JVM and then create a simple PL/SQL wrapper around it. I can't do it at the moment, but can come back with the code and instructions later on in the week.
<SHAMELESS PLUG>
As an aside (it seems appropriate to mention this now), I have been developing tools that do run inside the Oracle JVM an can export Oracle data (including sdo_geometry) to a number of formats:
* xSV (ie comma separated, tab separated, any other single character)
* Excel Spreadsheet
* ESRI Shapefile (including the writing of the PRJ file using a user supplied PRJ string and also I write a MapInfo TAB file to "wrap" the shapefile).
When exporting to xSV or Excel Spreadsheet one can chose to encode the SDO_GEOMETRY data as GML or WKT.
(I am working on a KML exporter as well.)
However, note that these tools EXPORT data and do not IMPORT data.
The tools, currently are running in production at a customer site (tabbed shapefile export option) and work well. Export jobs are defined and given to the Oracle JOB or SCHEDULER and correctly run at the appropriate time writing the data to an operating system directory defined internally (with appropriate permissions) as an Oracle Directory object.
I am now considering selling the exporter tool and am looking for testers. (The pricing of these tools will be exceedingly low.)
</SHAMELESS PLUG>
Now, while I hadn't planned to write any importer for a shapefile for my Exporter, I might consider it if you get stuck and can't find a satisfactory tool.
regards
Simon -
Can Oracle Spatial read shape files?
Hi,
I need to read some shape files into Oracle spatial and was wondering how (or indeed if) there is a way of doing this. I don't know much about the shape files, except that they can be used with ARCView. Any help would be greatly appreciated.
Thanks
SteveSteve,
I've done this 4 ways:
1. If you have ArcGIS 8.1, you can use ESRI's shp2sde which can create spatial tables containing SDO_GEOMETRY objects.
2. If you have GeoMedia Pro 4.0, you can convert shape files to Oracle Spatial tables containing SDO_GEOMETRY objects either with a direct write or you can generate scripts.
3. FME Universal Translator by Safe Software (www.safe.com) can translate shape files to Oracle Spatial tables containing SDO_GEOMETRY objects.
4. Oracle's shp2sdo utility can also translate them, but there is added cleanup. You have to then migrate your table to 8.1.7.
Hope that helps.
Dave -
Error while importing data from shape file in mapBuilder.
Hi Dears,
I get the following error while importing shape file from inside mapBuilder
Feb 03, 2015 2:01:52 PM oracle.mapviewer.builder.wizard.shapefile.ImportShapefileThread importFile
WARNING: java.sql.BatchUpdateException: Internal Error: Overflow Exception trying to bind NaN
Record #51 not converted.
Feb 03, 2015 2:01:52 PM oracle.mapviewer.builder.wizard.shapefile.ImportShapefileThread importFile
SEVERE: Exception while importing shapefile [D:\GIS_Data\OpenStreetMap\pakistan-latest\waterways]:
null
any clue, solution. please.
Regards.I would take a look at the attribute data associated with each object in your shape file. Make sure that everything has a value, and that nothing is NULL.
ID VAR1
1 abc
efg <= this record will cause Mapbuilder to error when importing
2 <= this record will cause Mapbuilder to error when importing
3 hij -
Create a spatail table using a shape file (.shp) in SQL DB
Hi All,
I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
This is how the process tab looks like .
Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
Argument : -f MSSQLSpatial MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
Success value : 1 (I am not sure why I need to change this value from 0 to 1.
For above settings, package runs fine. However the spatial table is not created always. It is created once in a while after switching Success value from 1 to 0 and 0 to 1 again. (After the spatial table is created, it is dropped using a execute sql statement).
If I run this command SDKShell.bat file, it always works.
I am running this in VS 2012.I saw in an article that we need to convert shp file to csv before we load it into sql server.I even tried to convert shp to csv using execute sql task and ogr2ogr.exe. Still the package runs successfully after changing Success
value from 0 to 1 but no csv file is created. If the success value is 0, it throws the following error.
[Execute Process Task] Error: In Executing "C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe" " -f CSV \\xxxxxxxxr.rdn\files\shares\xxx_Data\ImportData\www.xxxxxxx.hapepage.htm\xxxxxx\Watches\Warnings\myfile\CSV \\xxxxxxxxr.rdn\files\shares\xxx_Data\ImportData\www.xxxxxxx.hapepage.htm\xxxxxx\Watches\Warnings\myfiles\www.shp"
at "", The process exit code was "1" while the expected was "0".
Could long file name be a problem too?
Thanks for your help in advance..
shamenThank you Andreas
Yes I can run it manually without getting any error.I am also new to ogr2ogr.exe. This is used to load shape files into sql server.
Actually this execute process task was located inside a for each loop. As no parameter is passed from for each loop to execute process task, I placed the execute process task outside of for each loop. Now it is working.
Every time when the package is run, execute process task create a spatial table in the db.
Still I don't know why it is not working when I place it inside the for each loop container.
Thanks
shamen http://stalkingnightmare.wordpress.com/about/ -
Reading shape file and searching by file type
I want to write an application for working with ESRI .shp files which I think shouldn't be too hard. Looking for recources on this forum I didn't find any at all, which is unusual to me.
It made me wonder the following: Why can't I search for resources on ni.com by file type? I see a lot of applications that interact in some way with existing file types (beyond ordinary xls, doc and txt), but information (be it articles, links or forum questions) are spread out all over the web (if the information exists at all). I would love to see recources grouped by file type, so I can see in a list of extensions which types people program for(in labview). Maybe there's allready something like this that I am not aware of?We don't have a way to search content by file type. And since most attachments are zipped up by NI or by customers, searching for a filetype probably wouldn't yield the results you were looking for.
If an article (or customer question) makes a reference to that filetype in the text itself, or includes a link to such a file, the file extension will be indexed.
I don't see any content relating to ".shp" files, so I would recommend simply posting your request to the appropriate product category in the Forums.
Best of luck with the application.
-Carrie Hooper
National Instruments
Web Support & Operations -
hi all,
I am interested to import shape file which is encode in UTF-8. When i import shape file with the help of map builder, i lost my Unicode character.
NLS_NCHAR_CHARACTERSET value of my data base is AL16UTF16
Any suggestion how i can import these Unicode code characters.If your CSV API offers the option of saving as UTF-8 (and it should), that would be the best way to go. Otherwise, you can use InputStreamReader and OutputStreamWriter to convert the file.
-
Hallo,
I have a shape file and now want to load with this shp2sdo. I tried it once and it worked but
with my actual data I have problems.
1. I don't know what srid the following is. I have already searched my database but I didn't found one.
PROJCS["WGS_1984_UTM_Zone_32N",GEOGCS["GCS_WGS_1984",
DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION
["Transverse_Mercator"],PARAMETER["False_Easting",32500000],PARAMETER
["False_Northing",0],PARAMETER["Central_Meridian",9],PARAMETER
["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]]
2. There is always the error that
commit point reached - logical error
And I really don't know how to fix it.
Thanks JadeHi,
The closest SRID for the information you've input is 82344. However the conversion from degrees to radians is off slightly, as is the false easting value.
You may have to create your own coordinate system for your data.
Regarding the logical error, can you look in the log files and see if anything in there gives a clue as to what the problem is?
Thanks,
dan -
HOW TO USE OGR2OGR TO CONVERT DGN INTO SHAPE FILES WITH MSLINK
hi Friends...
i had a requirement to convert the dgn file into shape files with its mslink and entity number. can any body give guidelines .........pls
RajanikanthcBentley Map will do this for you.
Open the DGN, connect to the database for the attribute
Export->GIS Datatype,
pick export, right click, new export
pick directory if you have mulitple level
pick export, right click and export -
hi everyone
How to convert oracle spatial data to shape file
pls share your thoughtsHowdy,
fdo2fdo - http://sl-king.com/fdo2fdo/download/download.html
Lots of conversion options, free and open source.
r,
dennis
Edited by: djonio on Sep 14, 2011 1:16 PM -
Invalid geometry after shp2sdo on generalized shape files
I have a very specific problem that I really could use help on. I new to spatial so please excuse any mistakes on my part.
We are trying to take shape files and convert them to sdo.
Using shp2sdo on our zip shape file and loading it results in no invalid geometries.
My shp2sdo command looks like: shp2sdo.exe -o zip zip -g geom -d -x \(-180,180\) -y \(-90,90\) -t 0.000000005 -v
I use this query to validate:
SELECT zip, status
FROM(SELECT zip,
sdo_geom.validate_geometry_with_context (geom, diminfo) status
FROM zip a,
user_sdo_geom_metadata b
WHERE b.table_name = 'ZIP'
AND b.column_name = 'GEOM')
WHERE status != 'TRUE';
The first problem I am running into is that sdo data produced from these shape files is just way to big and cause performance issues with mapviewer. So I've been trying to generalize the zip code shape file and then run shp2sdo on the generalized shape files.
This results in invalid objects (13349 self intersecting polygon) when I run my validate query above.
I've tried two generalization methods on the zip. One using a script found in ARCView and the other using FME workbench. In FME workbench i've tried AreaGeneralizer and LineGeneralizer. When I loaded the sdo conversion of the shape ran through AreaGeneralizer and LineGenralizer (as well as the one from ArcView) I now had invalid geometries. So I these shape files through SelfIntersector in FME workbench in hopes of correcting gaps and overlaps. The output always says that there is nothing wrong in the shape files. But I tried to load them anyway and again no luck.
Is there something I'm missing in the process I've described above? Has anyone else had luck with generalizing a shape file, converting it to sdo and having all valid geometries after the load? If so could you please describe your process.
Any advice or help would so greatly be appreciated.
-- IlangoHave you also asked in the Adobe forums? To have people read your post, best not to include long crash reports until asked to do so.
-
Import shape-Files in Acrobat Pro XI
Hello,
i have Macintosh 10.6 and Adobe Acrobat Pro XI.
I found on Adobe Website a Workflow importing shape-Files in Acrobat Pro XI.
Here is the Link to the site: http://help.adobe.com/en_US/acrobat/using/WS0984BCAA-1B6D-42ae-A5DF-4E51D496E783.html#WS82 44FB06-C3F6-40cd-9D95-261B9DAF0070
The caption is called: Import Shape-Files
My Problem is that Acrobat can not import shape Files. The datatyp ist not supported.
I have the shp. and dbf.-Files.
Can anybody help me?
Is there another possibility importing shape-files in Acrobat?
Thank you very much.What exactly happens when you try to follow those four steps? And does theshapefile overlap with the current PDF map (existing geospatial PDF)?
Maybe you are looking for
-
Adobe Creative Suite Premium 1.0
We have seem to misplaced one of our CDs. Can anyone tell me how many CDs came with the original Adobe Creative Suite Premium? I have 2 install CDs, one extra/resource CD and one training CD. I want to make sure that I have not lost one of the instal
-
Hi all, I am importing an expdat.dmp which is an output of 11g to lower 10g db. So I am using a 11g client to import it to 10g. But I can not understand why some tables got imported while others were not :( The error said that the table already exist
-
Oracle Best Practices in 10g When Disabling NUMA
We have both Linux and Solaris 10 DB servers running 10g on them with NUMA. What is Oracle's best practice for dealing with NUMA in hardware when it can be disabled?
-
Constantly have to reinstall latest flash player
I have a pain-in-the-***-problem! I'm running the latest Internet Explorer (IE8) and the latest flash player (on a Vista(32) platform). Everytime my computer has been turned off, I have to reinstall flash player eventhough it's activated, enabled, ru
-
Helvetica Narrow missing from PS CS5 overnight! Please help
As above. Helvetica narrow has somehow disappeared from PS CS5 overnight. I need it urgently as you can imagine and have tried everything to find it! Many thanks in advance!